diff options
author | wg <wg@FreeBSD.org> | 2014-07-04 06:50:20 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2014-07-04 06:50:20 +0800 |
commit | 89cbf3f257f207f3fff22b0f780012b4abd3f66d (patch) | |
tree | e018025e1426a52e1679e2fc82589d49ef093ad0 | |
parent | 6552521afbb037af940b80604a858513ff164137 (diff) | |
download | freebsd-ports-gnome-89cbf3f257f207f3fff22b0f780012b4abd3f66d.tar.gz freebsd-ports-gnome-89cbf3f257f207f3fff22b0f780012b4abd3f66d.tar.zst freebsd-ports-gnome-89cbf3f257f207f3fff22b0f780012b4abd3f66d.zip |
games/quake2-3zb2: support stage
-rw-r--r-- | games/quake2-3zb2/Makefile | 30 |
1 files changed, 11 insertions, 19 deletions
diff --git a/games/quake2-3zb2/Makefile b/games/quake2-3zb2/Makefile index 8bc3e27a375d..ea1ae36ec933 100644 --- a/games/quake2-3zb2/Makefile +++ b/games/quake2-3zb2/Makefile @@ -25,10 +25,10 @@ DOCSDIR= ${PREFIX}/share/doc/${LATEST_LINK} OPTIONS_DEFINE= ROUTES DOCS OPTIONS_DEFAULT= ROUTES +OPTIONS_SUB= yes ROUTES_DESC= Install routes for DM and CTF maps (recommended) -NO_STAGE= yes .include "${.CURDIR}/../quake2-data/Makefile.include" .include <bsd.port.options.mk> @@ -43,9 +43,6 @@ ROUTES= base_pk chflm2130_pk chfxmap0109_pk citycl_pk cmbbstr_pk \ .for f in ${ROUTES} DISTFILES+= ${f}${EXTRACT_SUFX}:routes .endfor -PLIST_SUB+= ROUTES="" -.else -PLIST_SUB+= ROUTES="@comment " .endif post-extract: @@ -57,26 +54,21 @@ post-extract: do-install: .for f in chctf chdtm - @${MKDIR} ${Q2DIR}/${PORTNAME}/${f} - ${INSTALL_DATA} ${WRKSRC}/3zb2/${f}/* ${Q2DIR}/${PORTNAME}/${f} + @${MKDIR} ${STAGEDIR}${Q2DIR}/${PORTNAME}/${f} + ${INSTALL_DATA} ${WRKSRC}/3zb2/${f}/* ${STAGEDIR}${Q2DIR}/${PORTNAME}/${f} .endfor - ${INSTALL_PROGRAM} ${WRKSRC}/game.so ${Q2DIR}/${PORTNAME} + ${INSTALL_PROGRAM} ${WRKSRC}/game.so ${STAGEDIR}${Q2DIR}/${PORTNAME} cd ${WRKSRC}/3zb2 && ${INSTALL_DATA} *.cfg 3ZBMaps.lst pak6.pak \ - ${Q2DIR}/${PORTNAME} + ${STAGEDIR}${Q2DIR}/${PORTNAME} .if ${PORT_OPTIONS:MROUTES} - ${INSTALL_DATA} ${WRKSRC}/*.chn ${Q2DIR}/${PORTNAME}/chdtm - ${INSTALL_DATA} ${WRKSRC}/*.chf ${Q2DIR}/${PORTNAME}/chctf + ${INSTALL_DATA} ${WRKSRC}/*.chn ${STAGEDIR}${Q2DIR}/${PORTNAME}/chdtm + ${INSTALL_DATA} ${WRKSRC}/*.chf ${STAGEDIR}${Q2DIR}/${PORTNAME}/chctf .endif .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - cd ${WRKSRC}/3zb2 && ${CP} -a *.txt "User Guide" ${DOCSDIR} - @${FIND} ${DOCSDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE} - @${FIND} ${DOCSDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}/3zb2 && ${CP} -a *.txt "User Guide" ${STAGEDIR}${DOCSDIR} + @${FIND} ${STAGEDIR}${DOCSDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} ${BINMODE} + @${FIND} ${STAGEDIR}${DOCSDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE} .endif -post-install: - @${ECHO_CMD} - @${CAT} ${PKGMESSAGE} - @${ECHO_CMD} - .include <bsd.port.mk> |