# Created by: nemysis # $FreeBSD$ PORTNAME= blockrage PORTVERSION= 0.2.3 PORTREVISION= 3 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \ SF/nemysisfreebsdp/:icons DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \ ${PORTNAME}_icons${EXTRACT_SUFX}:icons MAINTAINER= nemysis@gmx.ch COMMENT= Falling blocks game with 2-player hotseat mode LICENSE= GPLv2 GNU_CONFIGURE= yes ALL_TARGET= ${PORTNAME} USE_SDL= sdl image mixer MAKE_JOBS_SAFE= yes MAN6= ${PORTNAME}.6 PORTDOCS= ChangeLog KNOWN_BUGS README TODO OPTIONS_DEFINE= DOCS INSTALLS_ICONS= yes ICON_SIZES= 32x32 48x48 64x64 72x72 96x96 SUB_FILES= ${PORTNAME} DESKTOP_ENTRIES="Block Rage" "${COMMENT}" \ "share/pixmaps/${PORTNAME}.png" \ "${PORTNAME}" "Game;ArcadeGame;" false .include .if ${PORT_OPTIONS:MDOCS} PLIST_SUB+= PORTDOCS="" .else PLIST_SUB+= PORTDOCS="@comment " .endif post-patch: @${REINPLACE_CMD} -e 's|MYCC=gcc|MYCC=|' \ -e 's| -O2 -Wall||' \ ${WRKSRC}/configure do-install: ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin/ ${MKDIR} ${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${DATADIR} .for d in data blockrage-fhs.rc blockrage.cfg blockrage.rc @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR}) .endfor post-install: .for s in ${ICON_SIZES} ${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps ${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \ ${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png .endfor ${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps/ ${INSTALL_MAN} ${WRKSRC}/${MAN6} ${MAN6PREFIX}/man/man6/ .if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} .endif .include