aboutsummaryrefslogtreecommitdiff
path: root/cad/dinotrace
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-06-01 13:18:21 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-06-01 13:18:21 +0000
commitbf82f7adb78bef13e8050caa7d4b6ffa98c72543 (patch)
treefb65e9fdad39ec89dc7d665b97072497abd6d72c /cad/dinotrace
parent0b61e80354910507aea86b5e1fddb914894de47a (diff)
downloadports-bf82f7adb78bef13e8050caa7d4b6ffa98c72543.tar.gz
ports-bf82f7adb78bef13e8050caa7d4b6ffa98c72543.zip
Convert to new options framework
Notes
Notes: svn path=/head/; revision=297949
Diffstat (limited to 'cad/dinotrace')
-rw-r--r--cad/dinotrace/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/cad/dinotrace/Makefile b/cad/dinotrace/Makefile
index e8a8572c3183..2431fdf6d412 100644
--- a/cad/dinotrace/Makefile
+++ b/cad/dinotrace/Makefile
@@ -15,7 +15,9 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= A graphical signal trace waveform viewer
-OPTIONS= EMACS "Install Emacs supplimentary files" on
+OPTIONS_DEFINE= EMACS
+OPTIONS_DEFAULT= EMACS
+EMACS_DESC= Install Emacs supplimentary files
GNU_CONFIGURE= yes
USE_MOTIF= yes
@@ -30,8 +32,8 @@ ELFILES= dinotrace.el sim-log.el
EMACSLISPDIR= ${PREFIX}/share/emacs/site-lisp
XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
-.include <bsd.port.pre.mk>
-.if !defined(WITHOUT_EMACS)
+.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MEMACS}
RUN_DEPENDS+= ${VERILOGEL_FILE}:${PORTSDIR}/cad/verilog-mode.el
PLIST_SUB+= EMACS=""
.else
@@ -39,7 +41,7 @@ PLIST_SUB+= EMACS="@comment "
.endif
post-install:
-.if !defined(WITHOUT_EMACS)
+.if ${PORT_OPTIONS:MEMACS}
${MKDIR} ${DATADIR}/
${MKDIR} ${XEMACSLISPDIR}
. for FILE in ${ELFILES}
@@ -50,4 +52,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>