aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2012-10-01 19:15:27 +0800
committergahr <gahr@FreeBSD.org>2012-10-01 19:15:27 +0800
commitcfff91daefab6ed6695fb146f3ace6dc11864ac7 (patch)
tree0347d982b91efb98c25a9374eccf49acc8b5da77 /cad
parentf995e098a912e569b458054dff09179447b7c3c9 (diff)
downloadfreebsd-ports-gnome-cfff91daefab6ed6695fb146f3ace6dc11864ac7.tar.gz
freebsd-ports-gnome-cfff91daefab6ed6695fb146f3ace6dc11864ac7.tar.zst
freebsd-ports-gnome-cfff91daefab6ed6695fb146f3ace6dc11864ac7.zip
- Convert to OptionsNG
Notified by: http://wiki.freebsd.org/Ports/Options/ConvertingToOptionsNG
Diffstat (limited to 'cad')
-rw-r--r--cad/mars/Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/cad/mars/Makefile b/cad/mars/Makefile
index 405d8d91ae1c..cc9d9947696f 100644
--- a/cad/mars/Makefile
+++ b/cad/mars/Makefile
@@ -19,14 +19,15 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= gahr@FreeBSD.org
COMMENT= Maryland Routing Simulator
-MAKE_JOBS_UNSAFE= yes
+OPTIONS_DEFINE= X11
+OPTIONS_DEFAULT=X11
-OPTIONS= X11 "Build with X11 support via Motif" on
+MAKE_JOBS_UNSAFE= yes
+NO_WRKSUBDIR= yes
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-NO_WRKSUBDIR= yes
-.if defined(WITH_X11)
+.if ${PORT_OPTIONS:MX11}
USE_MOTIF= yes
MAKEFILE= Makefile.XMotif
.else
@@ -56,4 +57,4 @@ do-install:
${MV} doc mars )
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>