aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2012-06-13 01:39:22 +0800
committerume <ume@FreeBSD.org>2012-06-13 01:39:22 +0800
commita78cc0b449b64a8e0fe72b78ae532b3b2354b30a (patch)
treef04410f738dc2402ab351e9fd4f470a7a9e8b7a2 /mail
parent9eb40e972c828eadf89de997449a27c9c8832d07 (diff)
downloadfreebsd-ports-gnome-a78cc0b449b64a8e0fe72b78ae532b3b2354b30a.tar.gz
freebsd-ports-gnome-a78cc0b449b64a8e0fe72b78ae532b3b2354b30a.tar.zst
freebsd-ports-gnome-a78cc0b449b64a8e0fe72b78ae532b3b2354b30a.zip
Convert to use new OPTIONS framework.
Diffstat (limited to 'mail')
-rw-r--r--mail/cyrus-imapd22/Makefile51
-rw-r--r--mail/cyrus-imapd23/Makefile72
-rw-r--r--mail/cyrus-imapd24/Makefile67
3 files changed, 96 insertions, 94 deletions
diff --git a/mail/cyrus-imapd22/Makefile b/mail/cyrus-imapd22/Makefile
index 056428e772e0..bb3662422e16 100644
--- a/mail/cyrus-imapd22/Makefile
+++ b/mail/cyrus-imapd22/Makefile
@@ -40,27 +40,30 @@ CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--with-openssl=${OPENSSLBASE} \
--with-perl=${PERL5}
-OPTIONS= DRAC "Enable DRAC support" off \
- IDLE_IDLED "Enable IMAP IDLE method idled" off \
- IDLE_POLL "Enable IMAP IDLE method idle-polling" on \
- LDAP_PTLOADER "Enable LDAP ptloader (experimantal)" off \
- LISTEXT "Enable IMAP List extensions" off \
- MURDER "Enable IMAP Murder support" off \
- NETSCAPEHACK "Enable X-NETSCAPE extensions" off \
- NNTP "Enable NNTP support" off \
- SNMP_5 "Enable SNMP support" off \
- PASS8BITHACK "Add pass8bit option (not recommended)" off
+OPTIONS_DEFINE= DRAC IDLE_IDLED IDLE_POLL LDAP_PTLOADER LISTEXT \
+ MURDER NETSCAPEHACK NNTP SNMP_5 PASS8BITHACK
+OPTIONS_DEFAULT= IDLE_POLL
+DRAC_DESC= Enable DRAC support
+IDLE_IDLED_DESC= Enable IMAP IDLE method idled
+IDLE_POLL_DESC= Enable IMAP IDLE method idle-polling
+LDAP_PTLOADER_DESC= Enable LDAP ptloader (experimantal)
+LISTEXT_DESC= Enable IMAP List extensions
+MURDER_DESC= Enable IMAP Murder support
+NETSCAPEHACK_DESC= Enable X-NETSCAPE extensions
+NNTP_DESC= Enable NNTP support
+SNMP_5_DESC= Enable SNMP support
+PASS8BITHACK_DESC= Add pass8bit option (not recommended)
.include <bsd.port.pre.mk>
-.if defined(WITH_NNTP)
+.if ${PORT_OPTIONS:MNNTP}
CONFIGURE_ARGS+=--enable-nntp
PLIST_SUB+= NNTP=""
.else
PLIST_SUB+= NNTP="@comment "
.endif
-.if defined(WITH_MURDER)
+.if ${PORT_OPTIONS:MMURDER}
CONFIGURE_ARGS+=--enable-murder
CFLAGS+= ${PTHREAD_CFLAGS}
MAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS}
@@ -69,31 +72,31 @@ PLIST_SUB+= MURDER=""
PLIST_SUB+= MURDER="@comment "
.endif
-.if defined(WITH_IDLE_IDLED) && defined(WITH_IDLE_POLL)
+.if ${PORT_OPTIONS:MIDLE_IDLED} && ${PORT_OPTIONS:MIDLE_POLL}
BROKEN= Multiple IDLE methods selected. Run 'make config' again!
.endif
-.if defined(WITH_IDLE_IDLED)
+.if ${PORT_OPTIONS:MIDLE_IDLED}
CONFIGURE_ARGS+=--with-idle=idled
PLIST_SUB+= IDLED=""
-.elif defined(WITH_IDLE_POLL)
+.elif ${PORT_OPTIONS:MIDLE_POLL}
CONFIGURE_ARGS+=--with-idle=poll
PLIST_SUB+= IDLED="@comment "
-.elif defined(WITHOUT_IDLE_IDLED) && defined(WITHOUT_IDLE_POLL)
+.elif !${PORT_OPTIONS:MIDLE_IDLED} && !${PORT_OPTIONS:MIDLE_POLL}
CONFIGURE_ARGS+=--with-idle=no
PLIST_SUB+= IDLED="@comment "
.else
PLIST_SUB+= IDLED="@comment "
.endif
-.if defined(WITH_LISTEXT)
+.if ${PORT_OPTIONS:MLISTEXT}
CONFIGURE_ARGS+=--enable-listext
.endif
-.if defined(WITH_NETSCAPEHACK)
+.if ${PORT_OPTIONS:MNETSCAPEHACK}
CONFIGURE_ARGS+=--enable-netscapehack
.endif
-.if defined(WITH_DRAC)
+.if ${PORT_OPTIONS:MDRAC}
#EXTRA_PATCHES+= ${WRKSRC}/contrib/drac_auth.patch
EXTRA_PATCHES+= ${FILESDIR}/drac_auth.patch
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cmulocal::berkdb.m4 \
@@ -104,14 +107,14 @@ CONFIGURE_ARGS+=--with-drac=${LOCALBASE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif
-.if defined(WITH_SNMP_5)
+.if ${PORT_OPTIONS:MSNMP_5}
LIB_DEPENDS+= netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-snmp=no
.endif
-.if defined(WITH_LDAP_PTLOADER)
+.if ${PORT_OPTIONS:MLDAP_PTLOADER}
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
PLIST_SUB+= LDAP_PTLOADER=""
@@ -119,7 +122,7 @@ PLIST_SUB+= LDAP_PTLOADER=""
PLIST_SUB+= LDAP_PTLOADER="@comment "
.endif
-.if defined(WITH_PASS8BITHACK)
+.if ${PORT_OPTIONS:MPASS8BITHACK}
EXTRA_PATCHES+= ${FILESDIR}/pass8bit.diff
.endif
@@ -173,7 +176,7 @@ post-patch:
@${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|g" \
-e "s|/usr/sieve|/var/imap/sieve|g" \
${WRKSRC}/tools/masssievec
-.if defined(WITH_DRAC)
+.if ${PORT_OPTIONS:MDRAC}
@${RM} -rf ${WRKSRC}/autom4te.cache
.endif
@@ -190,7 +193,7 @@ post-install:
@${ECHO_CMD} "@dirrm cyrus/man/man8" >>${TMPPLIST}
@${ECHO_CMD} "@dirrm cyrus/man" >>${TMPPLIST}
@${ECHO_CMD} "@dirrm cyrus" >>${TMPPLIST}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/man
@${MKDIR} ${DOCSDIR}/text
.for f in ${DOCS}
diff --git a/mail/cyrus-imapd23/Makefile b/mail/cyrus-imapd23/Makefile
index 2a15989bc4c4..abda88f32bd5 100644
--- a/mail/cyrus-imapd23/Makefile
+++ b/mail/cyrus-imapd23/Makefile
@@ -42,33 +42,35 @@ CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
MAKE_JOBS_UNSAFE= yes
-OPTIONS= AUTOCREATE "Use autocreate INBOX patch (UoA)" off \
- AUTOSIEVE "Use autosievefolder patch (UoA)" off \
- BDB "Use Berkeley DB" on \
- DRAC "Enable DRAC support" off \
- IDLED "Enable IMAP idled support" off \
- LDAP_PTLOADER "Enable LDAP ptloader" off \
- LISTEXT "Enable IMAP List extensions" off \
- MURDER "Enable IMAP Murder support" off \
- MYSQL "Use MySQL (experimental)" off \
- NETSCAPEHACK "Enable X-NETSCAPE extensions" off \
- NNTP "Enable NNTP support" off \
- PGSQL "Use PostgreSQL (experimental)" off \
- REPLICATION "Enable replication" off \
- SQLITE "Use SQLite (experimental)" off \
- SNMP_5 "Enable SNMP support" off
+OPTIONS_DEFINE= AUTOCREATE AUTOSIEVE BDB DRAC IDLED LDAP_PTLOADER \
+ LISTEXT MURDER MYSQL NETSCAPEHACK NNTP PGSQL \
+ REPLICATION SNMP_5 SQLITE
+OPTIONS_DEFAULT= BDB
+AUTOCREATE_DESC= Use autocreate INBOX patch (UoA)
+AUTOSIEVE_DESC= Use autosievefolder patch (UoA)
+DRAC_DESC= Enable DRAC support
+IDLED_DESC= Enable IMAP idled support
+LDAP_PTLOADER_DESC= Enable LDAP ptloader
+LISTEXT_DESC= Enable IMAP List extensions
+MURDER_DESC= Enable IMAP Murder support
+NETSCAPEHACK_DESC= Enable X-NETSCAPE extensions
+NNTP_DESC= Enable NNTP support
+PGSQL_DESC= Enable PostgreSQL backend (experimental)
+REPLICATION_DESC= Enable replication
+SNMP_5_DESC= Enable SNMP support
+SQLITE_DESC= Enable SQLite backend (experimental)
.include <bsd.port.pre.mk>
# Autocreate Inbox and Autosieve patches from UoA
# WWW: http://email.uoa.gr/projects/cyrus/
-.if defined(WITH_AUTOCREATE) || defined(WITH_AUTOSIEVE)
+.if ${PORT_OPTIONS:MAUTOCREATE} || ${PORT_OPTIONS:MAUTOSIEVE}
PATCH_DIST_STRIP= -p1
PATCH_SITES+= http://email.uoa.gr/download/cyrus/${PORTNAME}-2.3.16/
.endif
-.if defined(WITH_AUTOCREATE)
+.if ${PORT_OPTIONS:MAUTOCREATE}
AUTOCREATE_VERSION= 0.10-0
PATCHFILES+= ${PORTNAME}-2.3.16-autocreate-${AUTOCREATE_VERSION}.diff
PLIST_SUB+= AUTOCREATE=""
@@ -76,28 +78,28 @@ PLIST_SUB+= AUTOCREATE=""
PLIST_SUB+= AUTOCREATE="@comment "
.endif
-.if defined(WITH_AUTOSIEVE)
+.if ${PORT_OPTIONS:MAUTOSIEVE}
AUTOSIEVE_VERSION= 0.6.0
PATCHFILES+= ${PORTNAME}-2.3.16-autosieve-${AUTOSIEVE_VERSION}.diff
.endif
-.if defined(WITHOUT_BDB)
-BDB_LIB_NAME= no
-.else
+.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 defined(WITH_NNTP)
+.if ${PORT_OPTIONS:MNNTP}
CONFIGURE_ARGS+=--enable-nntp
PLIST_SUB+= NNTP=""
.else
PLIST_SUB+= NNTP="@comment "
.endif
-.if defined(WITH_MURDER)
+.if ${PORT_OPTIONS:MMURDER}
CONFIGURE_ARGS+=--enable-murder
CFLAGS+= ${PTHREAD_CFLAGS}
MAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS}
@@ -106,46 +108,46 @@ PLIST_SUB+= MURDER=""
PLIST_SUB+= MURDER="@comment "
.endif
-.if defined(WITH_IDLED)
+.if ${PORT_OPTIONS:MIDLED}
CONFIGURE_ARGS+=--enable-idled
PLIST_SUB+= IDLED=""
.else
PLIST_SUB+= IDLED="@comment "
.endif
-.if defined(WITH_MYSQL)
+.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 defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
.endif
-.if defined(WITH_SQLITE)
+.if ${PORT_OPTIONS:MSQLITE}
USE_SQLITE= yes
CONFIGURE_ARGS+=--with-sqlite=${LOCALBASE}
.endif
-.if defined(WITH_REPLICATION)
+.if ${PORT_OPTIONS:MREPLICATION}
CONFIGURE_ARGS+=--enable-replication
PLIST_SUB+= REPLICATION=""
.else
PLIST_SUB+= REPLICATION="@comment "
.endif
-.if defined(WITH_LISTEXT)
+.if ${PORT_OPTIONS:MLISTEXT}
CONFIGURE_ARGS+=--enable-listext
.endif
-.if defined(WITH_NETSCAPEHACK)
+.if ${PORT_OPTIONS:MNETSCAPEHACK}
CONFIGURE_ARGS+=--enable-netscapehack
.endif
-.if defined(WITH_DRAC)
+.if ${PORT_OPTIONS:MDRAC}
EXTRA_PATCHES+= ${WRKSRC}/contrib/drac_auth.patch
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-configure.in \
${FILESDIR}/extra-patch-cmulocal::ucdsnmp.m4
@@ -157,14 +159,14 @@ CONFIGURE_ARGS+=--with-drac=${LOCALBASE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif
-.if defined(WITH_SNMP_5)
+.if ${PORT_OPTIONS:MSNMP_5}
LIB_DEPENDS+= netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-snmp=no
.endif
-.if defined(WITH_LDAP_PTLOADER)
+.if ${PORT_OPTIONS:MLDAP_PTLOADER}
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
PLIST_SUB+= LDAP_PTLOADER=""
@@ -231,7 +233,7 @@ post-patch:
${WRKSRC}/tools/masssievec
@${REINPLACE_CMD} -e "s|-lpthread|\$$(PTHREAD_LIBS)|g" \
${WRKSRC}/imap/Makefile.in
-.if defined(WITH_DRAC)
+.if ${PORT_OPTIONS:MDRAC}
@${RM} -rf ${WRKSRC}/autom4te.cache
.endif
@@ -248,7 +250,7 @@ post-install:
@${ECHO_CMD} "@dirrm cyrus/man/man8" >>${TMPPLIST}
@${ECHO_CMD} "@dirrm cyrus/man" >>${TMPPLIST}
@${ECHO_CMD} "@dirrm cyrus" >>${TMPPLIST}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/man
@${MKDIR} ${DOCSDIR}/text
.for f in ${DOCS}
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile
index 06d465f2b5c1..de21eeb585b6 100644
--- a/mail/cyrus-imapd24/Makefile
+++ b/mail/cyrus-imapd24/Makefile
@@ -42,20 +42,18 @@ CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
MAKE_JOBS_UNSAFE= yes
-OPTIONS= AUTOCREATE "Use autocreate INBOX patch (UoA)" off \
- AUTOSIEVE "Use autosievefolder patch (UoA)" off \
- BDB "Use Berkeley DB" on \
- DRAC "Enable DRAC support" off \
- IDLED "Enable IMAP idled support" off \
- LDAP "Use LDAP (experimental)" off \
- MURDER "Enable IMAP Murder support" off \
- MYSQL "Use MySQL" off \
- NETSCAPEHACK "Enable X-NETSCAPE extensions" off \
- NNTP "Enable NNTP support" off \
- PGSQL "Use PostgreSQL" off \
- REPLICATION "Enable replication (experimental)" off \
- SNMP "Enable SNMP support" off \
- SQLITE "Use SQLite" off
+OPTIONS_DEFINE= AUTOCREATE AUTOSIEVE BDB DRAC IDLED LDAP MURDER MYSQL \
+ NETSCAPEHACK NNTP PGSQL REPLICATION SNMP SQLITE
+OPTIONS_DEFAULT= BDB
+AUTOCREATE_DESC= Use autocreate INBOX patch (UoA)
+AUTOSIEVE_DESC= Use autosievefolder patch (UoA)
+DRAC_DESC= Enable DRAC support
+IDLED_DESC= Enable IMAP idled support
+LDAP_DESC= Enable LDAP support (experimental)
+MURDER_DESC= Enable IMAP Murder support
+NETSCAPEHACK_DESC= Enable X-NETSCAPE extensions
+NNTP_DESC= Enable NNTP support
+REPLICATION_DESC= Enable replication (experimental)
.include <bsd.port.pre.mk>
@@ -63,40 +61,40 @@ OPTIONS= AUTOCREATE "Use autocreate INBOX patch (UoA)" off \
# http://email.uoa.gr/projects/cyrus/
# http://blog.vx.sk/archives/13-Cyrus-IMAP-UoA.html
-.if defined(WITH_AUTOCREATE) || defined(WITH_AUTOSIEVE)
+.if ${PORT_OPTIONS:MAUTOCREATE} || ${PORT_OPTIONS:MAUTOSIEVE}
PATCH_DIST_STRIP= -p1
PATCH_SITES+= ${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR= mm
.endif
-.if defined(WITH_AUTOCREATE)
+.if ${PORT_OPTIONS:MAUTOCREATE}
AUTOCREATE_VERSION= 0.10-0
PATCHFILES+= ${PORTNAME}-2.4.4-autocreate-${AUTOCREATE_VERSION}.patch
PLIST_FILES+= cyrus/bin/compile_sieve
.endif
-.if defined(WITH_AUTOSIEVE)
+.if ${PORT_OPTIONS:MAUTOSIEVE}
AUTOSIEVE_VERSION= 0.6.0
PATCHFILES+= ${PORTNAME}-2.4.12-autosieve-${AUTOSIEVE_VERSION}.patch
.endif
-.if defined(WITHOUT_BDB)
-BDB_LIB_NAME= no
-.else
+.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 defined(WITH_NNTP)
+.if ${PORT_OPTIONS:MNNTP}
CONFIGURE_ARGS+=--enable-nntp
PLIST_SUB+= NNTP=""
.else
PLIST_SUB+= NNTP="@comment "
.endif
-.if defined(WITH_MURDER)
+.if ${PORT_OPTIONS:MMURDER}
CONFIGURE_ARGS+=--enable-murder
CFLAGS+= ${PTHREAD_CFLAGS}
MAKE_ENV+= PTHREAD_LIBS=${PTHREAD_LIBS}
@@ -105,42 +103,42 @@ PLIST_SUB+= MURDER=""
PLIST_SUB+= MURDER="@comment "
.endif
-.if defined(WITH_IDLED)
+.if ${PORT_OPTIONS:MIDLED}
CONFIGURE_ARGS+=--enable-idled
PLIST_SUB+= IDLED=""
.else
PLIST_SUB+= IDLED="@comment "
.endif
-.if defined(WITH_MYSQL)
+.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 defined(WITH_PGSQL)
+.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
CONFIGURE_ARGS+=--with-pgsql=${LOCALBASE}
.endif
-.if defined(WITH_SQLITE)
+.if ${PORT_OPTIONS:MSQLITE}
USE_SQLITE= yes
CONFIGURE_ARGS+=--with-sqlite=${LOCALBASE}
.endif
-.if defined(WITH_REPLICATION)
+.if ${PORT_OPTIONS:MREPLICATION}
CONFIGURE_ARGS+=--enable-replication
PLIST_SUB+= REPLICATION=""
.else
PLIST_SUB+= REPLICATION="@comment "
.endif
-.if defined(WITH_NETSCAPEHACK)
+.if ${PORT_OPTIONS:MNETSCAPEHACK}
CONFIGURE_ARGS+=--enable-netscapehack
.endif
-.if defined(WITH_DRAC)
+.if ${PORT_OPTIONS:MDRAC}
.if ${OSVERSION} >= 800037
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-cmulocal::sasl2.m4
.endif
@@ -149,14 +147,14 @@ CONFIGURE_ARGS+=--with-drac=${LOCALBASE}
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
.endif
-.if defined(WITH_SNMP)
+.if ${PORT_OPTIONS:MSNMP}
LIB_DEPENDS+= netsnmp.30:${PORTSDIR}/net-mgmt/net-snmp
CONFIGURE_ARGS+=--with-snmp=${LOCALBASE}
.else
CONFIGURE_ARGS+=--with-snmp=no
.endif
-.if defined(WITH_LDAP)
+.if ${PORT_OPTIONS:MLDAP}
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE}
PLIST_SUB+= LDAP=""
@@ -204,14 +202,13 @@ CONFS= cmu-frontend.conf prefork.conf cmu-backend.conf normal.conf \
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
PKGINSTALL= ${WRKDIR}/pkg-install
-.if defined(WITH_DRAC)
+.if ${PORT_OPTIONS:MDRAC}
pre-patch:
${PATCH} -d ${PATCH_WRKSRC} --forward --quiet -E -p1 \
< ${WRKSRC}/contrib/drac_auth.patch
.endif
post-patch:
-
@${SED} -e "s|%%CYRUS_USER%%|${CYRUS_USER}|g" \
-e "s|%%PREFIX%%|${PREFIX}|g" \
-e "s|%%EXAMPLESDIR%%|${EXAMPLESDIR}|g" \
@@ -229,7 +226,7 @@ post-patch:
${WRKSRC}/tools/masssievec
@${REINPLACE_CMD} -e "s|-lpthread|\$$(PTHREAD_LIBS)|g" \
${WRKSRC}/imap/Makefile.in
-.if defined(WITH_DRAC)
+.if ${PORT_OPTIONS:MDRAC}
@${RM} -rf ${WRKSRC}/autom4te.cache
.endif
@@ -246,7 +243,7 @@ post-install:
@${ECHO_CMD} "@dirrm cyrus/man/man8" >>${TMPPLIST}
@${ECHO_CMD} "@dirrm cyrus/man" >>${TMPPLIST}
@${ECHO_CMD} "@dirrm cyrus" >>${TMPPLIST}
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}/man
@${MKDIR} ${DOCSDIR}/text
.for f in ${DOCS}