aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-11-02 11:35:24 +0800
committerdanilo <danilo@FreeBSD.org>2013-11-02 11:35:24 +0800
commitd8746b72200e9c6250f90a304d5d8f72a8502a45 (patch)
tree6ba0a113c6096e6fef136559044c64825f5d2ba8
parente4688988901e84d14c519ad8ff6b6f7f96bcf0e1 (diff)
downloadfreebsd-ports-gnome-d8746b72200e9c6250f90a304d5d8f72a8502a45.tar.gz
freebsd-ports-gnome-d8746b72200e9c6250f90a304d5d8f72a8502a45.tar.zst
freebsd-ports-gnome-d8746b72200e9c6250f90a304d5d8f72a8502a45.zip
- Add stage support
- Add DOCS option
-rw-r--r--games/hex/Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/games/hex/Makefile b/games/hex/Makefile
index 260666863820..b3b827132352 100644
--- a/games/hex/Makefile
+++ b/games/hex/Makefile
@@ -16,18 +16,17 @@ MAKE_ENV= GRAPHICPATH="${GRAPHICPATH}" LEVELPATH="${LEVELPATH}"
GRAPHICPATH= ${PREFIX}/share/hex/graphics
LEVELPATH= ${PREFIX}/share/hex/levels
-NO_STAGE= yes
+OPTIONS_DEFINE= DOCS
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/hex ${PREFIX}/bin
- @${MKDIR} ${GRAPHICPATH}
- ${INSTALL_DATA} ${WRKSRC}/graphics/*.png ${GRAPHICPATH}
- @${MKDIR} ${LEVELPATH}
- ${INSTALL_DATA} ${WRKSRC}/levels/Level1 ${LEVELPATH}
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/hex
+ ${INSTALL_PROGRAM} ${WRKSRC}/hex ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${GRAPHICPATH}
+ ${INSTALL_DATA} ${WRKSRC}/graphics/*.png ${STAGEDIR}${GRAPHICPATH}
+ @${MKDIR} ${STAGEDIR}${LEVELPATH}
+ ${INSTALL_DATA} ${WRKSRC}/levels/Level1 ${STAGEDIR}${LEVELPATH}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in HISTORY README TODO
- ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/hex
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>