summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-10-16 02:41:20 +0000
committeramdmi3 <amdmi3@FreeBSD.org>2013-10-16 02:41:20 +0000
commite4dcc0e97341f79da1ccc106e382e439c46fdb2e (patch)
tree3104dffb68a9e8bfbf64a820acad20422feaf6bd
parent34f2e592bcec48b801ff71a8e6dab72efc80164b (diff)
downloadFreeBSD-ports-e4dcc0e97341f79da1ccc106e382e439c46fdb2e.zip
FreeBSD-ports-e4dcc0e97341f79da1ccc106e382e439c46fdb2e.tar.gz
- Support staging
-rw-r--r--games/untahris/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/games/untahris/Makefile b/games/untahris/Makefile
index 04e5886..988d5f4 100644
--- a/games/untahris/Makefile
+++ b/games/untahris/Makefile
@@ -19,7 +19,8 @@ PLIST_FILES= bin/${PORTNAME}
PORTDOCS= *
PORTDATA= *
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
.include <bsd.port.options.mk>
post-patch:
@@ -29,19 +30,17 @@ post-patch:
do-build:
cd ${WRKSRC} && ${CXX} ${CXXFLAGS} `${SDL_CONFIG} --libs --cflags` \
- -lSDL_net -lSDL_ttf -lSDL_mixer untahris.cpp -o untahris
+ -lSDL_net -lSDL_ttf -lSDL_mixer untahris.cpp -o ${PORTNAME}
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/untahris ${PREFIX}/bin/
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ ${MKDIR} ${STAGEDIR}${DATADIR}
.for f in VeraBd.ttf graph16*.unt *.wav
- ${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}/
.endfor
-.endif
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}/
.endif
.include <bsd.port.mk>
OpenPOWER on IntegriCloud