From 643e6833ff01845e8d9596b7fb937246b125e213 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Thu, 9 Aug 2007 14:54:16 +0000 Subject: Add an option to not use Berkeley DB. PR: ports/101383 Submitted by: Sean Farley --- mail/cyrus-imapd23/Makefile | 16 +++++++++++----- mail/cyrus-imapd24/Makefile | 16 +++++++++++----- 2 files changed, 22 insertions(+), 10 deletions(-) (limited to 'mail') 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 +.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 +.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="" -- cgit v1.2.3