diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-12 16:35:45 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2012-06-12 16:35:45 +0000 |
commit | 3a283e24f296371e9b753c09e3e62a92ef3d8703 (patch) | |
tree | 88e0a2bbddafb5c9bdc18e8e02c5e59fb9f9d471 /games/odamex | |
parent | 7a0a8929bea1c510b4f30261d294a78b556b49d7 (diff) |
Notes
Diffstat (limited to 'games/odamex')
-rw-r--r-- | games/odamex/Makefile | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/games/odamex/Makefile b/games/odamex/Makefile index 2d92b0af288b..427028bd1888 100644 --- a/games/odamex/Makefile +++ b/games/odamex/Makefile @@ -18,12 +18,14 @@ USE_BZIP2= yes USE_GMAKE= yes USE_SDL= sdl mixer -OPTIONS= LAUNCHER "Enable GUI launcher program" off \ - MIDI "Enable MIDI support (timidity)" off +OPTIONS_DEFINE= LAUNCHER MIDI -.include <bsd.port.pre.mk> +LAUNCHER_DESC= Enable GUI launcher program +MIDI_DESC= Enable MIDI support (timidity) -.if defined(WITH_LAUNCHER) +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MLAUNCHER} USE_WX= 2.6+ MAKE_ENV+= WXRC_CMD="${WXRC_CMD}" WITH_LAUNCHER=yes PLIST_SUB+= LAUNCHER="" @@ -31,7 +33,7 @@ PLIST_SUB+= LAUNCHER="" PLIST_SUB+= LAUNCHER="@comment " .endif -.if defined(WITH_MIDI) +.if ${PORT_OPTIONS:MMIDI} RUN_DEPENDS+= timidity:${PORTSDIR}/audio/timidity .endif @@ -41,7 +43,7 @@ post-patch: ${WRKSRC}/client/src/d_main.cpp \ ${WRKSRC}/server/src/d_main.cpp -.if defined(WITH_LAUNCHER) +.if ${PORT_OPTIONS:MLAUNCHER} @${REINPLACE_CMD} -e 's|\./odamex|odamex|' \ ${WRKSRC}/odalaunch/src/misc.cpp .endif @@ -50,16 +52,16 @@ do-install: .for f in odamex odasrv ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin .endfor -.if defined(WITH_LAUNCHER) +.if ${PORT_OPTIONS:MLAUNCHER} ${INSTALL_PROGRAM} ${WRKSRC}/odalaunch/odalaunch ${PREFIX}/bin .endif ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/odamex.wad ${DATADIR} -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif .include "${.CURDIR}/../doom-data/Makefile.include" -.include <bsd.port.post.mk> +.include <bsd.port.mk> |