aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authortj <tj@FreeBSD.org>2012-06-01 23:27:32 +0800
committertj <tj@FreeBSD.org>2012-06-01 23:27:32 +0800
commitc20d28681169d9cac25051d0c7d12208c97bb147 (patch)
tree42e4346193bf1bc33107d98485358ee1124717bd /security
parent1c61d27387351d9dfe50a7b245c2fe00b313620e (diff)
downloadfreebsd-ports-gnome-c20d28681169d9cac25051d0c7d12208c97bb147.tar.gz
freebsd-ports-gnome-c20d28681169d9cac25051d0c7d12208c97bb147.tar.zst
freebsd-ports-gnome-c20d28681169d9cac25051d0c7d12208c97bb147.zip
Convert to the new OptionsNG framework.
Approved by: eadler (mentor)
Diffstat (limited to 'security')
-rw-r--r--security/razorback-api/Makefile18
1 files changed, 10 insertions, 8 deletions
diff --git a/security/razorback-api/Makefile b/security/razorback-api/Makefile
index cc3a93d7dce1..2f733d7665d9 100644
--- a/security/razorback-api/Makefile
+++ b/security/razorback-api/Makefile
@@ -23,10 +23,12 @@ LIB_DEPENDS= config.10:${PORTSDIR}/devel/libconfig \
curl.6:${PORTSDIR}/ftp/curl \
json.0:${PORTSDIR}/devel/json-c
-OPTIONS= DEBUG "Enable Debug" off \
- ASSERT "Enable Asserts" off \
- CNC_DEBUG "Enable Command and Control Debug" off \
- STOMP_DEBUG "Enable STOMP Debug" off
+OPTIONS_DEFINE= DEBUG ASSERT CNC_DEBUG STOMP_DEBUG
+
+CNC_DEBUG_DESC= Enable Command and Control Debug
+STOMP_DEBUG_DESC= Enable STOMP Debug
+
+.include <bsd.port.options.mk>
USE_GNOME= gnomehack
USE_AUTOTOOLS= libtool
@@ -35,19 +37,19 @@ USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-.if defined(WITH_DEBUG)
+.if !empty(PORT_OPTIONS:MDEBUG)
CONFIGURE_ARGS+=--enable-debug
.endif
-.if defined(WITH_ASSERT)
+.if !empty(PORT_OPTIONS:MASSERT)
CONFIGURE_ARGS+=--enable-assert
.endif
-.if defined(WITH_CNC_DEBUG)
+.if !empty(PORT_OPTIONS:MCNC_DEBUG)
CONFIGURE_ARGS+=--enable-cnc-debug
.endif
-.if defined(WITH_STOMP_DEBUG)
+.if !empty(PORT_OPTIONS:MSTOMP_DEBUG)
CONFIGURE_ARGS+=--enable-stomp-debug
.endif