aboutsummaryrefslogtreecommitdiff
path: root/games/scourge-data/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/scourge-data/Makefile')
-rw-r--r--games/scourge-data/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/games/scourge-data/Makefile b/games/scourge-data/Makefile
index 9a73f13990df..3c52696410cb 100644
--- a/games/scourge-data/Makefile
+++ b/games/scourge-data/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= data
-PORTVERSION= 0.17
+PORTVERSION= 0.18
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= scourge
@@ -20,7 +20,15 @@ COMMENT= S.C.O.U.R.G.E data files
NO_BUILD= yes
DATADIR= share/${PKGNAMEPREFIX:S/-//}
-WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX:S/-/_/}${PORTNAME}
+PLIST= ${WRKDIR}/pkg-plist
+WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX:S/-/_/}${PORTNAME}
+
+pre-install:
+ @${RM} -f ${PLIST}
+ @cd ${WRKSRC} && \
+ ${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
+ ${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
+ @${ECHO_CMD} "@dirrm %%DATADIR%%" >> ${PLIST}
do-install:
@cd ${WRKSRC} && \