aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorLars Engels <lme@FreeBSD.org>2012-06-04 19:43:12 +0000
committerLars Engels <lme@FreeBSD.org>2012-06-04 19:43:12 +0000
commit26a80e02ffb0c9a14bed0ce0b231f8825f751d1f (patch)
tree3d4d69cdaf3536ba9ba0654033a77c28025a2440 /net-mgmt
parent097ea4bc7593e080ebcd5e6e472f595b10771360 (diff)
downloadports-26a80e02ffb0c9a14bed0ce0b231f8825f751d1f.tar.gz
ports-26a80e02ffb0c9a14bed0ce0b231f8825f751d1f.zip
Use the new options framework.
Notes
Notes: svn path=/head/; revision=298389
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/aircrack-ng/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/net-mgmt/aircrack-ng/Makefile b/net-mgmt/aircrack-ng/Makefile
index 0091e8b4c4f8..5ea4b47670fa 100644
--- a/net-mgmt/aircrack-ng/Makefile
+++ b/net-mgmt/aircrack-ng/Makefile
@@ -32,9 +32,17 @@ PLIST_FILES= bin/aircrack-ng bin/airdecap-ng bin/airdecloak-ng \
sbin/airserv-ng sbin/airtun-ng sbin/easside-ng \
sbin/tkiptun-ng sbin/wesside-ng
-OPTIONS= SQLITE "Use SQLite for storing pre-computed key tables" off
+OPTIONS_DEFINE= SQLITE
+SQLITE_DESC= Use SQLite for storing pre-computed key tables
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MSQLITE}
+USE_SQLITE= yes
+MAKE_ARGS+= SQLITE=true
+MAN1+= airolib-ng.1
+PLIST_FILES+= bin/airolib-ng
+.endif
.if ${ARCH} == "powerpc"
BROKEN= Does not compile on powerpc
@@ -43,13 +51,6 @@ BROKEN= Does not compile on powerpc
BROKEN= Does not compile on sparc64-9
.endif
-.if defined(WITH_SQLITE)
-USE_SQLITE= yes
-MAKE_ARGS+= SQLITE=true
-MAN1+= airolib-ng.1
-PLIST_FILES+= bin/airolib-ng
-.endif
-
post-patch:
@${REINPLACE_CMD} \
-e 's|= /usr/local|= ${PREFIX}|' \
@@ -74,4 +75,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>