summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--palm/barry/Makefile20
-rw-r--r--polish/ekg/Makefile12
-rw-r--r--security/aimsniff/Makefile16
-rw-r--r--security/bsp_upektfmess/Makefile16
-rw-r--r--security/cfv/Makefile24
-rw-r--r--security/libprelude/Makefile13
-rw-r--r--security/libtomcrypt/Makefile32
-rw-r--r--security/openfwtk/Makefile12
-rw-r--r--security/pear-File_Passwd/Makefile11
-rw-r--r--security/trousers/Makefile19
10 files changed, 68 insertions, 107 deletions
diff --git a/palm/barry/Makefile b/palm/barry/Makefile
index 535be1e089ac..dece2bab9c33 100644
--- a/palm/barry/Makefile
+++ b/palm/barry/Makefile
@@ -21,11 +21,11 @@ CONFIGURE_ENV= OPENSSL_CFLAGS=-I/usr/include \
MAN1= bcharge.1 bidentify.1 bs11nread.1 btool.1
-OPTIONS= GUI "Build the GUI" On \
- OPENSYNC "Build the OpenSync plugin" On \
- DOXYGEN "Build API documentation" Off
+OPTIONS_DEFINE= GUI OPENSYNC DOXYGEN DOCS
+OPTIONS_DEFAULT= GUI OPENSYNC
+OPENSYNC_DESC= Build the OpenSync plugin
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${OSVERSION} < 800069
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
@@ -34,7 +34,7 @@ CONFIGURE_ENV+= LIBUSB_LIBS="-lusb" LIBUSB_CFLAGS="-I/usr/include"
BROKEN= does not configure
.endif
-.if defined(WITH_GUI)
+.if ${PORT_OPTIONS:MGUI}
LIB_DEPENDS+= glademm-2.4.1:${PORTSDIR}/devel/libglademm24 \
tar.0:${PORTSDIR}/devel/libtar
CONFIGURE_ARGS+= --enable-gui
@@ -43,7 +43,7 @@ PLIST_SUB+= GUI=""
PLIST_SUB+= GUI="@comment "
.endif
-.if defined(WITH_OPENSYNC)
+.if ${PORT_OPTIONS:MOPENSYNC}
LIB_DEPENDS+= opensync.0:${PORTSDIR}/devel/libopensync022
CONFIGURE_ARGS+= --enable-opensync-plugin
PLIST_SUB+= OPENSYNC=""
@@ -51,7 +51,7 @@ PLIST_SUB+= OPENSYNC=""
PLIST_SUB+= OPENSYNC="@comment "
.endif
-.if defined(WITH_DOXYGEN)
+.if ${PORT_OPTIONS:MDOXYGEN}
BUILD_DEPENDS+= doxygen:${PORTSDIR}/devel/doxygen
PLIST_SUB+= DOXYGEN=""
.else
@@ -63,14 +63,14 @@ post-patch:
@${REINPLACE_CMD} -e 's| -Werror||' ${WRKSRC}/opensync-plugin/src/Makefile.in
post-build:
-.if defined(WITH_DOXYGEN)
+.if ${PORT_OPTIONS:MDOXYGEN}
@(cd ${WRKSRC}/src && ${LOCALBASE}/bin/doxygen)
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/polish/ekg/Makefile b/polish/ekg/Makefile
index f6c4e4cb03c8..c17b049f9666 100644
--- a/polish/ekg/Makefile
+++ b/polish/ekg/Makefile
@@ -27,17 +27,17 @@ CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lexecinfo ${PTHREAD_LIBS}
CFLAGS+= -I${LOCALBASE}/include
-OPTIONS= ASPELL "Build with ASPELL support" off \
- OPENSSL "Build with OPENSSL support" on
+OPTIONS_DEFINE= ASPELL OPENSSL
+OPTIONS_DEFAULT= OPENSSL
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_ASPELL)
+.if ${PORT_OPTIONS:MASPELL}
LIB_DEPENDS+= aspell.16:${PORTSDIR}/polish/aspell
CONFIGURE_ARGS+= --enable-aspell
.endif
-.if defined(WITHOUT_OPENSSL)
+.if empty(PORT_OPTIONS:MOPENSSL)
CONFIGURE_ARGS+= --without-openssl
.endif
@@ -50,4 +50,4 @@ MANCOMPRESSED= no
post-install:
${STRIP_CMD} ${PREFIX}/bin/ekg
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/aimsniff/Makefile b/security/aimsniff/Makefile
index 0a1cdbf93c5f..a359f1696f04 100644
--- a/security/aimsniff/Makefile
+++ b/security/aimsniff/Makefile
@@ -1,7 +1,4 @@
-# New ports collection makefile for: aimsniff
-# Date created: 4 December 2004
-# Whom: Andrew Marks (andrew@amrx.net)
-#
+# Created by: Andrew Marks <andrew@amrx.net>
# $FreeBSD$
PORTNAME= aimsniff
@@ -20,7 +17,8 @@ RUN_DEPENDS= p5-Net-Pcap>=0:${PORTSDIR}/net/p5-Net-Pcap\
p5-Proc-Simple>=0:${PORTSDIR}/devel/p5-Proc-Simple\
p5-Unix-Syslog>=0:${PORTSDIR}/sysutils/p5-Unix-Syslog
-OPTIONS= SUID_ROOT "Install aimsniff with set-uid bit" off
+OPTIONS_DEFINE= SUID_ROOT DOCS
+SUID_ROOT_DESC= Install aimsniff with set-uid bit
PORTDOCS= README table.struct rc.aimsniff
@@ -29,7 +27,7 @@ USE_PERL5= yes
PLIST_FILES= bin/aimsniff
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if !exists(${LOCALBASE}/lib/perl5/${PERL_VERSION}/${PERL_ARCH}/GDBM_File.pm)
#IGNORE= You need perl compiled with GDBM support
@@ -37,17 +35,17 @@ PLIST_FILES= bin/aimsniff
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/aimSniff.pl ${PREFIX}/bin/aimsniff
-.if defined(WITH_SUID_ROOT)
+.if ${PORT_OPTIONS:MSUID_ROOT}
${CHMOD} u+s ${PREFIX}/bin/aimsniff
.else
.endif
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/$i ${DOCSDIR}
.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/bsp_upektfmess/Makefile b/security/bsp_upektfmess/Makefile
index ed9f504e4f11..4ee05da0a624 100644
--- a/security/bsp_upektfmess/Makefile
+++ b/security/bsp_upektfmess/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: bsp_upektfmess
-# Date created: February 2006
-# Whom: Fredrik Lindberg <fli@shapeshifter.se>
-#
+# Created by: Fredrik Lindberg <fli@shapeshifter.se>
# $FreeBSD$
-#
PORTNAME= bsp_upektfmess
PORTVERSION= 1.1
@@ -35,11 +31,11 @@ NO_BUILD= yes
NO_WRKSUBDIR= yes
ONLY_FOR_ARCHS= i386
-OPTIONS= GUI "Install GUI" off
+OPTIONS_DEFINE= GUI
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_GUI)
+.if ${PORT_OPTIONS:MGUI}
TFMESSPATH=${WRKDIR}/${DISTNAME}
.else
TFMESSPATH=${WRKDIR}/${DISTNAME}/console_only
@@ -55,7 +51,7 @@ do-install:
post-install:
.if !defined(BATCH)
@${ECHO_CMD} ""
-.if defined(WITH_GUI)
+.if ${PORT_OPTIONS:MGUI}
@${ECHO_CMD} "You have chosen to install the GUI version, this does"
@${ECHO_CMD} "not always work correctly with PAM."
@${ECHO_CMD} "Please install the non-gui version if you intend to"
@@ -67,4 +63,4 @@ post-install:
@${ECHO_CMD} ""
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/cfv/Makefile b/security/cfv/Makefile
index 6e800c7f305d..79093f344ad8 100644
--- a/security/cfv/Makefile
+++ b/security/cfv/Makefile
@@ -1,10 +1,5 @@
-# ex:ts=8
-# New ports collection makefile for: cfv
-# Date created: Jul 20, 2001
-# Whom: ijliao
-#
+# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= cfv
PORTVERSION= 1.18.3
@@ -22,25 +17,18 @@ INSTALL_TARGET= install-wrapper
MAN1= cfv.1
-OPTIONS= # start blank to enable it through the pre.mk fence
+OPTIONS_DEFINE_i386= PSYCO
+PSYCO_DESC= Enable devel/py-psyco optimization support
post-patch:
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/Makefile
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if ${ARCH} == "i386"
-OPTIONS+= PSYCO "Enable devel/py-psyco optimization support" off
-.else
-.undef WITH_PSYCO
-
-WITHOUT_PSYCO= yes
-.endif
-
-.if defined(WITH_PSYCO)
+.if ${PORT_OPTIONS:MPSYCO}
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psyco/_psyco.so:${PORTSDIR}/devel/py-psyco
EXTRA_PATCHES+= ${FILESDIR}/extra-psyco-patch-Makefile
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/libprelude/Makefile b/security/libprelude/Makefile
index ca5b95df2a24..310fd35726cb 100644
--- a/security/libprelude/Makefile
+++ b/security/libprelude/Makefile
@@ -1,6 +1,4 @@
-# New ports collection makefile for: libprelude
-# Date created: Sun Aug 4 19:31:17 CEST 2002
-# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
+# Created by: Clement Laforet <sheepkiller@cultdeadsheep.org>
# $FreeBSD$
PORTNAME= libprelude
@@ -15,8 +13,7 @@ COMMENT= Framework library for Prelude NIDS
LIB_DEPENDS= gnutls.47:${PORTSDIR}/security/gnutls \
gcrypt.18:${PORTSDIR}/security/libgcrypt
-OPTIONS= PERL "Include Perl bindings" off \
- PYTHON "Include Python bindings" off
+OPTIONS_DEFINE= PERL PYTHON DOCS
BROKEN= does not configure
@@ -32,7 +29,7 @@ PORTDOCS= *
.include <bsd.port.options.mk>
-.if defined(WITH_PERL)
+.if ${PORT_OPTIONS:MPERL}
USE_PERL5= yes
.include "${PORTSDIR}/Mk/bsd.perl.mk"
CONFIGURE_ARGS+= --with-perl
@@ -42,7 +39,7 @@ CONFIGURE_ARGS+= --without-perl
PLIST_SUB+= WITH_PERL="@comment "
.endif
-.if defined(WITH_PYTHON)
+.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= yes
CONFIGURE_ARGS+= --with-python
PLIST_SUB+= WITH_PYTHON="" PYTHON_VER=${PYTHON_VER}
@@ -61,7 +58,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|libdir)/pkgconfig|prefix)/libdata/pkgconfig|' ${WRKSRC}/src/Makefile.in
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${INSTALL} -d ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR}
.endif
diff --git a/security/libtomcrypt/Makefile b/security/libtomcrypt/Makefile
index 656d6670aa3d..1387ee24c635 100644
--- a/security/libtomcrypt/Makefile
+++ b/security/libtomcrypt/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: libtomcrypt
-# Date created: 22 Jan 2004
-# Whom: Yonatan <Yonatan@Xpert.com>
-#
+# Created by: Yonatan <Yonatan@Xpert.com>
# $FreeBSD$
-#
PORTNAME= libtomcrypt
PORTVERSION= 1.17
@@ -26,36 +22,32 @@ MAKE_JOBS_SAFE= yes
CFLAGS+= -I${PREFIX}/include
-OPTIONS= DOCS "build documentation (depends on teTeX)" off \
- LIBTOMMATH "Use LibTomMath" on \
- TOMSFASTMATH "Use TomsFastMath" off \
- GMP "Use GMP" off
+OPTIONS_DEFINE= DOCS
+OPTIONS_MULTI= MATH
+OPTIONS_MULTI_MATH= LIBTOMMATH TOMSFASTMATH GMP
+LIBTOMMATH_DESC= Use LibTomMath
+TOMSFASTMATH_DESC= Use TomsFastMath
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITHOUT_LIBTOMMATH) && !defined(WITH_TOMSFASTMATH) && !defined(WITH_GMP)
-IGNORE= requires LibTomMath, TomsFastMath, or GMP (or all three)
-.endif
-
-.if !defined(WITHOUT_LIBTOMMATH)
+.if ${PORT_OPTIONS:MLIBTOMMATH}
BUILD_DEPENDS+= ${LOCALBASE}/include/tommath.h:${PORTSDIR}/math/libtommath
CFLAGS+= -DLTM_DESC
.endif
-.if defined(WITH_TOMSFASTMATH)
+.if ${PORT_OPTIONS:MTOMSFASTMATH}
BUILD_DEPENDS+= ${LOCALBASE}/include/tfm.h:${PORTSDIR}/math/tomsfastmath
CFLAGS+= -DTFM_DESC
.endif
-.if defined(WITH_GMP)
+.if ${PORT_OPTIONS:MGMP}
BUILD_DEPENDS+= ${LOCALBASE}/include/gmp.h:${PORTSDIR}/math/gmp
CFLAGS+= -DGMP_DESC
.endif
-.if defined(WITH_DOCS)
+.if ${PORT_OPTIONS:MDOCS}
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX
.else
-NOPORTDOCS= yes
MAKE_ARGS+= NODOCS=yes
.endif
@@ -79,4 +71,4 @@ test: build
(cd ${WRKSRC} && CFLAGS="${CFLAGS} -DUSE_GMP" EXTRALIBS="-L${PREFIX}/lib -lgmp" ${GMAKE} test && ${WRKSRC}/test)
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/openfwtk/Makefile b/security/openfwtk/Makefile
index aa23880841fb..6c152520438d 100644
--- a/security/openfwtk/Makefile
+++ b/security/openfwtk/Makefile
@@ -1,7 +1,4 @@
-# New ports collection makefile for: openfwtk
-# Date created: 12 Oct 2007
-# Whom: Anton Karpov <toxa@toxahost.ru>
-#
+# Created by: Anton Karpov <toxa@toxahost.ru>
# $FreeBSD$
PORTNAME= openfwtk
@@ -16,7 +13,8 @@ COMMENT= Application proxy toolkit which inherits the ideology of TIS fwtk
LICENSE= BSD
-OPTIONS= WATCH "Install fw-watch GUI (require TCL/TK!)" off
+OPTIONS_DEFINE= GUI
+GUI_DESC= Install fw-watch GUI (require TCL/TK!)
WRKSRC= ${WRKDIR}/fwtk
WRKSRC_WATCH= ${WRKDIR}/fw_watch
@@ -29,7 +27,7 @@ MANCOMPRESSED= no
.include <bsd.port.options.mk>
-.if defined(WITH_WATCH)
+.if ${PORT_OPTIONS:MGUI}
USE_TK_WRAPPER= yes
PLIST_SUB+= WATCH=""
.else
@@ -67,7 +65,7 @@ pre-install:
@${MKDIR} ${ETCDIR}
post-install:
-.if defined(WITH_WATCH)
+.if ${PORT_OPTIONS:MGUI}
@${MKDIR} ${PREFIX}/share/fw_watch
.for data in fileselect.tcl fw_watch newsb.tcl searchbox.tcl taputils.tcl
${INSTALL_DATA} ${WRKSRC_WATCH}/${data} ${PREFIX}/share/fw_watch
diff --git a/security/pear-File_Passwd/Makefile b/security/pear-File_Passwd/Makefile
index 84c68e76b8e1..09e0fd97a5dd 100644
--- a/security/pear-File_Passwd/Makefile
+++ b/security/pear-File_Passwd/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: pear-File_Passwd
-# Date created: 09 November 2004
-# Whom: Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>)
-#
+# Created by: Antonio Carlos Venancio Junior <antonio@inf.ufsc.br>
# $FreeBSD$
-#
PORTNAME= File_Passwd
PORTVERSION= 1.1.7
@@ -16,7 +12,8 @@ BUILD_DEPENDS= ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear
RUN_DEPENDS:= ${BUILD_DEPENDS}
LATEST_LINK= pear-File_Passwd
-OPTIONS= PEAR_CRYPT_CHAP "PEAR::Crypt_CHAP support" off
+OPTIONS_DEFINE= PEAR_CRYPT_CHAP
+PEAR_CRYPT_CHAP_DESC= PEAR::Crypt_CHAP support
CATEGORY= File
FILES= Passwd.php Passwd/Common.php Passwd/Unix.php Passwd/Cvs.php \
@@ -30,7 +27,7 @@ TESTS= testsuite.php test_file_passwd.php test_common.php test_unix.php \
.include <bsd.port.pre.mk>
-.if defined(WITH_PEAR_CRYPT_CHAP)
+.if ${PORT_OPTIONS:MPEAR_CRYPT_CHAP}
RUN_DEPENDS+= ${PEARDIR}/Crypt/CHAP.php:${PORTSDIR}/security/pear-Crypt_CHAP
.endif
diff --git a/security/trousers/Makefile b/security/trousers/Makefile
index 119761ae8507..9cd8883d577c 100644
--- a/security/trousers/Makefile
+++ b/security/trousers/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: trousers
-# Date created: 18 Sep 2007
-# Whom: Sebastian Schuetz <sschuetz@fhm.edu>
-#
+# Created by: Sebastian Schuetz <sschuetz@fhm.edu>
# $FreeBSD$
-#
PORTNAME= trousers
PORTVERSION= 0.3.6
@@ -41,14 +37,14 @@ CONFIGURE_ARGS= --with-gui=none --enable-static \
--localstatedir=${PREFIX}/var \
--with-tssuser=${USERS} --with-tssgroup=${GROUPS}
-OPTIONS= EMULATOR "Build for use with the tpm-emulator" off \
- DEBUG "Build with debugging flags" off
+OPTIONS_DEFINE= EMULATOR DEBUG
+EMULATOR_DESC= Build for use with the tpm-emulator
WRKSRC= ${WRKDIR}/${DISTNAME}
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_EMULATOR)
+.if ${PORT_OPTIONS:MEMULATOR}
PKGNAMESUFFIX+= -no_tddl
LIB_DEPENDS+= tddl.1:${PORTSDIR}/emulators/tpm-emulator
@@ -69,8 +65,7 @@ CONFLICTS+= tpm-emulator-0*
PLIST_SUB+= TDDL=""
.endif
-.if defined(WITH_DEBUG)
-PKGNAMESUFFIX+= -debug
+.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif
@@ -97,4 +92,4 @@ add-plist-post:
@${ECHO_CMD} "@unexec ${RMDIR} var/run/ima 2>/dev/null || true" >> ${TMPPLIST}
@${ECHO_CMD} "@exec ${INSTALL} -d -o ${USERS} -g ${GROUPS} -m 0700 var/run/ima" >> ${TMPPLIST}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>