diff options
Diffstat (limited to 'sysutils')
31 files changed, 379 insertions, 466 deletions
diff --git a/sysutils/apachetop/Makefile b/sysutils/apachetop/Makefile index 247d30c792ef..afab74451eda 100644 --- a/sysutils/apachetop/Makefile +++ b/sysutils/apachetop/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: apachetop -# Date created: 30 Sep 2003 -# Whom: Sebastian Yepes F. <esn@x123.info> -# +# Created by: Sebastian Yepes F. <esn@x123.info> # $FreeBSD$ -# PORTNAME= apachetop PORTVERSION= 0.12.6 @@ -21,23 +17,22 @@ GNU_CONFIGURE= yes MAN1= apachetop.1 PLIST_FILES= bin/apachetop -OPTIONS= ADNS "Asynchronous-capable DNS support" off \ - FAM "File Alteration Monitor support" off \ - PCRE "Perl Compatible Regular Expressions support" off +OPTIONS_DEFINE= ADNS FAM PCRE +ADNS_DESC= Asynchronous-capable DNS support -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_ADNS) +.if ${PORT_OPTIONS:MADNS} LIB_DEPENDS+= adns.1:${PORTSDIR}/dns/adns CONFIGURE_ARGS+=--with-adns=${LOCALBASE} .endif -.if defined(WITH_FAM) +.if ${PORT_OPTIONS:MFAM} LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam CONFIGURE_ARGS+=--with-fam=${LOCALBASE} .endif -.if defined(WITH_PCRE) +.if ${PORT_OPTIONS:MPCRE} LIB_DEPENDS+= pcre.3:${PORTSDIR}/devel/pcre CONFIGURE_ARGS+=--with-pcre=${LOCALBASE} .endif @@ -49,4 +44,4 @@ post-patch: ${WRKSRC}/src/log.* @cd ${WRKSRC} && ${TOUCH} -r configure.ac aclocal.m4 stamp-h.in -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/apcupsd/Makefile b/sysutils/apcupsd/Makefile index 7c5bafb0751b..4f412dc49d23 100644 --- a/sysutils/apcupsd/Makefile +++ b/sysutils/apcupsd/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: apcupsd -# Date created: 1.12.2001 -# Whom: Lars Köller <Lars.Koeller@Uni-Bielefeld.DE> -# +# Created by: Lars Köller <Lars.Koeller@Uni-Bielefeld.DE> # $FreeBSD$ -# PORTNAME= apcupsd PORTVERSION= 3.14.10 @@ -41,41 +37,44 @@ CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib MAN5= apcupsd.conf.5 MAN8= apcaccess.8 apccontrol.8 apctest.8 apcupsd.8 -OPTIONS= APCSMART_DRV "Compile APC SmartUPS serial driver" on \ - APCDUMB_DRV "Compile dumb UPS driver" on \ - CLIENT_ONLY "Only NIS client (no network server or drivers)" off \ - CGI "Compile with CGI programms to show status" off \ - PCNET_DRV "Compile PowerChute Network Shutdown driver" on \ - USB "Compile with USB Support driver" on \ - SNMP_DRV "Compile with SNMP driver" on \ - SNMP_DRV_OLD "Compile with old SNMP driver" off \ - TCP_WRAPPERS "Compile with TCP_WRAPPERS support" on\ - TEST_DRV "Compile TEST driver" off \ - GAPCMON "Build GTK GUI front-end" off +OPTIONS_DEFINE= APCSMART_DRV APCDUMB_DRV CLIENT_ONLY CGI PCNET_DRV USB SNMP_DRV \ + SNMP_DRV_OLD TCP_WRAPPERS TEST_DRV GAPCMON DOCS +OPTIONS_DEFAULT= APCSMART_DRV APCDUMB_DRV PCNET_DRV USB TCP_WRAPPERS +APCSMART_DRV_DESC= Compile APC SmartUPS serial driver +APCDUMB_DRV_DESC= Compile dumb UPS driver +CLIENT_ONLY_DESC= Only NIS client (no network server or drivers) +CGI_DESC= Compile with CGI programms to show status +PCNET_DRV_DESC= Compile PowerChute Network Shutdown driver +USB_DESC= Compile with USB Support driver +SNMP_DRV_DESC= Compile with SNMP driver +SNMP_DRV_OLD_DESC= Compile with old SNMP driver +TCP_WRAPPERS_DESC= Compile with TCP_WRAPPERS support +TEST_DRV_DESC= Compile TEST driver +GAPCMON_DESC= Build GTK GUI front-end PORTDOCS= ${PORTNAME}.pdf .include <bsd.port.options.mk> -.ifdef(WITH_APCSMART_DRV) +.if ${PORT_OPTIONS:MAPCSMART_DRV} CONFIGURE_ARGS+= --enable-apcsmart .else CONFIGURE_ARGS+= --disable-apcsmart .endif -.ifdef(WITH_APCDUMB_DRV) +.if ${PORT_OPTIONS:MAPCDUMB_DRV} CONFIGURE_ARGS+= --enable-dumb .else CONFIGURE_ARGS+= --disable-dumb .endif -.ifdef(WITH_CLIENT_ONLY) +.if ${PORT_OPTIONS:MCLIENT_ONLY} CONFIGURE_ARGS+= --enable-net \ --disable-apcsmart --disable-dumb --disable-usb \ --disable-snmp --disable-test --disable-pcnet .endif -.ifdef(WITH_CGI) +.if ${PORT_OPTIONS:MCGI} CONFIGURE_ARGS+= --enable-cgi --with-cgi-bin=${ETCDIR}/cgi LIB_DEPENDS+= gd.4:${PORTSDIR}/graphics/gd PLIST_SUB+= CGI="" @@ -83,7 +82,7 @@ PLIST_SUB+= CGI="" PLIST_SUB+= CGI="@comment " .endif -.ifdef(WITH_GAPCMON) +.if ${PORT_OPTIONS:MGAPCMON} CONFIGURE_ARGS+= --enable-gapcmon USE_GNOME+= gconf2 PLIST_SUB+= GAPCMON="" @@ -92,34 +91,34 @@ CONFLICTS+= gapcmon-[0-9]* PLIST_SUB+= GAPCMON="@comment " .endif -.ifdef(WITH_PCNET_DRV) +.if ${PORT_OPTIONS:MPCNET_DRV} CONFIGURE_ARGS+= --enable-pcnet .else CONFIGURE_ARGS+= --disable-pcnet .endif -.ifdef(WITH_USB) +.if ${PORT_OPTIONS:MUSB} CONFIGURE_ARGS+= --enable-usb .endif -.ifdef(WITH_SNMP_DRV) +.if ${PORT_OPTIONS:MSNMP_DRV} CONFIGURE_ARGS+= --enable-snmp .else CONFIGURE_ARGS+= --disable-snmp .endif -.ifdef(WITH_SNMP_DRV_OLD) +.if ${PORT_OPTIONS:MSNMP_DRV_OLD} LIB_DEPENDS+= netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp CONFIGURE_ARGS+= --enable-net-snmp .else CONFIGURE_ARGS+= --disable-net-snmp .endif -.ifdef(WITH_TCP_WRAPPERS) +.if ${PORT_OPTIONS:MTCP_WRAPPERS} CONFIGURE_ARGS+= --with-libwrap=yes .endif -.ifdef(WITH_TEST_DRV) +.if ${PORT_OPTIONS:MTEST_DRV} CONFIGURE_ARGS+= --enable-test .endif @@ -127,17 +126,11 @@ CONFIGURE_ARGS+= --enable-test #CONFIGURE_ENV+= LIBS="-lcurses -lmenu" #PLIST_SUB+= POWERFL="" -.include <bsd.port.pre.mk> - -.if defined(WITH_USB) && ${OSVERSION} >= 800069 -CONFIGURE_ARGS+= --with-generic-usb -.endif - pre-configure: -.if defined(WITH_CLIENT_ONLY) && ( defined(WITH_APCSMART_DRV) || \ - defined(WITH_APCDUMB_DRV) || defined(WITH_PCNET_DRV) || \ - defined(WITH_POWERFLUTE) || defined(WITH_USB) || \ - defined(WITH_SNMP_DRV) || defined(WITH_TEST_DRV) ) +.if ${PORT_OPTIONS:MCLIENT_ONLY} && ( ${PORT_OPTIONS:MAPCSMART_DRV} || \ + ${PORT_OPTIONS:MAPCDUMB_DRV} || ${PORT_OPTIONS:MPCNET_DRV} || \ + ${PORT_OPTIONS:MPOWERFLUTE} || ${PORT_OPTIONS:MUSB} || \ + ${PORT_OPTIONS:MSNMP_DRV} || ${PORT_OPTIONS:MTEST_DRV} ) @${ECHO_CMD} "It doesn't make sense to build drivers if all you want is" @${ECHO_CMD} "the client; please do make config and select either" @${ECHO_CMD} "CLIENT_ONLY or the *_DRV you need" @@ -167,10 +160,10 @@ post-install: fi; \ fi; \ done -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.pdf ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/avfs/Makefile b/sysutils/avfs/Makefile index d1413bc68ef0..6b567bb741b4 100644 --- a/sysutils/avfs/Makefile +++ b/sysutils/avfs/Makefile @@ -23,19 +23,20 @@ USE_GMAKE= yes USE_BZIP2= yes USE_LDCONFIG= yes -OPTIONS= DEBUG "Enable debug" off \ - LIBRARY "Enable library" off \ - FUSE "Enable fuse" on +OPTIONS_DEFINE= DEBUG LIBRARY FUSE +OPTIONS_DEFAULT= FUSE +LIBRARY_DESC= Enable library +FUSE_DESC= Enable fuse -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= --enable-debug .else CONFIGURE_ARGS+= --disable-debug .endif -.if defined(WITH_LIBRARY) +.if ${PORT_OPTIONS:MLIBRARY} CONFIGURE_ARGS+= --enable-library PLIST_SUB+= LIBRARY="" .else @@ -43,7 +44,7 @@ CONFIGURE_ARGS+= --disable-library PLIST_SUB+= LIBRARY="@comment " .endif -.if defined(WITH_FUSE) +.if ${PORT_OPTIONS:MFUSE} CONFIGURE_ARGS+= --enable-fuse PLIST_SUB+= FUSE="" .else @@ -51,4 +52,4 @@ CONFIGURE_ARGS+= --disable-fuse PLIST_SUB+= FUSE="@comment " .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/boxbackup-devel/Makefile b/sysutils/boxbackup-devel/Makefile index 92146542a96e..751be8716a1d 100644 --- a/sysutils/boxbackup-devel/Makefile +++ b/sysutils/boxbackup-devel/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: boxbackup -# Date created: 19 December 2004 -# Whom: James O'Gorman <james@netinertia.co.uk> -# +# Created by: James O'Gorman <james@netinertia.co.uk> # $FreeBSD$ -# PORTNAME= boxbackup PORTVERSION= 0.11.r${SVNVERSION:C/^[0-9\.]+_[a-z]+_([0-9]+)/\1/} @@ -37,23 +33,22 @@ CONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc PKGMESSAGE= ${WRKDIR}/pkg-message -OPTIONS= CLIENT "Install the bbackupd client" On \ - SERVER "Install the bbstored server" On \ - GNUREADLINE "Enable the use of GNU readline" Off +OPTIONS_SINGLE= TYPE +OPTIONS_SINGLE_TYPE= CLIENT SERVER +OPTIONS_DEFINE= GNUREADLINE +OPTIONS_DEFAULT= CLIENT SERVER +CLIENT_DESC= Install the bbackupd client +SERVER_DESC= Install the bbstored server +GNUREADLINE_DESC= Enable the use of GNU readline -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_GNUREADLINE) +.if ${PORT_OPTIONS:MGNUREADLINE} CONFIGURE_ARGS+=--enable-gnu-readline .endif -.if defined(WITHOUT_CLIENT) && defined(WITHOUT_SERVER) -IGNORE= requires at least CLIENT or SERVER to be defined.\ - Please 'make config' again -.endif - MANCOMPRESSED= yes -.if defined(WITH_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} USE_RC_SUBR+= bbackupd PLIST_SUB+= CLIENT="" ALL_TARGET+= build-backup-client @@ -65,7 +60,7 @@ SUB_FILES+= 999.boxbackup PLIST_SUB+= CLIENT="@comment " .endif -.if defined(WITH_SERVER) +.if ${PORT_OPTIONS:MSERVER} USE_RC_SUBR+= bbstored USERS+= _bbstored GROUPS+= _bbstored @@ -78,11 +73,11 @@ MAN8+= bbstored.8 bbstoreaccounts.8 bbstored-certs.8 bbstored-config.8 raidfile PLIST_SUB+= SERVER="@comment " .endif -.if defined(WITHOUT_CLIENT) +.if ! ${PORT_OPTIONS:MCLIENT} # if this is a server-only install, CONFLICT with an install of the CLIENT or both CONFLICTS= boxbackup-client-[0-9]* boxbackup-[0-9]* CLIENT_OR_SERVER=-server -.elif defined(WITHOUT_SERVER) +.elif ! ${PORT_OPTIONS:MSERVER} # if this is a client-only install, CONFLICT with an install of the SERVER or both CONFLICTS= boxbackup-server-[0-9]* boxbackup-[0-9]* CLIENT_OR_SERVER=-client @@ -94,10 +89,10 @@ CONFLICTS= boxbackup-server-[0-9]* boxbackup-client-[0-9]* post-patch: @${REINPLACE_CMD} -e '/html/d' ${WRKSRC}/parcels.txt -.if !defined(WITHOUT_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} @${CAT} ${FILESDIR}/pkg-message.client >> ${PKGMESSAGE} .endif -.if !defined(WITHOUT_SERVER) +.if ${PORT_OPTIONS:MSERVER} @${CAT} ${FILESDIR}/pkg-message.server >> ${PKGMESSAGE} .endif @@ -105,12 +100,12 @@ post-configure: @${REINPLACE_CMD} -e '/share.doc.boxbackup/d' ${WRKSRC}/parcels/scripts/install-backup-* post-install: -.if !defined(WITHOUT_CLIENT) +.if ${PORT_OPTIONS:MCLIENT} @${MKDIR} -m 0700 ${PREFIX}/etc/box/bbackupd @${MKDIR} ${PREFIX}/etc/periodic/monthly ${INSTALL_SCRIPT} ${WRKDIR}/999.boxbackup ${PREFIX}/etc/periodic/monthly .endif -.if !defined(WITHOUT_SERVER) +.if ${PORT_OPTIONS:MSERVER} @${MKDIR} -m 0700 ${PREFIX}/etc/box/bbstored .endif @${CAT} ${PKGMESSAGE} @@ -119,4 +114,4 @@ test: @${ECHO_CMD} "===> Running tests" @${MAKE} -C ${WRKSRC} test -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/env4801/Makefile b/sysutils/env4801/Makefile index 27f836d24f3e..1adaa2782e5f 100644 --- a/sysutils/env4801/Makefile +++ b/sysutils/env4801/Makefile @@ -1,9 +1,5 @@ -# Ports collection makefile for: env4801 -# Date created: Tue, Nov 24th, 2004 -# Whom: Patrick M. Hausen (pmh@hausen.com) -# +# Created by: Patrick M. Hausen (pmh@hausen.com) # $FreeBSD$ -# PORTNAME= env4801 PORTVERSION= 0.3 @@ -26,12 +22,14 @@ MAKE_ARGS= -DNOMAN PLIST_FILES= sbin/env4801 etc/rc.d/env4801.sh -OPTIONS= STATIC "Build a statically linked executable" On +OPTIONS_DEFINE= STATIC +OPTIONS_DEFAULT= STATIC +STATIC_DESC= Build a statically linked executable -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> post-patch: -.ifdef(WITHOUT_STATIC) +.if ! ${PORT_OPTIONS:MSTATIC} @${REINPLACE_CMD} -e '/-static/d' ${WRKSRC}/Makefile .endif @@ -46,4 +44,4 @@ do-install: post-install: @${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/flexbackup/Makefile b/sysutils/flexbackup/Makefile index 9059ab951eaa..205f6f66653b 100644 --- a/sysutils/flexbackup/Makefile +++ b/sysutils/flexbackup/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: flexbackup -# Date created: Wed Nov 3 17:58:26 MST 1999 -# Whom: John Reynolds <johnjen@reynoldsnet.org> -# +# Created by: John Reynolds <johnjen@reynoldsnet.org> # $FreeBSD$ -# PORTNAME= flexbackup PORTVERSION= 1.2.1 @@ -26,31 +22,32 @@ USE_PERL5= yes SUB_FILES+= pkg-message -OPTIONS= AFIO "Enable afio support" Off \ - BUFFER "Enable buffer support" Off \ - MBUFFER "Enable mbuffer support" Off \ - STAR "Enable star support" Off \ - ZIP "Enable zip support" Off +OPTIONS_DEFINE= AFIO BUFFER MBUFFER STAR ZIP DOCS +AFIO_DESC= Enable afio support +BUFFER_DESC= Enable buffer support +MBUFFER_DESC= Enable mbuffer support +STAR_DESC= Enable star support +ZIP_DESC= Enable zip support -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_AFIO) +.if ${PORT_OPTIONS:MAFIO} RUN_DEPENDS+= afio:${PORTSDIR}/sysutils/afio .endif -.if defined(WITH_BUFFER) +.if ${PORT_OPTIONS:MBUFFER} RUN_DEPENDS+= buffer:${PORTSDIR}/misc/buffer .endif -.if defined(WITH_MBUFFER) +.if ${PORT_OPTIONS:MMBUFFER} RUN_DEPENDS+= mbuffer:${PORTSDIR}/misc/mbuffer .endif -.if defined(WITH_STAR) +.if ${PORT_OPTIONS:MSTAR} RUN_DEPENDS+= star:${PORTSDIR}/archivers/star .endif -.if defined(WITH_ZIP) +.if ${PORT_OPTIONS:MZIP} RUN_DEPENDS+= zip:${PORTSDIR}/archivers/zip .endif @@ -70,9 +67,9 @@ do-install: DOCLIST= CHANGES CREDITS README TODO faq.html post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @cd ${WRKSRC} && ${COPYTREE_SHARE} "${DOCLIST}" ${DOCSDIR} .endif @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/heartbeat/Makefile b/sysutils/heartbeat/Makefile index 16c0c58174f7..711568d15a86 100644 --- a/sysutils/heartbeat/Makefile +++ b/sysutils/heartbeat/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: heartbeat -# Date created: 18 March 2005 -# Whom: Scott Kleihege <scott-ports@tummy.com> -# +# Created by: Scott Kleihege <scott-ports@tummy.com> # $FreeBSD$ -# PORTNAME= heartbeat PORTVERSION= 2.1.4 @@ -62,18 +58,19 @@ MAN1= cl_status.1 ha_logger.1 hb_addnode.1 hb_delnode.1 hb_standby.1 hb_takeove MAN8= apphbd.8 cibadmin.8 crm_resource.8 ha_logd.8 heartbeat.8 \ meatclient.8 stonith.8 -OPTIONS= MGMT "Enable X11 Management Utilities" Off \ - LDIRECTORD "Enable Linux Director Daemon" Off \ - APCSNMP "Enable APC SNMP Stonith Device" Off \ - DRAC3 "Enable Dell DRACIII Stonith Device" Off +OPTIONS_DEFINE=MGMT LDIRECTORD APCSNMP DRAC3 +MGMT_DESC= Enable X11 Management Utilities +LDIRECTORD_DESC= Enable Linux Director Daemon +APCSNMP_DESC= Enable APC SNMP Stonith Device +DRAC3_DESC= Enable Dell DRACIII Stonith Device -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if !defined(BATCH) BATCH=NO .endif -.if defined(WITH_MGMT) +.if ${PORT_OPTIONS:MMGMT} BUILD_DEPENDS+= swig:${PORTSDIR}/devel/swig13 RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/pygtk-2.0.pc:${PORTSDIR}/x11-toolkits/py-gtk2 PLIST_SUB+= MGMT="" @@ -82,7 +79,7 @@ CONFIGURE_ARGS+= --disable-mgmt PLIST_SUB+= MGMT="@comment " .endif -.if defined(WITH_LDIRECTORD) +.if ${PORT_OPTIONS:MLDIRECTORD} RUN_DEPENDS+= p5-libwww>=0:${PORTSDIR}/www/p5-libwww \ p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools USE_PERL5_RUN= yes @@ -93,14 +90,14 @@ CONFIGURE_ARGS+= --disable-ldirectord PLIST_SUB+= LDIRECTORD="@comment " .endif -.if defined(WITH_APCSNMP) || exists (${PREFIX}/lib/libnetsnmp.so) +.if ${PORT_OPTIONS:MAPCSNMP} || exists (${PREFIX}/lib/libnetsnmp.so) LIB_DEPENDS+= netsnmp:${PORTSDIR}/net-mgmt/net-snmp PLIST_SUB+= APCSNMP="" .else PLIST_SUB+= APCSNMP="@comment " .endif -.if defined(WITH_DRAC3) || exists (${PREFIX}/lib/libcurl.so) +.if ${PORT_OPTIONS:MDRAC3} || exists (${PREFIX}/lib/libcurl.so) USE_CURL= yes LIB_DEPENDS+= curl.6:${PORTSDIR}/ftp/curl PLIST_SUB+= DRAC3="" @@ -108,10 +105,10 @@ PLIST_SUB+= DRAC3="" PLIST_SUB+= DRAC3="@comment " .endif -.if defined(NOPORTDOCS) -PLIST_SUB+= NOPORTDOCS="@comment " -.else +.if ${PORT_OPTIONS:MDOCS} PLIST_SUB+= NOPORTDOCS="" +.else +PLIST_SUB+= NOPORTDOCS="@comment " .endif # BladeHPI Stonith Automagic Building @@ -152,20 +149,20 @@ post-patch: ${TAR} -cf libltdl.tar libltdl && \ ${RM} -rf libltdl -.if defined(NOPORTDOCS) - @${REINPLACE_CMD} -e 's| doc | |' \ - ${WRKSRC}/Makefile.am -.else +.if ${PORT_OPTIONS:MDOCS} @${REINPLACE_CMD} -e 's|^\(docdir.*doc/\).*|\1${PORTNAME}|' \ ${WRKSRC}/configure.in \ ${WRKSRC}/doc/Makefile.am +.else + @${REINPLACE_CMD} -e 's| doc | |' \ + ${WRKSRC}/Makefile.am .endif pre-install: @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} # Install sample configuration @if [ ! -f ${PREFIX}/etc/ha.d/authkeys ]; then \ ${CP} -p ${DOCSDIR}/authkeys ${PREFIX}/etc/ha.d/authkeys ; \ @@ -184,7 +181,7 @@ post-install: ${CP} -p ${DOCSDIR}/logd.cf ${PREFIX}/etc/ha.d/logd.cf.sample .endif -.if defined(WITH_LDIRECTORD) +.if ${PORT_OPTIONS:MLDIRECTORD} @if [ ! -f ${PREFIX}/etc/ha.d/ldirectord.cf ]; then \ ${CP} -p ${WRKSRC}/ldirectord/ldirectord.cf ${PREFIX}/etc/ha.d/ldirectord.cf ; \ ${CP} -p ${WRKSRC}/ldirectord/ldirectord.cf ${PREFIX}/etc/ha.d/ldirectord.cf.sample ; \ @@ -194,7 +191,7 @@ post-install: # Some subdirs treat man as documentation, therefor we have to install # those man pages manually if NOPORTDOCS is defined. -.if defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} # Some subdirs treat man as documentation, therefor we have to install # those man pages manually if NOPORTDOCS is defined. @@ -208,4 +205,4 @@ post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/hoz/Makefile b/sysutils/hoz/Makefile index 5b75968ad18e..0215a9488e95 100644 --- a/sysutils/hoz/Makefile +++ b/sysutils/hoz/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: HOZ - Hacha Open Zource -# Date created: 2005-09-16 -# Whom: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> -# +# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> # $FreeBSD$ -# PORTNAME= hoz PORTVERSION= 1.65 @@ -20,52 +16,50 @@ USE_GMAKE= yes PORTDOCS= README -OPTIONS= CLI "CLI interface" on \ - GTK2 "GTK interface" on \ - LANG_ES "Spanish translation" off \ - LANG_EN "English translation" on \ - LANG_FR "French translation" off +OPTIONS_DEFINE= CLI GTK2 LANG_ES LANG_EN LANG_FR +OPTIONS_DEFAULT= CLI GTK2 LANG_EN +LANG_EN_DESC= language support -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_GTK2) +.if ${PORT_OPTIONS:MGTK2} USE_GNOME+= gtk20 .endif -.if defined(WITHOUT_CLI) +.if ! ${PORT_OPTIONS:MCLI} ALL_TARGET= gtk .else PLIST_FILES+= bin/hoz .endif -.if defined(WITHOUT_GTK2) +.if ! ${PORT_OPTIONS:MGTK2} ALL_TARGET= cli .else PLIST_FILES+= bin/ghoz .endif -.if defined(WITH_LANG_ES) +.if ${PORT_OPTIONS:MLANG_ES} MAKE_ENV+= LANG="-DHOZ_LANG_ES" .endif -.if !defined(WITHOUT_LANG_EN) +.if ${PORT_OPTIONS:MLANG_EN} MAKE_ENV+= LANG="-DHOZ_LANG_EN" .endif -.if defined(WITH_LANG_FR) +.if ${PORT_OPTIONS:MLANG_FR} MAKE_ENV+= LANG="-DHOZ_LANG_FR" .endif do-install: -.if !defined(WITHOUT_CLI) +.if ${PORT_OPTIONS:MCLI} ${INSTALL_PROGRAM} ${WRKSRC}/hoz ${PREFIX}/bin .endif -.if !defined(WITHOUT_GTK2) +.if ${PORT_OPTIONS:MGTK2} ${INSTALL_PROGRAM} ${WRKSRC}/ghoz ${PREFIX}/bin .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/jx/Makefile b/sysutils/jx/Makefile index 1a013dc487b2..f08b5bfb1fb8 100644 --- a/sysutils/jx/Makefile +++ b/sysutils/jx/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: jx -# Date created: 15 December 2008 -# Whom: Dmitry Shulgachik <legh@legh.ru> -# +# Created by: Dmitry Shulgachik <legh@legh.ru> # $FreeBSD$ -# PORTNAME= jx PORTVERSION= 1.23 @@ -21,25 +17,26 @@ PLIST_FILES= bin/${PORTNAME} MAN1= jx.1 MANCOMPRESSED= yes -OPTIONS= CONFIG "Enable custom config (recuire Config::General)" Off +OPTIONS_DEFINE= CONFIG +CONFIG_DESC= Enable custom config (recuire Config::General) -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_CONFIG) +.if ${PORT_OPTIONS:MCONFIG} RUN_DEPENDS= p5-Config-General>=0:${PORTSDIR}/devel/p5-Config-General PLIST_FILES+= etc/${PORTNAME}.cfg.sample .endif post-patch: -.if !defined(WITHOUT_CONFIG) +.if ${PORT_OPTIONS:MCONFIG} ${REINPLACE_CMD} -e 's/use constant use_config => 0;/use constant use_config => 1;/' ${WRKSRC}/${PORTNAME}.pl .endif do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME} ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1.gz ${PREFIX}/man/man1/${PORTNAME}.1.gz -.if !defined(WITHOUT_CONFIG) +.if ${PORT_OPTIONS:MCONFIG} ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg.sample ${PREFIX}/etc/${PORTNAME}.cfg.sample .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/kgtk/Makefile b/sysutils/kgtk/Makefile index f21f66f19464..f55889117df5 100644 --- a/sysutils/kgtk/Makefile +++ b/sysutils/kgtk/Makefile @@ -1,9 +1,5 @@ -# Ports collection makefile for: kgtk -# Date created: Sep 13, 2007 -# Whom: Rashid N. "Citycat" Achilov <citycat4@ngs.ru> -# +# Created by: Rashid N. "Citycat" Achilov <citycat4@ngs.ru> # $FreeBSD$ -# PORTNAME= kgtk PORTVERSION= 0.9.4 @@ -18,7 +14,7 @@ COMMENT= Daemon to use KDE dialogs in GTK applications SUB_FILES= pkg-message -OPTIONS= UNICODE "System locale is utf-8" off +OPTIONS_DEFINE= UNICODE USE_BZIP2= yes USE_GNOME= gtk20 @@ -30,16 +26,16 @@ CMAKE_SOURCE_PATH= .. USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME} -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITHOUT_NLS) -PLIST_SUB+= NLS="@comment " -.else +.if ${PORT_OPTIONS:MNLS} USE_GETTEXT= yes PLIST_SUB+= NLS="" +.else +PLIST_SUB+= NLS="@comment " .endif -.if defined(WITHOUT_UNICODE) +.if ! ${PORT_OPTIONS:MUNICODE} EXTRA_PATCHES+= ${PATCHDIR}/opt-patch-kgtk-wrapper \ ${PATCHDIR}/opt-patch-gtk2__kgtk2-wrapper.cmake .endif @@ -62,4 +58,4 @@ post-configure: post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/kkbswitch/Makefile b/sysutils/kkbswitch/Makefile index 76967a370567..ab55f5873d6a 100644 --- a/sysutils/kkbswitch/Makefile +++ b/sysutils/kkbswitch/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: kkbswitch -# Date created: 01 Oct 2003 -# Whom: Rashid N. Achilov <shelton@granch.ru> -# +# Created by: Rashid N. Achilov <shelton@granch.ru> # $FreeBSD$ -# PORTNAME= kkbswitch PORTVERSION= 1.4.3 @@ -28,19 +24,20 @@ DOCSDIR= share/doc/HTML/en/${PORTNAME} MAN1= kkbswitch.1 -OPTIONS= RU_UA_LAYOUT "With additional RU_UA keyboard layout" off +OPTIONS_DEFINE= RU_UA_LAYOUT +RU_UA_LAYOUT_DESC= With additional RU_UA keyboard layout PLIST_SUB= PREFIX=${PREFIX} \ LOCALBASE=${LOCALBASE} \ DOCSDIR=${DOCSDIR} -.include <bsd.port.pre.mk> +.include <bsd.port.optons.mk> -.if defined(WITH_RU_UA_LAYOUT) +.if ${PORT_OPTIONS:MRU_UA_LAYOUT} CONFIGURE_ARGS+= --enable-ru-ua-layout PLIST_SUB+= LAYOUT="" .else PLIST_SUB+= LAYOUT="@comment " .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/lire/Makefile b/sysutils/lire/Makefile index bf5fff6f3f7f..c26977d9b4fe 100644 --- a/sysutils/lire/Makefile +++ b/sysutils/lire/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: lire -# Date Created: 26 june 2002 -# Whom: Edwin Groothuis <edwin@mavetju.org> -# +# Created by: Edwin Groothuis <edwin@mavetju.org> # $FreeBSD$ -# # # Remark regarding the errors during pkg_delete: These directories not @@ -31,10 +27,12 @@ BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip \ p5-Curses-UI>=0:${PORTSDIR}/devel/p5-Curses-UI \ p5-Locale-libintl>=0:${PORTSDIR}/devel/p5-Locale-libintl -OPTIONS= CHARTS "Have Charts output format" On \ - HTML "Have HTML or DocBook output format" On \ - PDF "Have PDF output format" Off \ - EXCEL95 "Have Excel95 Spreadsheet output format" Off +OPTIONS_DEFINE= CHARTS HTML PDF EXCEL95 +OPTIONS_DEFAULT= CHARTS HTML +CHARTS_DESC= Have Charts output format +HTML_DESC= Have HTML or DocBook output format +PDF_DESC= Have PDF output format +EXCEL95_DESC= Have Excel95 Spreadsheet output format USE_GNOME= libxml2 libxslt USE_PERL5= yes USE_GMAKE= yes @@ -260,16 +258,16 @@ MAN3= \ MAN7= lire.7 -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.ifdef(WITH_CHARTS) +.if ${PORT_OPTIONS:MCHARTS} RUN_DEPENDS+= ploticus:${PORTSDIR}/math/ploticus-nox11 BUILD_DEPENDS+= p5-GD-Graph>=0:${PORTSDIR}/graphics/p5-GD-Graph .endif -.ifdef(WITH_HTML) +.if ${PORT_OPTIONS:MHTML} RUN_DEPENDS+= lynx:${PORTSDIR}/www/lynx .endif -.ifdef(WITH_PDF) +.if ${PORT_OPTIONS:MPDF} RUN_DEPENDS+= epsffit:${PORTSDIR}/print/psutils \ gs:${PORTSDIR}/print/ghostview \ jade:${PORTSDIR}/textproc/jade \ @@ -277,7 +275,7 @@ RUN_DEPENDS+= epsffit:${PORTSDIR}/print/psutils \ ${LOCALBASE}/share/sgml/docbook/dsssl:${PORTSDIR}/textproc/dsssl-docbook-modular .endif -.ifdef(WITH_EXCEL95) +.if ${PORT_OPTIONS:MEXCEL95} BUILD_DEPENDS+= p5-Spreadsheet-WriteExcel>=0:${PORTSDIR}/textproc/p5-Spreadsheet-WriteExcel .endif @@ -286,4 +284,4 @@ RUN_DEPENDS+= ${BUILD_DEPENDS} post-install: @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/msyslog/Makefile b/sysutils/msyslog/Makefile index 6a7edf38e5d4..4bfceff94e7b 100644 --- a/sysutils/msyslog/Makefile +++ b/sysutils/msyslog/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: msyslog -# Date created: 14 May 2001 -# Whom: Anders Nordby <anders@fix.no> -# +# Created by: Anders Nordby <anders@fix.no> # $FreeBSD$ -# PORTNAME= msyslog PORTVERSION= 1.08g @@ -16,8 +12,7 @@ DISTNAME= ${PORTNAME}-v${PORTVERSION}-src MAINTAINER= 5u623l20@gmail.com COMMENT= Flexible and easy to integrate syslog daemon -OPTIONS= MYSQL "With MySQL Support" off \ - PGSQL "With Postgres Support" off \ +OPTIONS_DEFINE= MYSQL PGSQL WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//} @@ -30,20 +25,20 @@ MANCOMPRESSED= yes PORTSCOUT= skipv:1.09d -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if ${OSVERSION} > 900006 EXTRA_PATCHES= ${PATCHDIR}/utmpx-src-modules-om_classic.c .endif -.if defined(WITH_MYSQL) +.if ${PORT_OPTIONS:MMYSQL} USE_MYSQL= yes MAN8+= om_mysql.8 .else CONFIGURE_ARGS+= --without-mysql .endif -.if defined(WITH_PGSQL) +.if ${PORT_OPTIONS:MPGSQL} USE_PGSQL= yes MAN8+= om_pgsql.8 .else @@ -67,4 +62,4 @@ post-install: > ${PKGMESSAGE} @${CAT} ${PKGMESSAGE} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/open/Makefile b/sysutils/open/Makefile index a2c727543af2..68cb2ec87fb4 100644 --- a/sysutils/open/Makefile +++ b/sysutils/open/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: open -# Date created: 10 Feb 2004 -# Whom: Max Khon <fjoe@FreeBSD.org> -# +# Created by: Max Khon <fjoe@FreeBSD.org> # $FreeBSD$ -# PORTNAME= open PORTVERSION= 1.4 @@ -18,15 +14,16 @@ COMMENT= Open opens a new vt and runs a command on it ALL_TARGET= open MAN1= open.1 PLIST_FILES= bin/open -OPTIONS= SETUID "Install setuid open binary" off +OPTIONS_DEFINE= SETUID +SETUID_DESC= Install setuid open binary PKGMESSAGE= ${WRKDIR}/pkg-message -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> do-install: ${INSTALL_PROGRAM} ${WRKSRC}/open ${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/open.1 ${PREFIX}/man/man1 -.if defined(WITH_SETUID) +.if ${PORT_OPTIONS:MSETUID} ${CHMOD} u+s ${PREFIX}/bin/open .else @${SED} -e 's|%%PREFIX%%|${PREFIX}|g' \ @@ -34,4 +31,4 @@ do-install: @${CAT} ${PKGMESSAGE} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/openipmi/Makefile b/sysutils/openipmi/Makefile index 58ef215b108d..d90ec6cd260b 100644 --- a/sysutils/openipmi/Makefile +++ b/sysutils/openipmi/Makefile @@ -29,39 +29,42 @@ MAN1= ipmi_ui.1 openipmicmd.1 openipmigui.1 \ MAN7= ipmi_cmdlang.7 openipmi_conparms.7 MAN8= ipmilan.8 -OPTIONS= SSL "IPMI 2.0 RMCP+ encryption and authentication" On \ - SNMP "SNMP trap support for the sample programs" Off \ - PERL "Perl interface for OpenIPMI library" Off \ - PYTHON "Python interface for OpenIPMI library" Off \ - TCL "TCL interface for OpenIPMI library" Off \ - TKINTER "GUI for OpenIPMI, written in Python" Off \ - TRACE "Enable backtrace inspecting" Off \ - GDBM "Local SDR caching on startup" Off \ - GLIB12 "Simply OS handler for glib 1.2" Off \ - GLIB20 "Simply OS handler for glib 2.0" Off +OPTIONS_DEFINE= SSL SNMP PERL PYTHON TCL TKINTER TRACE GDBM +OPTIONS_RADIO= GLIB +OPTIONS_RADIO_GLIB= GLIB12 GLIB20 +SSL_DESC= IPMI 2.0 RMCP+ encryption and authentication +SNMP_DESC= SNMP trap support for the sample programs +PERL_DESC= Perl interface for OpenIPMI library +PYTHON_DESC= Python interface for OpenIPMI library +TCL_DESC= TCL interface for OpenIPMI library +TKINTER_DESC= GUI for OpenIPMI, written in Python +TRACE_DESC= Enable backtrace inspecting +GDBM_DESC= Local SDR caching on startup +GLIB12_DESC= Simply OS handler for glib 1.2 +GLIB20_DESC= Simply OS handler for glib 2.0 .include <bsd.port.options.mk> .if exists(${LOCALBASE}/lib/libgdbm.so.3) -WITH_GDBM= yes +PORT_OPTIONS+= GDBM .endif -.if defined(WITH_SNMP) -WITH_SSL= yes +.if ${PORT_OPTIONS:MSNMP} +PORT_OPTIONS+= SSL LIB_DEPENDS+= netsnmp:${PORTSDIR}/net-mgmt/net-snmp CONFIGURE_ARGS+= --with-ucdsnmp=${LOCALBASE} .else CONFIGURE_ARGS+= --with-ucdsnmp=no .endif -.if defined(WITH_SSL) +.if ${PORT_OPTIONS:MSSL} USE_OPENSSL= yes CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE} .else CONFIGURE_ARGS+= --with-openssl=no .endif -.if defined(WITH_TKINTER) +.if ${PORT_OPTIONS:MTKINTER} WITH_TCL= yes USE_PYTHON= yes WITH_PYTHON= yes @@ -74,7 +77,7 @@ CONFIGURE_ARGS+= --with-tkinter=no PLIST_SUB+= TKINTER="@comment " .endif -.if defined(WITH_PERL) +.if ${PORT_OPTIONS:MPERL} WITH_SWIG= yes USE_PERL5= yes CONFIGURE_ARGS+= --with-perl @@ -84,7 +87,7 @@ CONFIGURE_ARGS+= --with-perl=no PLIST_SUB+= PERL="@comment " .endif -.if defined(WITH_PYTHON) +.if ${PORT_OPTIONS:MPYTHON} WITH_SWIG= yes USE_PYTHON= yes CONFIGURE_ARGS+= --with-python @@ -94,14 +97,14 @@ CONFIGURE_ARGS+= --with-python=no PLIST_SUB+= PYTHON="@comment " .endif -.if defined(WITH_SWIG) +.if ${PORT_OPTIONS:MSWIG} BUILD_DEPENDS+= swig:${PORTSDIR}/devel/swig13 CONFIGURE_ARGS+= --with-swig .else CONFIGURE_ARGS+= --with-swig=no .endif -.if defined(WITH_TCL) +.if ${PORT_OPTIONS:MTCL} USE_TCL= 84 CONFIGURE_ARGS+= --with-tcl \ --with-tclcflags=-I${TCL_INCLUDEDIR} \ @@ -112,15 +115,15 @@ CONFIGURE_ARGS+= --with-tcl=no PLIST_SUB+= TCL="@comment " .endif -.if defined(WITH_TRACE) +.if ${PORT_OPTIONS:MTRACE} LIB_DEPENDS+= execinfo.1:${PORTSDIR}/devel/libexecinfo .endif -.if defined(WITH_GDBM) +.if ${PORT_OPTIONS:MGDBM} LIB_DEPENDS+= gdbm.4:${PORTSDIR}/databases/gdbm .endif -.if defined(WITH_GLIB12) +.if ${PORT_OPTIONS:MGLIB12} USE_GNOME+= glib12 CONFIGURE_ARGS+= --with-glib12 --with-glibver=1.2 PLIST_SUB+= GLIB12="" @@ -129,7 +132,7 @@ CONFIGURE_ARGS+= --with-glib12=no PLIST_SUB+= GLIB12="@comment " .endif -.if defined(WITH_GLIB20) +.if ${PORT_OPTIONS:MGLIB20} USE_GNOME+= glib20 CONFIGURE_ARGS+= --with-glib --with-glibver=2.0 PLIST_SUB+= GLIB20="" @@ -138,8 +141,4 @@ CONFIGURE_ARGS+= --with-glib=no PLIST_SUB+= GLIB20="@comment " .endif -.if defined(WITH_GLIB12) && defined(WITH_GLIB20) -IGNORE=selected mutually exclusive options: WITH_GLIB12 and WITH_GLIB20 -.endif - .include <bsd.port.mk> diff --git a/sysutils/pflogx/Makefile b/sysutils/pflogx/Makefile index f062034c1c6a..81e2eecfc494 100644 --- a/sysutils/pflogx/Makefile +++ b/sysutils/pflogx/Makefile @@ -1,10 +1,5 @@ -# ex:ts=8 -# New ports collection makefile for: pflogx -# Date created: May 10 2006 -# Whom: clsung -# +# Created by: clsung # $FreeBSD$ -# PORTNAME= pflogx PORTVERSION= 0.86 @@ -17,11 +12,12 @@ COMMENT= Simple tool to export pf (packet filter) logs to XML files WRKSRC= ${WRKDIR}/${PORTNAME} -OPTIONS= EXPAT "Ability to merge new events (require expat) " Off +OPTIONS_DEFINE= EXPAT DOCS +EXPAT_DESC= Ability to merge new events (require expat) -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_EXPAT) +.if ${PORT_OPTIONS:MEXPAT} LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2 MAKE_ARGS+= -DWITH_EXPAT \ EXPAT_INCLUDEDIR=${LOCALBASE}/include \ @@ -30,7 +26,7 @@ MAKE_ARGS+= -DWITH_EXPAT \ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/pflogx ${PREFIX}/bin -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR} @@ -39,4 +35,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/xsl/* ${EXAMPLESDIR} .endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/psmisc/Makefile b/sysutils/psmisc/Makefile index 6758db8b533a..6034cb30568c 100644 --- a/sysutils/psmisc/Makefile +++ b/sysutils/psmisc/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: psmisc -# Date created: 10 March 1998 -# Whom: rantapaa@uswest.net -# +# Created by: rantapaa@uswest.net # $FreeBSD$ -# PORTNAME= psmisc PORTVERSION= 22.16 @@ -22,19 +18,19 @@ CONFLICTS= pidof-[0-9]* pstree-2.[0-9]* GNU_CONFIGURE= yes USE_GMAKE= yes -OPTIONS= NLS "Native Language Support via gettext utilities" on +OPTIONS_DEFINE= NLS .include <bsd.port.options.mk> MAN1= killall.1 pstree.1 -.if defined(WITHOUT_NLS) -CONFIGURE_ARGS= --disable-nls -PLIST_SUB+= NLS="@comment " -.else +.if ${PORT_OPTIONS:MNLS} USES+= gettext CONFIGURE_ARGS= --enable-nls PLIST_SUB+= NLS="" +.else +CONFIGURE_ARGS= --disable-nls +PLIST_SUB+= NLS="@comment " .endif post-patch: diff --git a/sysutils/pwsafe/Makefile b/sysutils/pwsafe/Makefile index 73dd12cf761b..5dbd6cc8cc51 100644 --- a/sysutils/pwsafe/Makefile +++ b/sysutils/pwsafe/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: pwsafe -# Date created: 29 Mars 2004 -# Whom: donnex -# +# Created by: donnex # $FreeBSD$ -# PORTNAME= pwsafe PORTVERSION= 0.2.0 @@ -14,8 +10,8 @@ MASTER_SITES= http://nsd.dyndns.org/pwsafe/releases/ MAINTAINER= donnex@donnex.net COMMENT= Cmdline program that manages encrypted password databases -OPTIONS= SETUID "Install setuid pwsafe binary" off \ - X11 "Build with X11 libraries" off +OPTIONS_DEFINE= SETUID X11 +SETUID_DESC= Install setuid pwsafe binary GNU_CONFIGURE= yes USE_GMAKE= yes @@ -25,7 +21,7 @@ PLIST_FILES= bin/pwsafe .include <bsd.port.options.mk> -.if defined(WITH_X11) +.if ${PORT_OPTIONS:MX11} CONFIGURE_ARGS= --with-x USE_XORG= ice sm x11 xmu .else @@ -38,7 +34,7 @@ CONFIGURE_ARGS= ac_cv_have_x="have_x=no" \ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pwsafe ${PREFIX}/bin/ ${INSTALL_MAN} ${WRKSRC}/pwsafe.1 ${PREFIX}/man/man1/ -.if defined(WITH_SETUID) +.if ${PORT_OPTIONS:MSETUID} ${CHMOD} u+s ${PREFIX}/bin/pwsafe .endif diff --git a/sysutils/radmind/Makefile b/sysutils/radmind/Makefile index d654e36d95e0..2aebe9c5d8f4 100644 --- a/sysutils/radmind/Makefile +++ b/sysutils/radmind/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: radmind -# Date created: 2003-11-17 -# Whom: Paul Dlug <paul@aps.org> -# +# Created by: Paul Dlug <paul@aps.org> # $FreeBSD$ -# PORTNAME= radmind PORTVERSION= 1.14.1 @@ -37,11 +33,12 @@ MAN5= applefile.5 MAN8= radmind.8 DOCS= COPYRIGHT README SPEC -OPTIONS= IGNORE_TIMESTAMPS "Add '-t' option to fsdiff" Off +OPTIONS_DEFINE= IGNORE_TIMESTAMPS DOCS +IGNORE_TIMESTAMPS_DESC= Add '-t' option to fsdiff .include <bsd.port.options.mk> -.if defined(WITH_IGNORE_TIMESTAMPS) +.if ${PORT_OPTIONS:MIGNORE_TIMESTAMPS} EXTRA_PATCHES+= ${FILESDIR}/optpatch-ignore_timestamps .endif @@ -49,7 +46,7 @@ post-install: # Ugly hack to remove generated man pages ${RM} -rf ${WRKSRC}/tmp -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} .endif diff --git a/sysutils/samesame/Makefile b/sysutils/samesame/Makefile index ea1c83c89090..494b7bb2ee88 100644 --- a/sysutils/samesame/Makefile +++ b/sysutils/samesame/Makefile @@ -1,7 +1,4 @@ -# New ports collection makefile for: samesame -# Date created: 14 April 2009 -# Whom: Alex de Kruijff -# +# Created by: Alex de Kruijff # $FreeBSD$ PORTNAME= samesame @@ -32,35 +29,35 @@ CONFIGURE_ARGS= --enable-samechflags --enable-samechmod \ --includedir="${LOCALBASE}/include" --libdir="${LOCALBASE}/lib" USE_BZIP2= yes -OPTIONS= DEBUG "Enables debugging support" Off \ - DISK_STORAGE "Allows temporarily storage on disk" Off \ - LOW_MEMORY_PROFILE "Low memory profile reduces functionality" Off \ - EXPERIMENTAL "Enables experimental functionality" Off \ - PROFILER "Enables gprof support" Off \ - TEST "Run quality assurance test" Off +OPTIONS_DEFINE= DEBUG DISK_STORAGE LOW_MEMORY_PROFILE EXPERIMENTAL PROFILER TEST +DISK_STORAGE_DESC= Allows temporarily storage on disk +LOW_MEMORY_PROFILE_DESC= Low memory profile reduces functionality +EXPERIMENTAL_DESC= Enables experimental functionality +PROFILER_DESC= Enables gprof support +TEST_DESC= Run quality assurance test -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} CONFIGURE_ARGS+= --enable-debug .endif -.if defined(WITH_DISK_STORAGE) +.if ${PORT_OPTIONS:MDISK_STORAGE} CONFIGURE_ARGS+= --enable-disk-storage PLIST_FILES+= etc/rc.d/samesame.sh .endif -.if defined(WITH_EXPERIMENTAL) +.if ${PORT_OPTIONS:MEXPERIMENTAL} CONFIGURE_ARGS+= --enable-experimental --enable-fsort #CONFIGURE_ARGS+= --enable-checksums --enable-preread PLIST_FILES+= bin/fsort .endif -.if defined(WITH_LOW_MEMORY_PROFILE) +.if ${PORT_OPTIONS:MLOW_MEMORY_PROFILE} CONFIGURE_ARGS+= --enable-low-memory-profile --disable-read-onces .endif -.if defined(WITH_PROFILER) +.if ${PORT_OPTIONS:MPROFILER} CONFIGURE_ARGS+= --enable-profiler .endif @@ -68,12 +65,12 @@ regression-test: build @cd ${WRKSRC}; ${MAKE} check post-build: -.if defined(WITH_TEST) +.if ${PORT_OPTIONS:MTEST} @cd ${WRKSRC}; ${MAKE} check .endif post-install: -.if defined(WITHOUT_DEBUG) && defined(WITHOUT_PROFILER) +.if ! ${PORT_OPTIONS:MDEBUG} && ! ${PORT_OPTIONS:MPROFILER} ${STRIP_CMD} ${PREFIX}/bin/samefile ${STRIP_CMD} ${PREFIX}/bin/samearchive ${STRIP_CMD} ${PREFIX}/bin/samearchive-lite @@ -84,15 +81,15 @@ post-install: ${STRIP_CMD} ${PREFIX}/bin/sameln ${STRIP_CMD} ${PREFIX}/bin/samemv ${STRIP_CMD} ${PREFIX}/bin/samerm -.if defined(WITH_EXPERIMENTAL) +.if ${PORT_OPTIONS:MEXPERIMENTAL} ${STRIP_CMD} ${PREFIX}/bin/fsort .endif .endif -.if defined(WITH_DISK_STORAGE) +.if ${PORT_OPTIONS:MDISK_STORAGE} ${INSTALL_SCRIPT} ${FILESDIR}/samesame.sh ${PREFIX}/etc/rc.d/ .endif @${ECHO} @${CAT} pkg-message @${ECHO} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/screen/Makefile b/sysutils/screen/Makefile index 6682da2bd523..356e040dc925 100644 --- a/sysutils/screen/Makefile +++ b/sysutils/screen/Makefile @@ -1,4 +1,4 @@ -# Whom: ache +# Created by: ache # $FreeBSD$ PORTNAME= screen @@ -14,22 +14,24 @@ MASTER_SITE_SUBDIR= screen MAINTAINER= cy@FreeBSD.org COMMENT= A multi-screen window manager -OPTIONS= CJK "Treat CJK ambiguous characters as full width" OFF \ - INFO "Build and install info documentation" ON \ - MAN "Build and install man pages" ON \ - NETHACK "Enable nethack-style messages" ON \ - XTERM_256 "Enable support for 256 colour xterm" ON \ - HOSTINLOCKED "Print user@host in locked message" OFF \ - SHOWENC "Show encoding on the status line" OFF +OPTIONS_DEFINE= CJK INFO MAN NETHACK XTERM_256 HOSTINLOCKED SHOWENC +OPTIONS_DEFAULT= INFO MAN NETHACK XTERM_256 +CJK_DESC= Treat CJK ambiguous characters as full width +INFO_DESC= Build and install info documentation +MAN_DESC= Build and install man pages +NETHACK_DESC= Enable nethack-style messages +XTERM_256_DESC= Enable support for 256 colour xterm +HOSTINLOCKED_DESC= Print user@host in locked message +SHOWENC_DESC= Show encoding on the status line -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> GNU_CONFIGURE= yes -.if defined(WITH_MAN) +.if ${PORT_OPTIONS:MMAN} MAN1= screen.1 MAKE_ARGS+= -DWITH_MAN .endif -.if defined(WITH_INFO) +.if ${PORT_OPTIONS:MINFO} .if !exists(/usr/bin/install-info) RUN_DEPENDS+= install-info:${PORTSDIR}/print/texinfo .endif @@ -45,25 +47,25 @@ CFLAGS+= -O0 # set up a custom termcap entry or .screenrc which modifies termcap # to contain the following: Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm # -.if defined(WITH_XTERM_256) +.if ${PORT_OPTIONS:MXTERM_256} CFLAGS+= -DCOLORS256 .endif -.if !defined(WITH_NETHACK) +.if ! ${PORT_OPTIONS:MNETHACK} CFLAGS+= -DNONETHACK .endif # treat CJK ambiguous characters as full width via option "cjkwidth" -.if defined(WITH_CJK) +.if ${PORT_OPTIONS:MCJK} EXTRA_PATCHES+= ${FILESDIR}/opt-cjkwidth .endif -.if defined(WITH_HOSTINLOCKED) +.if ${PORT_OPTIONS:MHOSTINLOCKED} EXTRA_PATCHES+= ${FILESDIR}/opt-hostinlocked .endif # show encoding on the status line via option "showenc" -.if defined(WITH_SHOWENC) +.if ${PORT_OPTIONS:MSHOWENC} EXTRA_PATCHES+= ${FILESDIR}/opt-showencoding .endif @@ -78,4 +80,4 @@ post-install: ${CP} ${EXAMPLESDIR}/screenrc ${PREFIX}/etc/screenrc ; \ fi -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/squashfs-tools/Makefile b/sysutils/squashfs-tools/Makefile index 16d829a38cf8..64c191140d62 100644 --- a/sysutils/squashfs-tools/Makefile +++ b/sysutils/squashfs-tools/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: squashfs-tools -# Date created: 2010-04-21 -# Whom: Ashish SHUKLA <wahjava@gmail.com> -# +# Created by: Ashish SHUKLA <wahjava@gmail.com> # $FreeBSD$ -# PORTNAME= squashfs-tools PORTVERSION= 4.2 @@ -20,8 +16,10 @@ LICENSE_FILE= ${WRKSRC}/../COPYING PLIST_FILES= bin/mksquashfs \ bin/unsquashfs -OPTIONS= XZ "Build with XZ support" On \ - LZO "Build with LZO support" On +OPTIONS_DEFINE= XZ LZO DOCS +OPTIONS_DEFAULT= XZ LZO +XZ_DESC= Build with XZ support +LZO_DESC= Build with LZO support MAKE_JOBS_SAFE= yes WRKSRC= ${WRKDIR}/${DISTNAME}/squashfs-tools @@ -30,21 +28,21 @@ USE_CSTD= gnu89 USE_GMAKE= yes -.ifndef NOPORTDOCS +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MDOCS} PORTDOCS= ACKNOWLEDGEMENTS CHANGES COPYING \ PERFORMANCE.README README README-${PORTVERSION} .endif -.include <bsd.port.options.mk> - -.ifdef WITH_XZ +.if ${PORT_OPTIONS:MXZ} MAKE_ARGS+= XZ_SUPPORT=1 .if ${OSVERSION} < 900012 && ${OSVERSION} < 800505 LIB_DEPENDS+= lzma.5:${PORTSDIR}/archivers/xz .endif .endif -.ifdef WITH_LZO +.if ${PORT_OPTIONS:MLZO} MAKE_ARGS+= LZO_SUPPORT=1 LZO_DIR=${LOCALBASE} LIB_DEPENDS+= lzo2.2:${PORTSDIR}/archivers/lzo2 .endif @@ -54,7 +52,7 @@ post-patch: -e "s|^\(XATTR\)|# \1|g" \ ${WRKSRC}/Makefile -.ifndef NOPORTDOCS +.if ${PORT_OPTIONS:MDOCS} post-install: @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC:H}/|} ${DOCSDIR} diff --git a/sysutils/sysinfo/Makefile b/sysutils/sysinfo/Makefile index a9912ce24afc..d5d14c30a95f 100644 --- a/sysutils/sysinfo/Makefile +++ b/sysutils/sysinfo/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: sysinfo -# Date created: 22 April 2009 -# Whom: Daniel Gerzo <danger@FreeBSD.org> -# +# Created by: Daniel Gerzo <danger@FreeBSD.org> # $FreeBSD$ -# PORTNAME= sysinfo PORTVERSION= 1.0.1 @@ -21,16 +17,17 @@ WRKSRC= ${WRKDIR}/${PORTNAME} MAN5= sysinfo.conf.5 MAN8= sysinfo.8 -OPTIONS= DMIDECODE "Include information from the dmidecode tool" Off \ - PORTAUDIT "Include information from the portaudit tool" Off +OPTIONS_DEFINE= DMIDECODE PORTAUDIT +DMIDECODE_DESC= Include information from the dmidecode tool +PORTAUDIT_DESC= Include information from the portaudit tool -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_DMIDECODE) +.if ${PORT_OPTIONS:MDMIDECODE} RUN_DEPENDS= dmidecode:${PORTSDIR}/sysutils/dmidecode .endif -.if defined(WITH_PORTAUDIT) +.if ${PORT_OPTIONS:MPORTAUDIT} RUN_DEPENDS+= portaudit:${PORTSDIR}/ports-mgmt/portaudit .endif @@ -58,4 +55,4 @@ post-install: ${CP} -p ${PREFIX}/etc/sysinfo.conf.sample ${PREFIX}/etc/sysinfo.conf ; \ fi -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/syslog-ng-devel/Makefile b/sysutils/syslog-ng-devel/Makefile index 5dc2197bd537..ed948d1a6250 100644 --- a/sysutils/syslog-ng-devel/Makefile +++ b/sysutils/syslog-ng-devel/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: syslog-ng -# Date created: 10 November 2006 -# Whom: Ivan Lago <ivan.lago@ifom-ieo-campus.it> -# +# Created by: Ivan Lago <ivan.lago@ifom-ieo-campus.it> # $FreeBSD$ -# PORTNAME= syslog-ng PORTVERSION= 3.4.1 @@ -20,16 +16,20 @@ CONFLICTS?= syslog-ng-[0-9]* syslog-ng[0-9]-[0-9]* \ syslog-ng-devel-[0-9]* WRKSRC= $(WRKDIR)/$(PORTNAME)-$(DISTVERSION) -OPTIONS= SYS_SSL "Build with OpenSSL support (from system)" off \ - PORTS_SSL "Build with OpenSSL support (from ports)" on \ - TCP_WRAPPERS "Build with TCP Wrappers" off \ - SQL "Build with database (libdbi) support" off \ - SPOOF "Build with spoof source support" off \ - IPV6 "Build with IPV6 support" on \ - PCRE "Build with PCRE support" on \ - SMTP "Build with SMTP support" off \ - JSON "Build with JSON-C support" off \ - GEOIP "Build with GeoIP support" off \ +OPTIONS_RADIO= SSL +OPTIONS_RADIO_SSL= SYS_SSL PORTS_SSL +OPTIONS_DEFINE= TCP_WRAPPERS SQL SPOOF IPV6 PCRE SMTP JSON GEOIP DOCS +OPTIONS_DEFAULT= PORTS_SSL PCRE +SYS_SSL_DESC= Build with OpenSSL support (from system) +PORTS_SSL_DESC= Build with OpenSSL support (from ports) +TCP_WRAPPERS_DESC= Build with TCP Wrappers +SQL_DESC= Build with database (libdbi) support +SPOOF_DESC= Build with spoof source support +IPV6_DESC= Build with IPV6 support +PCRE_DESC= Build with PCRE support +SMTP_DESC= Build with SMTP support +JSON_DESC= Build with JSON-C support +GEOIP_DESC= Build with GeoIP support .include <bsd.port.options.mk> @@ -50,11 +50,7 @@ CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc --localstatedir=/var/db \ --enable-dynamic-linking \ --enable-debug -.if defined(WITH_SYS_SSL) && defined(WITH_PORTS_SSL) -BROKEN= SYS_SSL and PORTS_SSL are mutually exclusive -.endif - -.if defined(WITH_SYS_SSL) || defined(WITH_PORTS_SSL) +.if ${PORT_OPTIONS:MSYS_SSL} || ${PORT_OPTIONS:MPORTS_SSL} USE_OPENSSL= yes CONFIGURE_ARGS+= --enable-ssl CONFIGURE_ENV+= OPENSSL_CFLAGS="${OPENSSL_CFLAGS}" \ @@ -64,7 +60,7 @@ PLIST_FILES+= lib/syslog-ng/libafsocket-tls.la lib/syslog-ng/libafsocket-tls.so CONFIGURE_ARGS+= --disable-ssl .endif -.if defined(WITH_PORTS_SSL) +.if ${PORT_OPTIONS:MPORTS_SSL} WITH_OPENSSL_PORT= yes .endif @@ -74,13 +70,13 @@ WITH_OPENSSL_PORT= yes BROKEN= Does not compile on sparc64: gcc core dump .endif -.if defined(WITH_TCP_WRAPPERS) +.if ${PORT_OPTIONS:MTCP_WRAPPERS} CONFIGURE_ARGS+= --enable-tcp-wrapper .else CONFIGURE_ARGS+= --disable-tcp-wrapper .endif -.if defined(WITH_SPOOF) +.if ${PORT_OPTIONS:MSPOOF} BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config CONFIGURE_ARGS+= --enable-spoof-source --with-libnet=${LOCALBASE}/bin @@ -90,20 +86,20 @@ LDFLAGS+= `${LIBNET_CONFIG} --libs` CONFIGURE_ARGS+= --disable-spoof-source .endif -.if defined(WITH_IPV6) +.if ${PORT_OPTIONS:MIPV6} CONFIGURE_ARGS+= --enable-ipv6 .else CONFIGURE_ARGS+= --disable-ipv6 .endif -.if defined(WITH_PCRE) +.if ${PORT_OPTIONS:MPCRE} CONFIGURE_ARGS+= --enable-pcre LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre .else CONFIGURE_ARGS+= --disable-pcre .endif -.if defined(WITH_GEOIP) +.if ${PORT_OPTIONS:MGEOIP} CONFIGURE_ARGS+= --enable-geoip LIB_DEPENDS+= GeoIP.5:${PORTSDIR}/net/GeoIP CONFIGURE_ENV+= GEOIP_LIBS="-lGeoIP" @@ -112,7 +108,7 @@ PLIST_FILES+= lib/syslog-ng/libtfgeoip.la lib/syslog-ng/libtfgeoip.so CONFIGURE_ARGS+= --disable-geoip .endif -.if defined(WITH_SMTP) +.if ${PORT_OPTIONS:MSMTP} CONFIGURE_ARGS+= --with-libesmtp=/usr/local/ LIB_DEPENDS+= esmtp.7:${PORTSDIR}/mail/libesmtp PLIST_FILES+= lib/syslog-ng/libafsmtp.la lib/syslog-ng/libafsmtp.so @@ -120,7 +116,7 @@ PLIST_FILES+= lib/syslog-ng/libafsmtp.la lib/syslog-ng/libafsmtp.so CONFIGURE_ARGS+= --disable-smtp .endif -.if defined(WITH_SQL) +.if ${PORT_OPTIONS:MSQL} LIB_DEPENDS+= dbi.1:${PORTSDIR}/databases/libdbi CONFIGURE_ENV+= LIBDBI_LIBS="-ldbi" CONFIGURE_ARGS+= --enable-sql @@ -129,7 +125,7 @@ PLIST_FILES+= lib/syslog-ng/libafsql.la lib/syslog-ng/libafsql.so CONFIGURE_ARGS+= --disable-sql .endif -.if defined(WITH_JSON) +.if ${PORT_OPTIONS:MJSON} LIB_DEPENDS+= json.0:${PORTSDIR}/devel/json-c CONFIGURE_ARGS+= --enable-json PLIST_FILES+= lib/syslog-ng/libjson-plugin.la lib/syslog-ng/libjson-plugin.so @@ -146,7 +142,7 @@ post-patch: @${LN} ${WRKSRC}/scl/syslog-ng.conf ${WRKSRC}/scl/syslog-ng.conf.dist post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \ ${PREFIX}/share/doc/syslog-ng \ ${PREFIX}/share/doc/syslog-ng diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile index 49d968503b93..beeefd6b966f 100644 --- a/sysutils/syslog-ng/Makefile +++ b/sysutils/syslog-ng/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: syslog-ng -# Date created: 10 November 2006 -# Whom: Ivan Lago <ivan.lago@ifom-ieo-campus.it> -# +# Created by: Ivan Lago <ivan.lago@ifom-ieo-campus.it> # $FreeBSD$ -# PORTNAME= syslog-ng PORTVERSION= 3.3.9 @@ -18,16 +14,21 @@ CONFLICTS?= syslog-ng-[0-9]* syslog-ng[0-9]-[0-9]* \ syslog-ng-devel-[0-9]* WRKSRC= $(WRKDIR)/$(PORTNAME)-$(PORTVERSION) -OPTIONS= SYS_SSL "Build with OpenSSL support (from system)" off \ - PORTS_SSL "Build with OpenSSL support (from ports)" on \ - TCP_WRAPPERS "Build with TCP Wrappers" off \ - SQL "Build with database (libdbi) support" off \ - SPOOF "Build with spoof source support" off \ - IPV6 "Build with IPV6 support" on \ - PCRE "Build with PCRE support" on \ - JSON_C "Build with JSON-C support" off \ - JSON_GLIB "Build with JSON-GLIB support" off \ - SYSLOG2NG "Install syslog2ng script" off +OPTIONS_RADIO= SSL JSON +OPTIONS_RADIO_SSL= SYS_SSL PORTS_SSL +OPTIONS_RADIO_JSON= JSON_C JSON_GLIB +OPTIONS_DEFINE= TCP_WRAPPERS SQL SPOOF IPV6 PCRE SYSLOG2NG DOCS +OPTIONS_DEFAULT= PORTS_SSL PCRE +SYS_SSL_DESC= Build with OpenSSL support (from system) +PORTS_SSL_DESC= Build with OpenSSL support (from ports) +TCP_WRAPPERS_DESC= Build with TCP Wrappers +SQL_DESC= Build with database (libdbi) support +SPOOF_DESC= Build with spoof source support +IPV6_DESC= Build with IPV6 support +PCRE_DESC= Build with PCRE support +JSON_C_DESC= Build with JSON-C support +JSON_GLIB_DESC= Build with JSON-GLIB support +SYSLOG2NG_DESC= Install syslog2ng script .include <bsd.port.options.mk> @@ -47,11 +48,7 @@ SUB_FILES= pkg-message CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc --localstatedir=/var/db \ --enable-dynamic-linking -.if defined(WITH_SYS_SSL) && defined(WITH_PORTS_SSL) -BROKEN= SYS_SSL and PORTS_SSL are mutually exclusive -.endif - -.if defined(WITH_SYS_SSL) || defined(WITH_PORTS_SSL) +.if ${PORT_OPTIONS:MSYS_SSL} || ${PORT_OPTIONS:MPORTS_SSL} USE_OPENSSL= yes CONFIGURE_ARGS+= --enable-ssl CONFIGURE_ENV+= OPENSSL_CFLAGS="${OPENSSL_CFLAGS}" \ @@ -61,19 +58,19 @@ PLIST_FILES+= lib/syslog-ng/libafsocket-tls.la lib/syslog-ng/libafsocket-tls.so CONFIGURE_ARGS+= --disable-ssl .endif -.if defined(WITH_PORTS_SSL) +.if ${PORT_OPTIONS:MPORTS_SSL} WITH_OPENSSL_PORT= yes .endif .include <bsd.port.pre.mk> -.if defined(WITH_TCP_WRAPPERS) +.if ${PORT_OPTIONS:MTCP_WRAPPERS} CONFIGURE_ARGS+= --enable-tcp-wrapper .else CONFIGURE_ARGS+= --disable-tcp-wrapper .endif -.if defined(WITH_SPOOF) +.if ${PORT_OPTIONS:MSPOOF} LIB_DEPENDS+= net:${PORTSDIR}/net/libnet LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config CONFIGURE_ARGS+= --enable-spoof-source --with-libnet=${LOCALBASE}/bin @@ -83,20 +80,20 @@ LDFLAGS+= -g `${LIBNET_CONFIG} --libs` CONFIGURE_ARGS+= --disable-spoof-source .endif -.if defined(WITH_IPV6) +.if ${PORT_OPTIONS:MIPV6} CONFIGURE_ARGS+= --enable-ipv6 .else CONFIGURE_ARGS+= --disable-ipv6 .endif -.if defined(WITH_PCRE) +.if ${PORT_OPTIONS:MPCRE} CONFIGURE_ARGS+= --enable-pcre LIB_DEPENDS+= pcre:${PORTSDIR}/devel/pcre .else CONFIGURE_ARGS+= --disable-pcre .endif -.if defined(WITH_SQL) +.if ${PORT_OPTIONS:MSQL} LIB_DEPENDS+= dbi.1:${PORTSDIR}/databases/libdbi CONFIGURE_ENV+= LIBDBI_LIBS="-ldbi" CONFIGURE_ARGS+= --enable-sql @@ -105,15 +102,11 @@ PLIST_FILES+= lib/syslog-ng/libafsql.la lib/syslog-ng/libafsql.so CONFIGURE_ARGS+= --disable-sql .endif -.if defined(WITH_JSON_C) && defined(WITH_JSON_GLIB) -BROKEN= JSON_C and JSON_GLIB are mutually exclusive -.endif - -.if defined(WITH_JSON_GLIB) +.if ${PORT_OPTIONS:MJSON_GLIB} LIB_DEPENDS+= json-glib-1.0.0:${PORTSDIR}/devel/json-glib CONFIGURE_ARGS+= --enable-json --with-json=json-glib PLIST_FILES+= lib/syslog-ng/libtfjson.la lib/syslog-ng/libtfjson.so -.elif defined(WITH_JSON_C) +.elif ${PORT_OPTIONS:MJSON_C} LIB_DEPENDS+= json.0:${PORTSDIR}/devel/json-c CONFIGURE_ARGS+= --enable-json --with-json=json-c PLIST_FILES+= lib/syslog-ng/libtfjson.la lib/syslog-ng/libtfjson.so @@ -125,7 +118,7 @@ CONFIGURE_ARGS+= --disable-json CONFIGURE_ARGS+= --disable-linux-caps .endif -.if defined(WITH_SYSLOG2NG) +.if ${PORT_OPTIONS:MSYSLOG2NG} PLIST_FILES+= sbin/syslog2ng .endif @@ -135,10 +128,10 @@ post-patch: @${FIND} ${WRKSRC} -name "*.orig" -delete post-install: -.if defined(WITH_SYSLOG2NG) +.if ${PORT_OPTIONS:MSYSLOG2NG} ${INSTALL_SCRIPT} ${WRKSRC}/contrib/syslog2ng ${PREFIX}/sbin .endif -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${INSTALL} -d -o ${SHAREOWN} -g ${SHAREGRP} \ ${PREFIX}/share/doc/syslog-ng ${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/syslog-ng diff --git a/sysutils/sysupdate/Makefile b/sysutils/sysupdate/Makefile index cdf835e05bfc..e829c5f2aadd 100644 --- a/sysutils/sysupdate/Makefile +++ b/sysutils/sysupdate/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: sysupdate -# Date created: 17 Jan 2006 -# Whom: Tig <tigger@lvlworld.com> -# +# Created by: Tig <tigger@lvlworld.com> # $FreeBSD$ -# PORTNAME= sysupdate PORTVERSION= 0.5.8 @@ -22,11 +18,12 @@ WRKSRC= ${WRKDIR}/${PORTNAME} NO_BUILD= yes PLIST_FILES= bin/sysupdate.sh -OPTIONS= FASTEST_CVSUP "Support fastest_cvsup" off +OPTIONS_DEFINE= FASTEST_CVSUP +FASTEST_CVSUP_DESC= Support fastest_cvsup -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_FASTEST_CVSUP) +.if ${PORT_OPTIONS:MFASTEST_CVSUP} RUN_DEPENDS+= fastest_cvsup:${PORTSDIR}/sysutils/fastest_cvsup .endif @@ -34,4 +31,4 @@ post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \ ${WRKSRC}/Makefile -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/torsmo/Makefile b/sysutils/torsmo/Makefile index 44c0dcce570e..e8b43ff0fd48 100644 --- a/sysutils/torsmo/Makefile +++ b/sysutils/torsmo/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: torsmo -# Date created: 2004-07-29 -# Whom: Roman Bogorodskiy <bogorodskiy@inbox.ru> -# +# Created by: Roman Bogorodskiy <bogorodskiy@inbox.ru> # $FreeBSD$ -# PORTNAME= torsmo PORTVERSION= 0.18 @@ -24,26 +20,27 @@ PLIST_FILES= bin/torsmo \ PLIST_DIRS= %%EXAMPLESDIR%% PORTDOCS= AUTHORS ChangeLog NEWS README -OPTIONS= XFT "XFT support" on \ - DOUBLE_BUFFER "Flicker-free operation support" on +OPTIONS_DEFINE= XFT DOUBLE_BUFFER DOCS +OPTIONS_DEFAULT= XFT DOUBLE_BUFFER +DOUBLE_BUFFER_DESC= Flicker-free operation support -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if !defined(WITHOUT_XFT) +.if ${PORT_OPTIONS:MXFT} LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft CONFIGURE_ARGS+= --enable-xft .endif -.if defined(WITHOUT_DOUBLE_BUFFER) +.if ! ${PORT_OPTIONS:MDOUBLE_BUFFER} CONFIGURE_ARGS+= --disable-double-buffer .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR} .endif @${MKDIR} ${EXAMPLESDIR} @${INSTALL_DATA} ${WRKSRC}/torsmorc.sample ${EXAMPLESDIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/udfclient/Makefile b/sysutils/udfclient/Makefile index 0317d6163f1b..92fb54699741 100644 --- a/sysutils/udfclient/Makefile +++ b/sysutils/udfclient/Makefile @@ -19,8 +19,8 @@ WRKSRC= ${WRKDIR}/UDFclient.${PORTVERSION} GNU_CONFIGURE= yes MAKE_ARGS+= INSTALL="${INSTALL_PROGRAM}" -OPTIONS= FUSE "udfclientfs via FUSE" off \ - DEBUG "build with debug support" off +OPTIONS_DEFINE= FUSE DEBUG +FUSE_DESC= udfclientfs via FUSE PLIST_FILES= bin/udfdump \ bin/udfclient \ @@ -31,7 +31,7 @@ PLIST_FILES= bin/udfdump \ .include <bsd.port.options.mk> -.if defined(WITH_FUSE) +.if ${PORT_OPTIONS:MFUSE} UDFCLIENTFS_NAME= udfclientfs UDFCLIENTFS_VERSION= 0.4 UDFCLIENTFS_DIR= ${WRKDIR}/udfclientfs @@ -45,12 +45,12 @@ USES+= fuse PLIST_FILES+= bin/${UDFCLIENTFS_NAME} .endif -.if defined(WITH_DEBUG) +.if ${PORT_OPTIONS:MDEBUG} CFLAGS+= -O0 -ggdb3 .endif post-patch: -.if defined(WITH_FUSE) +.if ${PORT_OPTIONS:MFUSE} ${CP} ${UDFCLIENTFS_DIR}/${UDFCLIENTFS_NAME}.c ${WRKSRC} .endif diff --git a/sysutils/usbhotkey/Makefile b/sysutils/usbhotkey/Makefile index c32a6e923136..08e2afa56ec0 100644 --- a/sysutils/usbhotkey/Makefile +++ b/sysutils/usbhotkey/Makefile @@ -12,25 +12,29 @@ COMMENT= A utility to remap USB keyboards under X11 LIB_DEPENDS= hid.0:${PORTSDIR}/devel/libhid \ Xtst.6:${PORTSDIR}/x11/libXtst -OPTIONS= GUI "Enable GUI bits (Imlib dependency)" on +OPTIONS_DEFINE= GUI +OPTIONS_DEFAULT= GUI +GUI_DESC= Enable GUI bits (Imlib dependency) USE_RUBY= yes USE_GMAKE= yes HAS_CONFIGURE= yes -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> CPPFLAGS+= -I${LOCALBASE}/include \ -I${LOCALBASE}/include/ruby-${RUBY_VER} \ -I${LOCALBASE}/include/ruby-${RUBY_VER}/${RUBY_ARCH} LDFLAGS+= -L${LOCALBASE}/lib -.if !defined(WITHOUT_GUI) +.if ${PORT_OPTIONS:MGUI} LIB_DEPENDS+= Imlib.5:${PORTSDIR}/graphics/imlib .else CONFIGURE_ARGS+= --without-Imlib .endif +.include <bsd.port.pre.mk> + .if ${RUBY_VER} == 1.9 EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-main.c .endif diff --git a/sysutils/webjob/Makefile b/sysutils/webjob/Makefile index 74413ea53b9d..1dfcc1751fe8 100644 --- a/sysutils/webjob/Makefile +++ b/sysutils/webjob/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: webjob -# Date created: 20 August 2002 -# Whom: Klayton Monroe <klm@uidzero.org> -# +# Created by: Klayton Monroe <klm@uidzero.org> # $FreeBSD$ -# PORTNAME= webjob PORTVERSION= 1.8.0 @@ -18,24 +14,26 @@ GNU_CONFIGURE= yes USE_PERL5_BUILD= yes MAN1= webjob.1 xshar.1 -OPTIONS= PAD_TOOLS "install PaD tools" on \ - DSV_TOOLS "install DSV tools" on +OPTIONS_DEFINE= PAD_TOOLS DSV_TOOLS SSL +OPTIONS_DEFAULT= PAD_TOOLS DSV_TOOLS +PAD_TOOLS_DESC= install PaD tools +DSV_TOOLS_DESC= install DSV tools -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if defined(WITH_PAD_TOOLS) +.if ${PORT_OPTIONS:MPAD_TOOLS} PLIST_SUB+= PAD_TOOLS="" CONFIGURE_ARGS+= --with-pad-tools .else PLIST_SUB+= PAD_TOOLS="@comment " .endif -.if defined(WITHOUT_SSL) +.if ! ${PORT_OPTIONS:MSSL} CONFIGURE_ARGS+= --without-ssl .else -.include "${PORTSDIR}/Mk/bsd.openssl.mk" +USE_OPENSSL= yes CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE} -.if defined(WITHOUT_DSV_TOOLS) # Note: DSV requires SSL +.if ! ${PORT_OPTIONS:MDSV_TOOLS} # Note: DSV requires SSL PLIST_SUB+= DSV_TOOLS="@comment " .else PLIST_SUB+= DSV_TOOLS="" @@ -51,4 +49,4 @@ CFLAGS+= -static post-install: @${STRIP_CMD} ${PREFIX}/bin/webjob -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/sysutils/zisofs-tools/Makefile b/sysutils/zisofs-tools/Makefile index 25f83990f8a3..a39bb8491cac 100644 --- a/sysutils/zisofs-tools/Makefile +++ b/sysutils/zisofs-tools/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: zisofs-tools -# Date created: 24 Nov 2003 -# Whom: Nosov Artem <chip-set@mail.ru> -# +# Created by: Nosov Artem <chip-set@mail.ru> # $FreeBSD$ -# PORTNAME= zisofs-tools PORTVERSION= 1.0.8 @@ -30,14 +26,18 @@ MAN1= mkzftree.1 PLIST_FILES= bin/mkzftree -OPTIONS= LFS "Enable Large Files Support" on +OPTIONS_DEFINE= LFS DOCS +OPTIONS_DEFAULT= LFS +LFS_DESC= Enable Large Files Support -.if defined(WITHOUT_LFS) +.include <bsd.port.options.mk> + +.if ! ${PORT_OPTIONS:MLFS} CONFIGURE_ARGS+= --disable-largefile .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/ .endif |