aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-06-06 17:03:53 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-06-06 17:03:53 +0800
commitce134cb400c1745d6882cbd633a0f79b156d948f (patch)
tree1a548c87b88040d4c885b7c1c53d8e5f097a4f58 /games
parent4962521518013dbe11e80da368a2ca691488d9ad (diff)
downloadfreebsd-ports-gnome-ce134cb400c1745d6882cbd633a0f79b156d948f.tar.gz
freebsd-ports-gnome-ce134cb400c1745d6882cbd633a0f79b156d948f.tar.zst
freebsd-ports-gnome-ce134cb400c1745d6882cbd633a0f79b156d948f.zip
- Switch to options helpers
Diffstat (limited to 'games')
-rw-r--r--games/bugsquish/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/games/bugsquish/Makefile b/games/bugsquish/Makefile
index adadef2ba9fd..30aa6c5f1cf8 100644
--- a/games/bugsquish/Makefile
+++ b/games/bugsquish/Makefile
@@ -22,16 +22,17 @@ USES= gmake
USE_SDL= image mixer sdl
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt
-OPTIONS_DEFINE= DOCS
DESKTOP_ENTRIES="Bug Squish" "" "${PORTNAME}" \
"${PORTNAME}" "Game;ArcadeGame;" ""
+OPTIONS_DEFINE= DOCS
+
post-extract:
${TAR} xfjp ${_DISTDIR}/${PORTNAME}_music${EXTRACT_SUFX} -C \
${WRKSRC}/data/music/
@cd ${WRKSRC}/data/music ; ${RM} -f *.mod
- @${FIND} ${WRKDIR} -name .xvpics | ${XARGS} ${RM} -fr
+ @${FIND} ${WRKDIR} -name .xvpics -print0 | ${XARGS} -0 ${RM} -fr
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share/bugsquish/|${DATADIR}/| ; \
@@ -44,14 +45,11 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
-
-. for d in embedded images music sounds
- @(cd ${WRKSRC}/data && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
-. endfor
-
+ @(cd ${WRKSRC}/data && ${COPYTREE_SHARE} "embedded images music sounds" ${STAGEDIR}${DATADIR})
${LN} -sf ${PREFIX}/share/bugsquish/images/icon.png \
${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.png
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}