summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-05-23 16:10:43 +0000
committerjgh <jgh@FreeBSD.org>2013-05-23 16:10:43 +0000
commit3e076eda9c9558cae971fc26704d307c15af43ff (patch)
tree7a07ddc1957746cdaa2cb3a8d489a8fd12cf2d40
parent3f6381641e43bbc5f25a46951661cfa837026e21 (diff)
downloadFreeBSD-ports-3e076eda9c9558cae971fc26704d307c15af43ff.zip
FreeBSD-ports-3e076eda9c9558cae971fc26704d307c15af43ff.tar.gz
- adoption of optionsNG framework
Approved by: portmgr (bapt)
-rw-r--r--net-im/ejabberd/Makefile17
-rw-r--r--net-im/iserverd/Makefile20
-rw-r--r--net-im/jabber-pyaim/Makefile20
-rw-r--r--net-im/jggtrans/Makefile12
-rw-r--r--net-im/naim/Makefile17
-rw-r--r--net-im/py-xmpppy-yahoo/Makefile15
-rw-r--r--net-im/sim-im-devel/Makefile26
-rw-r--r--net-im/skype-devel/Makefile20
-rw-r--r--net-im/skype/Makefile23
-rw-r--r--net-im/tkabber-devel/Makefile18
10 files changed, 82 insertions, 106 deletions
diff --git a/net-im/ejabberd/Makefile b/net-im/ejabberd/Makefile
index da53349..68fabef 100644
--- a/net-im/ejabberd/Makefile
+++ b/net-im/ejabberd/Makefile
@@ -1,9 +1,5 @@
-## New ports collection makefile for: ejabberd
-# Date created: 03 July 2004
-# Whom: Alexander Timoshenko <gonzo@univ.kiev.ua>
-#
+# Created by: Alexander Timoshenko <gonzo@univ.kiev.ua>
# $FreeBSD$
-#
PORTNAME= ejabberd
PORTVERSION= 2.1.11
@@ -30,8 +26,7 @@ USES= iconv
USE_RC_SUBR= ${PORTNAME}
NOPRECIOUSMAKEVARS= yes
-OPTIONS= ODBC "Enable ODBC support" off \
- PAM "Enable setuid PAM auth support" off
+OPTIONS_DEFINE= ODBC PAM
MAKE_ENV= PORTVERSION=${PORTVERSION}
CONFIGURE_ARGS+=--localstatedir=/var --with-openssl=${OPENSSLBASE}
@@ -49,21 +44,21 @@ USE_OPENSSL= yes
.include "${PORTSDIR}/Mk/bsd.openssl.mk"
-.if defined(WITH_ODBC)
+.if ${PORT_OPTIONS:MODBC}
CONFIGURE_ARGS+=--enable-odbc
PLIST_SUB+= ODBC=""
.else
PLIST_SUB+= ODBC="@comment "
.endif
-.if defined(WITH_PAM)
+.if ${PORT_OPTIONS:MPAM}
CONFIGURE_ARGS+=--enable-pam
PLIST_SUB+= PAM=""
.else
PLIST_SUB+= PAM="@comment "
.endif
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
MAKE_ARGS+= NOPORTDOCS=${NOPORTDOCS}
.endif
@@ -75,7 +70,7 @@ post-install:
@${FIND} ${PREFIX}/lib/erlang/lib/${DISTNAME} -type f -print0 | ${XARGS} -0 ${CHMOD} ${SHAREMODE}
@${FIND} ${PREFIX}/lib/erlang/lib/${DISTNAME} -type f -print0 | ${XARGS} -0 ${CHOWN} ${SHAREOWN}:${SHAREGRP}
-.if defined(WITH_PAM)
+.if ${PORT_OPTIONS:MPAM}
${CHMOD} 4750 ${PREFIX}/lib/erlang/lib/${DISTNAME}/priv/bin/epam
${CHOWN} root:ejabberd ${PREFIX}/lib/erlang/lib/${DISTNAME}/priv/bin/epam
${INSTALL} -m 444 ${FILESDIR}/pam_ejabberd ${PREFIX}/etc/pam.d/ejabberd
diff --git a/net-im/iserverd/Makefile b/net-im/iserverd/Makefile
index aad6e2d..5a73f4e 100644
--- a/net-im/iserverd/Makefile
+++ b/net-im/iserverd/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: iserverd
-# Date created: Sun Jun 10 17:51:00 GMT 2007
-# Whom: Denis Rakhmangulov <danfocus@gmail.com>
-#
+# Created by: Denis Rakhmangulov <danfocus@gmail.com>
# $FreeBSD$
-#
PORTNAME= iserverd
PORTVERSION= 2.5.5
@@ -18,8 +14,10 @@ USE_PGSQL= YES
GNU_CONFIGURE= YES
USE_RC_SUBR= iserverd
-OPTIONS= KQUEUE "Use kqueue(2) instead of poll(2)" on \
- DEBUG "Enable debugging symbols" off
+OPTIONS_DEFINE= KQUEUE DEBUG
+KQUEUE_DESC= kqueue(2) instead of poll(2)
+
+OPTIONS_DEFAULT= KQUEUE
CONFIGURE_ARGS= --with-pgsql=${LOCALBASE} \
--with-bindir=${PREFIX}/bin \
@@ -33,7 +31,7 @@ MAN1= db_convert.1
MAN5= iserv.conf.5 v3_proto.conf.5 v5_proto.conf.5
MAN8= iserverd.8
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
.if ${OSVERSION} >= 700042
.if ${ARCH} == "sparc64"
@@ -41,10 +39,10 @@ BROKEN= Does not compile with GCC 4.2
.endif
.endif
-.if defined(WITH_DEBUG)
+.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif
-.if defined(WITH_KQUEUE)
+.if ${PORT_OPTIONS:MKQUEUE}
CONFIGURE_ARGS+=--with-kqueue
.endif
@@ -61,4 +59,4 @@ post-install:
@${CHOWN} -R iserv /var/log/iserverd
@${CHOWN} -R iserv /var/run/iserverd
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/net-im/jabber-pyaim/Makefile b/net-im/jabber-pyaim/Makefile
index 8c1703d..f1bed1f 100644
--- a/net-im/jabber-pyaim/Makefile
+++ b/net-im/jabber-pyaim/Makefile
@@ -1,15 +1,11 @@
-# New ports collection makefile for: Jabber Python AIM Transport
-# Date created: 2006-06-06
-# Whom: Derek Kulinski <takeda@takeda.tk>
-#
+# Created by: Derek Kulinski <takeda@takeda.tk>
# $FreeBSD$
-#
PORTNAME= pyaim
PORTVERSION= 0.8a
PORTREVISION= 1
CATEGORIES= net-im
-MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+MASTER_SITES= GOOGLE_CODE
PKGNAMEPREFIX= jabber-
PKGNAMESUFFIX= -transport
DISTNAME= ${PORTNAME}-t-${PORTVERSION}
@@ -20,8 +16,9 @@ COMMENT= Python AIM-Transport for Jabber
PROJECTHOST= pyaimt
-OPTIONS= EJABBERD "Use transport with ejabberd" off \
- TWISTED1 "Use old py-twisted 1.x" off
+OPTIONS_DEFINE= EJABBERD TWISTED1
+EJABBERD_DESC= transport with ejabberd
+TWISTED1_DESC= old py-twisted 1.x
NO_BUILD= yes
USE_PYTHON= yes
@@ -34,9 +31,10 @@ INST_DIR= ${PREFIX}/lib/jabber/${PORTNAME}
PORTDOCS= COPYING README NEWS AUTHORS INSTALL
+.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
-.if defined(WITH_EJABBERD)
+.if ${PORT_OPTIONS:MEJABBERD}
JABBER_USER?= ejabberd
SUB_LIST+= JABBER_REQUIRE=ejabberd
.else
@@ -44,7 +42,7 @@ JABBER_USER?= jabber
SUB_LIST+= JABBER_REQUIRE=jabberd
.endif
-.if defined(WITH_TWISTED1)
+.if ${PORT_OPTIONS:MTWISTED1}
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twisted
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twistedCore \
@@ -75,7 +73,7 @@ do-install:
${MKDIR} ${EXAMPLESDIR}/etc
${INSTALL_DATA} ${WRKSRC}/config_example.xml ${EXAMPLESDIR}/etc/jabber-pyaim.xml
@[ -f ${PREFIX}/etc/jabber-pyaim.xml ] || ${CP} -v ${EXAMPLESDIR}/etc/jabber-pyaim.xml ${PREFIX}/etc/jabber-pyaim.xml
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
.for portdoc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${portdoc} ${DOCSDIR}/
diff --git a/net-im/jggtrans/Makefile b/net-im/jggtrans/Makefile
index 92d5385..d32d3c2 100644
--- a/net-im/jggtrans/Makefile
+++ b/net-im/jggtrans/Makefile
@@ -25,16 +25,16 @@ CFLAGS+= -I${LOCALBASE}/include
USE_RC_SUBR= jggtrans
-OPTIONS= NODEBUG "Turn off debugging code" off \
- EJABBERD "Use transport with ejabberd" off
+OPTIONS_DEFINE= DEBUG EJABBERD
+EJABBERD_DESC= transport with ejabberd
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_NODEBUG)
+.if ! ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --disable-debug
.endif
-.if defined(WITH_EJABBERD)
+.if ${PORT_OPTIONS:MEJABBERD}
JABBER_USER?= ejabberd
SUB_LIST+= JABBER_REQUIRE=ejabberd
.else
@@ -49,4 +49,4 @@ post-install:
@${CP} -n ${WRKSRC}/jggtrans.xml ${PREFIX}/etc/jggtrans.xml || ${TRUE}
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/net-im/naim/Makefile b/net-im/naim/Makefile
index 075007a..b331f62 100644
--- a/net-im/naim/Makefile
+++ b/net-im/naim/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: naim
-# Date created: 02 March 1999
-# Whom: mharo@area51.fremont.ca.us
-#
+# Created by: mharo@area51.fremont.ca.us
# $FreeBSD$
-#
PORTNAME= naim
PORTVERSION= 0.11.8.3.2
@@ -20,19 +16,20 @@ MAN1= naim.1
MLINKS= naim.1 nirc.1 naim.1 nicq.1 naim.1 nlily.1
PORTDOCS= FAQ README commands.txt keyboard.txt
-OPTIONS= DETACH "Enable 'detach' feature (requires misc/screen)" off
+OPTIONS_DEFINE= DETACH
+DETACH_DESC= Activate 'detach' feature (requires misc/screen)
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
CONFIGURE_ARGS+= --with-pkgdocdir=${DOCSDIR}
.else
CONFIGURE_ARGS+= --without-pkgdocdir
.endif
-.if defined(WITH_DETACH)
+.if ${PORT_OPTIONS:MDETACH}
RUN_DEPENDS= screen:${PORTSDIR}/sysutils/screen
CONFIGURE_ARGS+= --enable-detach
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/net-im/py-xmpppy-yahoo/Makefile b/net-im/py-xmpppy-yahoo/Makefile
index 51bee09..4434918 100644
--- a/net-im/py-xmpppy-yahoo/Makefile
+++ b/net-im/py-xmpppy-yahoo/Makefile
@@ -1,9 +1,5 @@
-# Ports collection makefile for: xmpppy-yahoo
-# Date created: Thu Jul 26
-# Whom: Michael Nottebrock <lofi@FreeBSD.org>
-#
+# Created by: Michael Nottebrock <lofi@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= yahoo
PORTVERSION= 0.3.20070314
@@ -17,7 +13,8 @@ DISTNAME= yahoo-transport-${PORTVERSION}
MAINTAINER= wenheping@gmail.com
COMMENT= Yahoo! transport for Jabber
-OPTIONS= EJABBERD "Use transport with ejabberd" off
+OPTIONS_DEFINE= EJABBERD
+EJABBERD_DESC= transport with ejabberd
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/xmpp/__init__.py:${PORTSDIR}/net-im/py-xmpppy \
${PYTHON_SITELIBDIR}/DNS/__init__.py:${PORTSDIR}/dns/py-dns
@@ -37,9 +34,9 @@ SUB_LIST+= PYTHON_CMD=${PYTHON_CMD} BINDIR=${PYTHON_SITELIBDIR}/xmpp/yahoo \
USE_RC_SUBR= ${UNIQUENAME:S/-/_/}
DDIR= ${PYTHON_SITELIBDIR}/xmpp/yahoo
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_EJABBERD)
+.if ${PORT_OPTIONS:MEJABBERD}
JABBER_USER?= ejabberd
SUB_LIST+= JABBER_REQUIRE=ejabberd
.else
@@ -81,4 +78,4 @@ post-install:
@${ECHO_CMD} "****************************************************"
@${ECHO_CMD}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/net-im/sim-im-devel/Makefile b/net-im/sim-im-devel/Makefile
index 785c1fe..75bfe234 100644
--- a/net-im/sim-im-devel/Makefile
+++ b/net-im/sim-im-devel/Makefile
@@ -1,7 +1,4 @@
-# New Ports Collection Makefile for: sim-im-devel
-# Date created: 18 Apr 2006
-# Whom: Alexey V. Panfilov <sim-im@lehis.ru>
-#
+# Created by: Alexey V. Panfilov <sim-im@lehis.ru>
# $FreeBSD$
PORTNAME= sim-im-devel
@@ -31,31 +28,32 @@ GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
-OPTIONS= KDE "Enable KDE support" off \
- DEBUG "Enable debug" on
+OPTIONS_DEFINE= KDE3 DEBUG
+OPTIONS_DEFAULT= DEBUG
+.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
post-patch:
-.if !defined(WITH_KDE)
+.if ! ${PORT_OPTIONS:MKDE3}
@${REINPLACE_CMD} -e 's/-O2//g; s/-lpthread/${PTHREAD_LIBS}/g' \
${CONFIGURE_WRKSRC}/configure
.endif
-.if !defined(WITHOUT_DEBUG)
+.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+=--enable-debug
.endif
-.if !defined(WITH_KDE)
-CONFIGURE_ARGS+=--disable-kde --enable-mt
-LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
-PLIST_SUB+= KDE="@comment " \
- SPELL=""
-.else
+.if ${PORT_OPTIONS:MKDE3}
USE_KDELIBS_VER=3
PLIST_SUB+= KDE="" \
SPELL="@comment "
.include "${PORTSDIR}/Mk/bsd.kde.mk"
+.else
+CONFIGURE_ARGS+=--disable-kde --enable-mt
+LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
+PLIST_SUB+= KDE="@comment " \
+ SPELL=""
.endif
.include <bsd.port.post.mk>
diff --git a/net-im/skype-devel/Makefile b/net-im/skype-devel/Makefile
index 8278602..b3e6c29 100644
--- a/net-im/skype-devel/Makefile
+++ b/net-im/skype-devel/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: skype-devel
-# Date created: Jun 21. 2004
-# Whom: netchild@FreeBSD.org
-#
+# Created by: netchild@FreeBSD.org
# $FreeBSD$
-#
PORTNAME= skype
PORTVERSION= 2.2.0.35
@@ -18,8 +14,11 @@ COMMENT= P2P VoIP software, development version
CONFLICTS= skype-[0-9]*
-OPTIONS= VIDEO "[broken] Video sending support via multimedia/webcamd" on \
- NVIDIA_GL "Use libGL provided by NVidia binary drivers" off
+OPTIONS_DEFINE= VIDEO NVIDIA_GL
+VIDEO_DESC=[broken] Video support
+NVIDIA_GL_DESC= libGL provided by NVidia binary drivers
+
+OPTIONS_DEFAULT= VIDEO
CONFLICTS= skype-1* skype-2.0* skype-2.1*
@@ -38,16 +37,17 @@ PLIST_SUB+= SKYPEDIR=${SKYPEDIR}
SUB_FILES= skype.sh
SUB_LIST+= SKYPEDIR=${SKYPEDIR}
+.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
-.ifdef WITH_NVIDIA_GL
+.if ${PORT_OPTIONS:MNVIDIA_GL}
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
USE_LINUX_APPS+=xorglibs
.else
USE_LINUX_APPS+=dri
.endif
-.ifdef WITH_VIDEO
+.if ${PORT_OPTIONS:MVIDEO}
. include "${PORTSDIR}/multimedia/linux_v4l2wrapper-kmod/Makefile.sub"
RUN_DEPENDS+= webcamd>0:${PORTSDIR}/multimedia/webcamd
USE_LINUX_APPS+=libv4l
@@ -93,7 +93,7 @@ do-install:
@${INSTALL_SCRIPT} ${WRKDIR}/skype.sh ${PREFIX}/bin/skype
@${CHMOD} a+rx ${PREFIX}/bin/skype
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} -d ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/net-im/skype/Makefile b/net-im/skype/Makefile
index 6342381..a3e1ec1 100644
--- a/net-im/skype/Makefile
+++ b/net-im/skype/Makefile
@@ -1,12 +1,5 @@
-# New ports collection makefile for: skype
-# Date created: Jun 21. 2004
-# Whom: netchild@FreeBSD.org
-#
-# Maintainers: Ion-Mihai Tetcu <itetcu@FreeBSD.org>
-# Martin Wilke <miwi@FreeBSD.org>
-#
+# Created by: netchild@FreeBSD.org
# $FreeBSD$
-#
PORTNAME= skype
PORTVERSION= 2.1.0.81
@@ -20,8 +13,11 @@ MAINTAINER= itetcu@FreeBSD.org
COMMENT= P2P VoIP software
CONFLICTS= skype-devel-[0-9]*
-OPTIONS= VIDEO "Video sending support via multimedia/webcamd" on \
- NVIDIA_GL "Use libGL provided by NVidia binary drivers" off
+
+OPTIONS_DEFINE= VIDEO NVIDIA_GL
+NVIDIA_GL_DESC= libGL provided by NVidia binary drivers
+
+OPTIONS_DEFAULT= VIDEO
NO_BUILD= yes
@@ -38,16 +34,17 @@ PLIST_SUB+= SKYPEDIR=${SKYPEDIR}
SUB_FILES= skype.sh
SUB_LIST+= SKYPEDIR=${SKYPEDIR}
+.include <bsd.port.options.mk>
.include <bsd.port.pre.mk>
-.ifdef WITH_NVIDIA_GL
+.if ${PORT_OPTIONS:MNVIDIA_GL}
RUN_DEPENDS+= ${LINUXBASE}/usr/lib/libGL.so.1:${PORTSDIR}/x11/nvidia-driver
USE_LINUX_APPS+=xorglibs
.else
USE_LINUX_APPS+=dri
.endif
-.ifdef WITH_VIDEO
+.if ${PORT_OPTIONS:MVIDEO}
. include "${PORTSDIR}/multimedia/linux_v4l2wrapper-kmod/Makefile.sub"
RUN_DEPENDS+= webcamd>0:${PORTSDIR}/multimedia/webcamd
USE_LINUX_APPS+=libv4l
@@ -92,7 +89,7 @@ do-install:
# The wrapper for main program
@${INSTALL_SCRIPT} ${WRKDIR}/skype.sh ${PREFIX}/bin/skype
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${INSTALL} -d ${DOCSDIR}
@cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
diff --git a/net-im/tkabber-devel/Makefile b/net-im/tkabber-devel/Makefile
index f59ceaa..9a4fe48 100644
--- a/net-im/tkabber-devel/Makefile
+++ b/net-im/tkabber-devel/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: tkabber-devel
-# Date created: 09 July 2005
-# Whom: Denis Shaposhnikov <dsh@vlink.ru>
-#
+# Created by: Denis Shaposhnikov <dsh@vlink.ru>
# $FreeBSD$
-#
PORTNAME= tkabber
PORTVERSION= 0.11.1.a.20100207
@@ -38,7 +34,9 @@ DESKTOP_ENTRIES= "${PORTNAME}" \
SUBDIRS= emoticons ifacetk mclistbox msgs pixmaps plugins sounds \
tclxmpp trans
-OPTIONS= ZLIB "with zlib support" off
+OPTIONS_DEFINE= ZLIB
+
+.include <bsd.port.options.mk>
do-install:
${ECHO} -e "#!/bin/sh\nexec ${WISH} ${DATADIR}/tkabber.tcl \
@@ -57,7 +55,7 @@ do-install:
${MKDIR} ${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${EXAMPLESDIR})
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
. for i in AUTHORS COPYING ChangeLog README
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
@@ -65,10 +63,8 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif
-.include <bsd.port.pre.mk>
-
-.if defined(WITH_ZLIB)
+.if ${PORT_OPTIONS:MZLIB}
LIB_DEPENDS+= ztcl[0-9]:${PORTSDIR}/devel/ztcl
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
OpenPOWER on IntegriCloud