diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2019-02-05 21:47:24 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2019-02-05 21:47:24 +0800 |
commit | 2a805c2345c88e08edfc740393583e2b73e50e27 (patch) | |
tree | 4ac27172d53e3c3c6d4128a6bf9f9eb3110eded5 /games | |
parent | 8c6ad984b3e39e1beb3c08103e82202f9b6e3ce9 (diff) | |
download | freebsd-ports-gnome-2a805c2345c88e08edfc740393583e2b73e50e27.tar.gz freebsd-ports-gnome-2a805c2345c88e08edfc740393583e2b73e50e27.tar.zst freebsd-ports-gnome-2a805c2345c88e08edfc740393583e2b73e50e27.zip |
- Switch to options helpers
- Convert USE_SDL=yes to USE_SDL=sdl
- Switch to options helpers
- Convert build-time echo into pkg-message
Diffstat (limited to 'games')
-rw-r--r-- | games/digger-vgl/Makefile | 16 | ||||
-rw-r--r-- | games/digger-vgl/pkg-message.sound | 1 |
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. |