summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-09-28 15:54:10 +0000
committeramdmi3 <amdmi3@FreeBSD.org>2013-09-28 15:54:10 +0000
commitcc8225c6f63529fef7cd57731433d81dd5c255bc (patch)
tree5efeabe15d889bc68ce27b4ea7e3079b011ba799
parentb45feec423720fd0861ccb83f39563960e5ea78b (diff)
downloadFreeBSD-ports-cc8225c6f63529fef7cd57731433d81dd5c255bc.zip
FreeBSD-ports-cc8225c6f63529fef7cd57731433d81dd5c255bc.tar.gz
- Support staging
-rw-r--r--games/cave9/Makefile15
-rw-r--r--games/cave9/pkg-plist9
2 files changed, 9 insertions, 15 deletions
diff --git a/games/cave9/Makefile b/games/cave9/Makefile
index 4277e2d..831b07a 100644
--- a/games/cave9/Makefile
+++ b/games/cave9/Makefile
@@ -24,21 +24,24 @@ BUILD_WRKSRC= ${WRKSRC}/src
MAKEFILE= GNUmakefile
CFLAGS+= -DDATADIR=\\\"${DATADIR}\\\"
+PLIST_FILES= bin/${PORTNAME}
PORTDOCS= *
+PORTDATA= *
+
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
.include <bsd.port.options.mk>
post-extract:
@${MV} ${WRKDIR}/data ${WRKSRC}/
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/cave9 ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/
+ ${INSTALL_PROGRAM} ${WRKSRC}/cave9 ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/data/* ${STAGEDIR}${DATADIR}/
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/games/cave9/pkg-plist b/games/cave9/pkg-plist
deleted file mode 100644
index 1218f0e..0000000
--- a/games/cave9/pkg-plist
+++ /dev/null
@@ -1,9 +0,0 @@
-bin/cave9
-%%DATADIR%%/README.txt
-%%DATADIR%%/crash.wav
-%%DATADIR%%/hit.wav
-%%DATADIR%%/hud.ttf
-%%DATADIR%%/icon.png
-%%DATADIR%%/thrust.wav
-%%DATADIR%%/wall.jpg
-@dirrm %%DATADIR%%
OpenPOWER on IntegriCloud