aboutsummaryrefslogtreecommitdiffstats
path: root/mail/cyrus-imapd24
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2013-10-14 02:48:51 +0800
committerume <ume@FreeBSD.org>2013-10-14 02:48:51 +0800
commit6e223bcc17f9a2c78578844fd0c29357109c1f8a (patch)
tree7ab3ea2c2d961fc2231ddb5aad4897eefec7a7ec /mail/cyrus-imapd24
parent39dd3005eea53a47b4bc24f9b926b40ced43cef1 (diff)
downloadfreebsd-ports-gnome-6e223bcc17f9a2c78578844fd0c29357109c1f8a.tar.gz
freebsd-ports-gnome-6e223bcc17f9a2c78578844fd0c29357109c1f8a.tar.zst
freebsd-ports-gnome-6e223bcc17f9a2c78578844fd0c29357109c1f8a.zip
use modern OPTIONS helper.
Diffstat (limited to 'mail/cyrus-imapd24')
-rw-r--r--mail/cyrus-imapd24/Makefile102
1 files changed, 29 insertions, 73 deletions
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile
index 746249bd5774..1f261ef01d55 100644
--- a/mail/cyrus-imapd24/Makefile
+++ b/mail/cyrus-imapd24/Makefile
@@ -39,18 +39,45 @@ CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
MAKE_JOBS_UNSAFE= yes
-OPTIONS_DEFINE= AUTOCREATE AUTOSIEVE BDB DRAC IDLED LDAP MURDER MYSQL \
- NETSCAPEHACK NNTP PGSQL REPLICATION SNMP SQLITE
+OPTIONS_DEFINE= AUTOCREATE AUTOSIEVE BDB DRAC IDLED LDAP \
+ MURDER MYSQL NETSCAPEHACK NNTP PGSQL \
+ REPLICATION SNMP SQLITE
OPTIONS_DEFAULT= BDB
+OPTIONS_SUB= yes
AUTOCREATE_DESC= Use autocreate INBOX patch (UoA)
AUTOSIEVE_DESC= Use autosievefolder patch (UoA)
+BDB_USE= BDB=yes
+BDB_CONFIGURE_ON= --with-bdb-incdir=${BDB_INCLUDE_DIR} \
+ --with-bdb-libdir=${LOCALBASE}/lib
DRAC_DESC= Enable DRAC support
+DRAC_CONFIGURE_ON= --with-drac=${LOCALBASE}
+DRAC_BUILD_DEPENDS= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
IDLED_DESC= Enable IMAP idled support
+IDLED_CONFIGURE_ENABLE= idled
LDAP_DESC= Enable LDAP support (experimental)
+LDAP_USE= OPENLDAP=yes
+LDAP_CONFIGURE_ON= --with-ldap=${LOCALBASE}
MURDER_DESC= Enable IMAP Murder support
+MURDER_CONFIGURE_ENABLE=murder
+MURDER_CFLAGS= ${PTHREAD_CFLAGS}
+MURDER_MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
+MYSQL_USE= MYSQL=yes
+MYSQL_CONFIGURE_ON= --with-mysql=yes \
+ --with-mysql-libdir=${LOCALBASE}/lib/mysql \
+ --with-mysql-incdir=${LOCALBASE}/include/mysql
NETSCAPEHACK_DESC= Enable X-NETSCAPE extensions
+NETSCAPEHACK_CONFIGURE_ENABLE=netscapehack
NNTP_DESC= Enable NNTP support
+NNTP_CONFIGURE_ENABLE= nntp
+PGSQL_USE= PGSQL=yes
+PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}
REPLICATION_DESC= Enable replication (experimental)
+REPLICATION_CONFIGURE_ENABLE=replication
+SNMP_LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
+SNMP_CONFIGURE_ON= --with-snmp=${LOCALBASE}
+SNMP_CONFIGURE_OFF= --with-snmp=no
+SQLITE_USE= SQLITE=yes
+SQLITE_CONFIGURE_ON= --with-sqlite=${LOCALBASE}
.include <bsd.port.pre.mk>
@@ -76,87 +103,16 @@ PATCHFILES+= ${PORTNAME}-2.4.12-autosieve-${AUTOSIEVE_VERSION}.patch
.endif
.if ${PORT_OPTIONS:MBDB}
-USE_BDB= yes
INVALID_BDB_VER=2
-CONFIGURE_ARGS+=--with-bdb-incdir=${BDB_INCLUDE_DIR} \
- --with-bdb-libdir=${LOCALBASE}/lib
.else
BDB_LIB_NAME= no
.endif
-.if ${PORT_OPTIONS:MNNTP}
-CONFIGURE_ARGS+=--enable-nntp
-PLIST_SUB+= NNTP=""
-.else
-PLIST_SUB+= NNTP="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MMURDER}
-CONFIGURE_ARGS+=--enable-murder
-CFLAGS+= ${PTHREAD_CFLAGS}
-MAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS}
-PLIST_SUB+= MURDER=""
-.else
-PLIST_SUB+= MURDER="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MIDLED}
-CONFIGURE_ARGS+=--enable-idled
-PLIST_SUB+= IDLED=""
-.else
-PLIST_SUB+= IDLED="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL= yes
-CONFIGURE_ARGS+=--with-mysql=yes \
- --with-mysql-libdir=${LOCALBASE}/lib/mysql \
- --with-mysql-incdir=${LOCALBASE}/include/mysql
-.endif
-
-.if ${PORT_OPTIONS:MPGSQL}
-USE_PGSQL= yes
-CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
-.endif
-
-.if ${PORT_OPTIONS:MSQLITE}
-USE_SQLITE= yes
-CONFIGURE_ARGS+=--with-sqlite=${LOCALBASE}
-.endif
-
-.if ${PORT_OPTIONS:MREPLICATION}
-CONFIGURE_ARGS+=--enable-replication
-PLIST_SUB+= REPLICATION=""
-.else
-PLIST_SUB+= REPLICATION="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MNETSCAPEHACK}
-CONFIGURE_ARGS+=--enable-netscapehack
-.endif
-
.if ${PORT_OPTIONS:MDRAC}
.if ${OSVERSION} >= 800037
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cmulocal::sasl2.m4
.endif
USE_AUTOTOOLS= autoconf autoheader
-CONFIGURE_ARGS+=--with-drac=${LOCALBASE}
-BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
-.endif
-
-.if ${PORT_OPTIONS:MSNMP}
-LIB_DEPENDS+= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
-CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--with-snmp=no
-.endif
-
-.if ${PORT_OPTIONS:MLDAP}
-USE_OPENLDAP= yes
-CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
-PLIST_SUB+= LDAP=""
-.else
-PLIST_SUB+= LDAP="@comment "
.endif
.if ${OSVERSION} >= 900022