diff options
author | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2013-11-01 03:07:22 +0000 |
---|---|---|
committer | Danilo Egea Gondolfo <danilo@FreeBSD.org> | 2013-11-01 03:07:22 +0000 |
commit | af4d19b9c73950b454e9efc45fea7b2efb06ac9f (patch) | |
tree | 412016747859ab016cfbb57ebc5944d0386a0d25 /games | |
parent | fa7b6cbc7b4f335a8c8ab1c1b2b60f9e3353eeab (diff) |
- Add stage support
- Add SOUND option
Notes
Notes:
svn path=/head/; revision=332340
Diffstat (limited to 'games')
-rw-r--r-- | games/digger-vgl/Makefile | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/games/digger-vgl/Makefile b/games/digger-vgl/Makefile index c9c538fe99f5..f7a4b36bae45 100644 --- a/games/digger-vgl/Makefile +++ b/games/digger-vgl/Makefile @@ -14,30 +14,24 @@ ONLY_FOR_ARCHS= i386 # Alphas don't have libvgl yet... MAKEFILE= Makefile.fbsd -.if defined(WITH_SOUND) +OPTIONS_DEFINE= SOUND + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MSOUND} USE_SDL= yes MAKE_ENV= SOUND=yes .endif -NO_STAGE= yes -pre-everything:: -.if !defined(WITH_SOUND) - @${ECHO_MSG} "" - @${ECHO_MSG} "Please use \"make -DWITH_SOUND\" if you want to build the game with sound support." - @${ECHO_MSG} "" -.endif - post-patch: @${REINPLACE_CMD} -e 's|Software|Software\\n\\|g' ${WRKSRC}/alpha.c do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/digger ${PREFIX}/bin - @${MKDIR} /var/games/digger -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/digger.txt ${DOCSDIR} -.endif -.if defined(WITH_SOUND) + ${INSTALL_PROGRAM} ${WRKSRC}/digger ${STAGEDIR}${PREFIX}/bin + @${MKDIR} ${STAGEDIR}/var/games/digger + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/digger.txt ${STAGEDIR}${DOCSDIR} +.if ${PORT_OPTIONS:MSOUND} @${ECHO_MSG} @${ECHO_MSG} "Use \"digger /A\" command to run Digger with sound enabled." @${ECHO_MSG} |