Use the new options framework.

This commit is contained in:
Lars Engels 2012-06-04 19:43:12 +00:00
parent 097ea4bc75
commit 26a80e02ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=298389

View file

@ -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>