Add an option to not use Berkeley DB.

PR:		ports/101383
Submitted by:	Sean Farley <sean-freebsd__at__farley.org>
This commit is contained in:
Hajimu UMEMOTO 2007-08-09 14:54:16 +00:00
parent 21dc83b349
commit 643e6833ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197384
2 changed files with 22 additions and 10 deletions

View file

@ -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=""

View file

@ -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=""