aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-10-18 07:52:24 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-10-18 07:52:24 +0800
commit6632afa1f5119eae9230da883975cd525d0b436c (patch)
tree8556ca510ca7a37a2cd864f0f1d1237c783f250e
parentb4c27f71e7eddc300499ba6fc326e682ec014a07 (diff)
downloadfreebsd-ports-gnome-6632afa1f5119eae9230da883975cd525d0b436c.tar.gz
freebsd-ports-gnome-6632afa1f5119eae9230da883975cd525d0b436c.tar.zst
freebsd-ports-gnome-6632afa1f5119eae9230da883975cd525d0b436c.zip
- Support staging
- Convert USE_GMAKE to USES
-rw-r--r--games/reminiscence/Makefile20
-rw-r--r--games/reminiscence/pkg-plist4
2 files changed, 10 insertions, 14 deletions
diff --git a/games/reminiscence/Makefile b/games/reminiscence/Makefile
index 407cf59847e4..86510585e99f 100644
--- a/games/reminiscence/Makefile
+++ b/games/reminiscence/Makefile
@@ -12,7 +12,7 @@ MAINTAINER= amdmi3@FreeBSD.org
COMMENT= A rewritten engine for Flashback
USE_BZIP2= yes
-USE_GMAKE= yes
+USES= gmake
USE_SDL= sdl
ALL_TARGET= rs
@@ -21,19 +21,19 @@ SUB_FILES= pkg-message
PORTDOCS= README
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+PLIST_FILES= bin/remin
+PLIST_DIRSTRY= %%DATADIR%%/data %%DATADIR%%
+
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
post-patch:
@${REINPLACE_CMD} -e 's|DATA|${DATADIR}/data|' ${WRKSRC}/main.cpp
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/rs ${PREFIX}/bin/remin
- ${MKDIR} ${DATADIR}/data
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/
-.endif
- @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
+ ${INSTALL_PROGRAM} ${WRKSRC}/rs ${STAGEDIR}${PREFIX}/bin/remin
+ ${MKDIR} ${STAGEDIR}${DATADIR}/data
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
diff --git a/games/reminiscence/pkg-plist b/games/reminiscence/pkg-plist
deleted file mode 100644
index 6a6b9017860e..000000000000
--- a/games/reminiscence/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-bin/remin
-@exec mkdir -p %D/share/REminiscence/data
-@dirrm %%DATADIR%%/data
-@dirrm %%DATADIR%%