diff options
author | danilo <danilo@FreeBSD.org> | 2013-11-01 11:07:22 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2013-11-01 11:07:22 +0800 |
commit | 335023efbfc99ed958a9fbaa735730fe3750085b (patch) | |
tree | 412016747859ab016cfbb57ebc5944d0386a0d25 /games/digger-vgl/Makefile | |
parent | 509f072068d084d5177e85f9baf0c69439e2150f (diff) | |
download | freebsd-ports-gnome-335023efbfc99ed958a9fbaa735730fe3750085b.tar.gz freebsd-ports-gnome-335023efbfc99ed958a9fbaa735730fe3750085b.tar.zst freebsd-ports-gnome-335023efbfc99ed958a9fbaa735730fe3750085b.zip |
- Add stage support
- Add SOUND option
Diffstat (limited to 'games/digger-vgl/Makefile')
-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} |