aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-08-21 06:22:46 +0800
committerpav <pav@FreeBSD.org>2004-08-21 06:22:46 +0800
commit98ef786067230fa25661a421bc2a6771ac4d6e97 (patch)
tree77799f90511eeb7e658564918f782c6b2768c16a /games
parentddc4d18dbfd4f00914fc23016778cda17881a9bc (diff)
downloadfreebsd-ports-gnome-98ef786067230fa25661a421bc2a6771ac4d6e97.tar.gz
freebsd-ports-gnome-98ef786067230fa25661a421bc2a6771ac4d6e97.tar.zst
freebsd-ports-gnome-98ef786067230fa25661a421bc2a6771ac4d6e97.zip
- Convert to OPTIONS
PR: ports/70721 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
Diffstat (limited to 'games')
-rw-r--r--games/duke3d/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/games/duke3d/Makefile b/games/duke3d/Makefile
index 293b6badf736..f31fa91e6675 100644
--- a/games/duke3d/Makefile
+++ b/games/duke3d/Makefile
@@ -28,14 +28,12 @@ DATA_FILES= defs.con game.con user.con
PROG_FILES= ${WRKSRC}/source/${PORTNAME} ${WRKSRC}/source/buildengine/build
DOC_FILES= README BUILDLIC.TXT CONTRIB TODO CHANGELOG ../../readme.txt ../../gnu.txt
-pre-everything::
-.ifndef(WITHOUT_DOSBOX)
- @${ECHO_MSG} ""
- @${ECHO_MSG} "Define WITHOUT_DOSBOX to disable the dependency on dosbox."
- @${ECHO_MSG} "Then however you will not be able to change the Duke3D config."
- @${ECHO_MSG} ""
-
-RUN_DEPENDS= ${LOCALBASE}/bin/dosbox:${PORTSDIR}/emulators/dosbox
+OPTIONS= DOSBOX "Dependency on dosbox (config editor use it)" on
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_DOSBOX)
+RUN_DEPENDS+= dosbox:${PORTSDIR}/emulators/dosbox
.endif
post-patch:
@@ -78,4 +76,4 @@ post-install:
.endif
@${SED} -e 's|%%DOCSDIR%%|${DOCSDIR}|' ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>