# Created by: Rusmir Dusko # $FreeBSD: head/games/blockrage/Makefile 405891 2016-01-12 16:20:31Z amdmi3 $ PORTNAME= blockrage PORTVERSION= 0.2.3 PORTREVISION= 6 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \ SF/nemysisfreebsdp/${CATEGORIES}/:icons DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ ${PORTNAME}_icons${EXTRACT_SUFX}:icons MAINTAINER= ports@FreeBSD.org COMMENT= Falling blocks game with 2-player hotseat mode LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING USE_SDL= sdl image mixer GNU_CONFIGURE= yes ALL_TARGET= ${PORTNAME} PORTDOCS= ChangeLog KNOWN_BUGS README OPTIONS_DEFINE= DOCS INSTALLS_ICONS= yes ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 SUB_FILES= ${PORTNAME} DESKTOP_ENTRIES="Block Rage" "" "${PORTNAME}" \ "${PORTNAME}" "Game;ArcadeGame;" "" post-patch: @${REINPLACE_CMD} -e \ 's|prefix=/usr/local|prefix=${PREFIX}|; \ s|MYCC=gcc|MYCC?=${CC}|; \ s|-s -O2 -Wall||; \ s|sdl-config|$(SDL_CONFIG)|; \ s|MAKE=make|MAKE=${MAKE}|' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|gcc -s|${CC}|' \ ${WRKSRC}/src/Makefile.in do-install: ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ .for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR}) .endfor ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${DATADIR} .for s in ${ICON_SIZES} @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/ ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png .endfor ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include