aboutsummaryrefslogtreecommitdiff
path: root/games/rocksndiamonds-data
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2014-01-13 19:56:55 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2014-01-13 19:56:55 +0000
commitc15cfd8398e032e9edf16c7503a0610e345a663b (patch)
tree53bd142fee3c1529a6cf833f49a9b17f465d37fd /games/rocksndiamonds-data
parent8c0f6d782ea66114cf280969f2cb19047ee7daf8 (diff)
downloadports-c15cfd8398e032e9edf16c7503a0610e345a663b.tar.gz
ports-c15cfd8398e032e9edf16c7503a0610e345a663b.zip
- Support STAGEDIR
Notes
Notes: svn path=/head/; revision=339627
Diffstat (limited to 'games/rocksndiamonds-data')
-rw-r--r--games/rocksndiamonds-data/Makefile19
1 files changed, 5 insertions, 14 deletions
diff --git a/games/rocksndiamonds-data/Makefile b/games/rocksndiamonds-data/Makefile
index b3815205afe3..e287a5f8ff76 100644
--- a/games/rocksndiamonds-data/Makefile
+++ b/games/rocksndiamonds-data/Makefile
@@ -58,7 +58,6 @@ RnD_jue_DESC= Levels default for R'n'D jue
PREFIX= /usr/local
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRnD}
@@ -101,16 +100,12 @@ post-extract-script:
@(cd ${WRKDIR}/${PORTNAME} && ${RM} -f Readme.txt levelinfo.conf)
do-install:
- @(cd ${WRKDIR}/${PORTNAME} && ${COPYTREE_SHARE} . ${DATADIR}/levels)
+ @(cd ${WRKDIR}/${PORTNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/levels)
-# Dynamically generate the PLIST, because the Levels are large
-.for l in ${LEVELS_ARTSOFT} ${LEVELS_BD_FANS} Alans_Random_Levels Gavin_Davidson_2006 Puzzles Veysi_Orak_2006
- @${FIND} ${DATADIR}/levels/${l}/ ! -type d | ${SED} 's|^${PREFIX}/||' >> ${TMPPLIST}
- @${FIND} -ds ${DATADIR}/levels/${l} -type d | \
- ${SED} -E -e 's,(.*),@unexec ${RMDIR} "\1" 2>/dev/null || true,' >> ${TMPPLIST}
-.endfor
- @${FIND} -ds ${DATADIR} -type d -depth 0 | \
- ${SED} -E -e 's,(.*),@unexec ${RMDIR} "\1" 2>/dev/null || true,' >> ${TMPPLIST}
+ @cd ${STAGEDIR}${PREFIX} && ${FIND} ${DATADIR_REL}/levels \
+ -type f >> ${TMPPLIST} && \
+ ${FIND} ${DATADIR_REL}/levels -type d -o -type l | ${SORT} -r | \
+ ${SED} 's|^|@dirrm |' >> ${TMPPLIST}
# Symlink Levels which can use Rocks'n'Diamonds and R'n'D jue
.if exists(${PREFIX}/share/rocksndiamonds) && ${PORT_OPTIONS:MRnD_jue}
@@ -127,8 +122,4 @@ do-install:
.endfor
.endif
- @${ECHO_CMD}
- @${CAT} ${PKGMESSAGE}
- @${ECHO_CMD}
-
.include <bsd.port.mk>