diff options
author | wg <wg@FreeBSD.org> | 2014-07-04 06:45:53 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2014-07-04 06:45:53 +0800 |
commit | 6552521afbb037af940b80604a858513ff164137 (patch) | |
tree | 87b813078f4fc81062ca3b2c6be4f337a0d38fbf /games | |
parent | 2241f97e3a7bf645a0d8de1a13bbda8e1b79b8fb (diff) | |
download | freebsd-ports-gnome-6552521afbb037af940b80604a858513ff164137.tar.gz freebsd-ports-gnome-6552521afbb037af940b80604a858513ff164137.tar.zst freebsd-ports-gnome-6552521afbb037af940b80604a858513ff164137.zip |
games/quake2-zaero: support stage
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> |