diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2013-10-16 02:41:20 +0000 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2013-10-16 02:41:20 +0000 |
commit | e4dcc0e97341f79da1ccc106e382e439c46fdb2e (patch) | |
tree | 3104dffb68a9e8bfbf64a820acad20422feaf6bd | |
parent | 34f2e592bcec48b801ff71a8e6dab72efc80164b (diff) | |
download | FreeBSD-ports-e4dcc0e97341f79da1ccc106e382e439c46fdb2e.zip FreeBSD-ports-e4dcc0e97341f79da1ccc106e382e439c46fdb2e.tar.gz |
- Support staging
-rw-r--r-- | games/untahris/Makefile | 17 |
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> |