aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/digger-vgl/Makefile16
-rw-r--r--games/digger-vgl/pkg-message.sound1
2 files changed, 6 insertions, 11 deletions
diff --git a/games/digger-vgl/Makefile b/games/digger-vgl/Makefile
index f0c0f227eb66..b9d616fb3dae 100644
--- a/games/digger-vgl/Makefile
+++ b/games/digger-vgl/Makefile
@@ -16,12 +16,9 @@ MAKEFILE= Makefile.fbsd
OPTIONS_DEFINE= SOUND DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MSOUND}
-USE_SDL= yes
-MAKE_ENV= SOUND=yes
-.endif
+SOUND_USE= SDL=sdl
+SOUND_MAKE_ENV= SOUND=yes
+SOUND_VARS= PKGMESSAGE=${PKGDIR}/pkg-message.sound
post-patch:
@${REINPLACE_CMD} -e 's|Software|Software\\n\\|g' ${WRKSRC}/alpha.c
@@ -29,12 +26,9 @@ post-patch:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/digger ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}/var/games/digger
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${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}
-.endif
.include <bsd.port.mk>
diff --git a/games/digger-vgl/pkg-message.sound b/games/digger-vgl/pkg-message.sound
new file mode 100644
index 000000000000..de7af8068249
--- /dev/null
+++ b/games/digger-vgl/pkg-message.sound
@@ -0,0 +1 @@
+Use "digger /A" command to run Digger with sound enabled.