aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/cyrus-imapd23/Makefile16
-rw-r--r--mail/cyrus-imapd24/Makefile16
2 files changed, 22 insertions, 10 deletions
diff --git a/mail/cyrus-imapd23/Makefile b/mail/cyrus-imapd23/Makefile
index e7b0aa20d77f..8d6758d305cd 100644
--- a/mail/cyrus-imapd23/Makefile
+++ b/mail/cyrus-imapd23/Makefile
@@ -27,22 +27,19 @@ LATEST_LINK= ${PORTNAME}23
USE_RC_SUBR= imapd.sh
USE_OPENSSL= yes
USE_PERL5= yes
-USE_BDB= yes
-INVALID_BDB_VER=2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--with-cyrus-prefix=${PREFIX}/cyrus \
--with-cyrus-user=${CYRUS_USER} \
--with-cyrus-group=${CYRUS_GROUP} \
--with-sasl=${LOCALBASE} \
- --with-bdb-incdir=${BDB_INCLUDE_DIR} \
- --with-bdb-libdir=${LOCALBASE}/lib \
--with-bdb=${BDB_LIB_NAME} \
--with-com_err \
--with-openssl=${OPENSSLBASE} \
--with-perl=${PERL5}
-OPTIONS= DRAC "Enable DRAC support" off \
+OPTIONS= 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 \
@@ -55,6 +52,15 @@ OPTIONS= DRAC "Enable DRAC support" off \
.include <bsd.port.pre.mk>
+.if defined(WITHOUT_BDB)
+BDB_LIB_NAME= no
+.else
+USE_BDB= yes
+INVALID_BDB_VER=2
+CONFIGURE_ARGS+=--with-bdb-incdir=${BDB_INCLUDE_DIR} \
+ --with-bdb-libdir=${LOCALBASE}/lib
+.endif
+
.if defined(WITH_NNTP)
CONFIGURE_ARGS+=--enable-nntp
PLIST_SUB+= NNTP=""
diff --git a/mail/cyrus-imapd24/Makefile b/mail/cyrus-imapd24/Makefile
index e7b0aa20d77f..8d6758d305cd 100644
--- a/mail/cyrus-imapd24/Makefile
+++ b/mail/cyrus-imapd24/Makefile
@@ -27,22 +27,19 @@ LATEST_LINK= ${PORTNAME}23
USE_RC_SUBR= imapd.sh
USE_OPENSSL= yes
USE_PERL5= yes
-USE_BDB= yes
-INVALID_BDB_VER=2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc \
--with-cyrus-prefix=${PREFIX}/cyrus \
--with-cyrus-user=${CYRUS_USER} \
--with-cyrus-group=${CYRUS_GROUP} \
--with-sasl=${LOCALBASE} \
- --with-bdb-incdir=${BDB_INCLUDE_DIR} \
- --with-bdb-libdir=${LOCALBASE}/lib \
--with-bdb=${BDB_LIB_NAME} \
--with-com_err \
--with-openssl=${OPENSSLBASE} \
--with-perl=${PERL5}
-OPTIONS= DRAC "Enable DRAC support" off \
+OPTIONS= 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 \
@@ -55,6 +52,15 @@ OPTIONS= DRAC "Enable DRAC support" off \
.include <bsd.port.pre.mk>
+.if defined(WITHOUT_BDB)
+BDB_LIB_NAME= no
+.else
+USE_BDB= yes
+INVALID_BDB_VER=2
+CONFIGURE_ARGS+=--with-bdb-incdir=${BDB_INCLUDE_DIR} \
+ --with-bdb-libdir=${LOCALBASE}/lib
+.endif
+
.if defined(WITH_NNTP)
CONFIGURE_ARGS+=--enable-nntp
PLIST_SUB+= NNTP=""