e50dc2a336
Mostly replace with ${}, but sometime, replace with $$() because it is what was intended in the first place. (I think.) Sponsored by: Absolight
66 lines
1.8 KiB
Makefile
66 lines
1.8 KiB
Makefile
# Created by: Rusmir Dusko <nemysis@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= blockrage
|
|
PORTVERSION= 0.2.3
|
|
PORTREVISION= 6
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF \
|
|
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
|
|
|
|
INSTALLS_ICONS= yes
|
|
ICON_SIZES= 32x32 48x48 64x64 72x72 96x96
|
|
|
|
SUB_FILES= ${PORTNAME}
|
|
|
|
DESKTOP_ENTRIES="Block Rage" "" "${PORTNAME}" \
|
|
"${PORTNAME}" "Game;ArcadeGame;" ""
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
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/
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|