diff options
author | William Grzybowski <wg@FreeBSD.org> | 2014-07-03 22:45:53 +0000 |
---|---|---|
committer | William Grzybowski <wg@FreeBSD.org> | 2014-07-03 22:45:53 +0000 |
commit | d3f3f398ef085a4abe1600f8d019edb84a69e1f5 (patch) | |
tree | 87b813078f4fc81062ca3b2c6be4f337a0d38fbf /games | |
parent | 1f2e9c45efc17819cf9ff8df28b9e512726042d1 (diff) | |
download | ports-d3f3f398ef085a4abe1600f8d019edb84a69e1f5.tar.gz ports-d3f3f398ef085a4abe1600f8d019edb84a69e1f5.zip |
games/quake2-zaero: support stage
Notes
Notes:
svn path=/head/; revision=360480
Diffstat (limited to 'games')
-rw-r--r-- | games/quake2-zaero/Makefile | 35 |
1 files changed, 12 insertions, 23 deletions
diff --git a/games/quake2-zaero/Makefile b/games/quake2-zaero/Makefile index b5757fc1b20d..d872e79c160b 100644 --- a/games/quake2-zaero/Makefile +++ b/games/quake2-zaero/Makefile @@ -17,30 +17,26 @@ USES= dos2unix zip DOS2UNIX_FILES= *.[ch] NO_WRKSUBDIR= yes -OPTIONS_DEFINE= DEMO DM +OPTIONS_DEFINE= DEMO DM DOCS DEMO_DESC= Demo version of the game data DM_DESC= Deathmatch maps +OPTIONS_SUB= yes + DOCSDIR= ${PREFIX}/share/doc/${LATEST_LINK} -NO_STAGE= yes .include "${.CURDIR}/../quake2-data/Makefile.include" .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDEMO} DISTFILES+= zaerodemo${EXTRACT_SUFX} -PLIST_SUB+= DEMO="" .else -PLIST_SUB+= DEMO="@comment " SUB_FILES+= pkg-message .endif .if ${PORT_OPTIONS:MDM} DISTFILES+= zaerodm${EXTRACT_SUFX} -PLIST_SUB+= DM="" -.else -PLIST_SUB+= DM="@comment " .endif post-extract: @@ -50,27 +46,20 @@ post-patch: @${REINPLACE_CMD} -e 's/__linux__/__unix__/' ${WRKSRC}/q_shared.[ch] do-install: - ${MKDIR} ${Q2DIR}/${PORTNAME} - ${INSTALL_PROGRAM} ${WRKSRC}/game.so ${Q2DIR}/${PORTNAME} + @${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME} + ${INSTALL_PROGRAM} ${WRKSRC}/game.so ${STAGEDIR}${Q2DIR}/${PORTNAME} .if ${PORT_OPTIONS:MDEMO} - ${INSTALL_DATA} ${WRKSRC}/zaero/pak0.pak ${Q2DIR}/${PORTNAME} - ${MKDIR} ${Q2DIR}/${PORTNAME}/sprites - ${INSTALL_DATA} ${WRKSRC}/zaero/sprites/* ${Q2DIR}/${PORTNAME}/sprites + ${INSTALL_DATA} ${WRKSRC}/zaero/pak0.pak ${STAGEDIR}${Q2DIR}/${PORTNAME} + @${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME}/sprites + ${INSTALL_DATA} ${WRKSRC}/zaero/sprites/* ${STAGEDIR}${Q2DIR}/${PORTNAME}/sprites .endif - ${INSTALL_DATA} ${WRKSRC}/pak1.pak ${Q2DIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/pak1.pak ${STAGEDIR}${Q2DIR}/${PORTNAME} .if ${PORT_OPTIONS:MDM} - ${INSTALL_DATA} ${WRKSRC}/zaero/pak2.pak ${Q2DIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/zaero/pak2.pak ${STAGEDIR}${Q2DIR}/${PORTNAME} .endif .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/changelog.txt ${DOCSDIR} -.endif - -.if ! ${PORT_OPTIONS:MDEMO} -post-install: - @${ECHO_CMD} - @${CAT} ${PKGMESSAGE} - @${ECHO_CMD} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/changelog.txt ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.mk> |