summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-08-20 22:22:46 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-08-20 22:22:46 +0000
commit0e0b29a33808f7e168bd29aca25f00f99e5a4a14 (patch)
tree911270c0614d013af9ba8a905e5a1a71f0d31eb1 /games
parent- Update to 0.3.7 (diff)
- Convert to OPTIONS
PR: ports/70721 Submitted by: Ying-Chieh Chen <yinjieh@csie.nctu.edu.tw>
Notes
Notes: svn path=/head/; revision=116849
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>