1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- update to USE_BDB

PR:		89023
Submitted by:	Scot W. Hetzel
This commit is contained in:
Dirk Meyer 2006-04-23 17:43:41 +00:00
parent 5f3199f9ee
commit a5f8dd1a08
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=160237

View File

@ -19,7 +19,6 @@ COMMENT= Secure and efficient mail gateway
NOT_FOR_ARCHS= ia64
PORTNAME2= smX
WRKSRC= ${WRKDIR}/${PORTNAME2}-${PORTVERSION}
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET=
CONFIGURE_ARGS+= --disable-dependency-tracking
@ -43,40 +42,34 @@ EXTRA_SBIN= libcheck/noroot libconf/tree libmta/statit \
# SMX_WITHOUT_SASL=yes
# SMX_WITH_PMILTER=yes
# SMX_WITH_INTERNAL_BERKELEYD=yes
# SMX_WITH_BERKELEYDB_VER=41
# SMX_WITH_BERKELEYDB_VER=42
# SMX_WITH_BERKELEYDB_VER=43
# SMX_WITH_BERKELEYDB=yes
# Set either WITH_BDB_VER or SMX_WITH_BDB_VER
# to the version of Berkely DB to use.
# default config:
SMXCONFDIR?= ${PREFIX}/etc/smx
.if defined(SMX_WITH_BERKELEYDB_VER)
SMX_WITH_BERKELEYDB= yes
OBSOLETE_BDB_VAR= SMX_WITH_BERKELEYDB_VER BERKELEYDB_PORT \
BERKELEYDB_LIB BERKELEYDB_LIBDIR BERKELEYDB_INCLUDE
IGNORE= Use SMX_WITH_BERKELEYDB to select Berkeley DB.
.endif
.if defined(SMX_WITH_INTERNAL_BERKELEYD)
BERKELEYDB_SUFFIX= -intbdb
PLIST_SUB+= WITH_BDBINT=""
.else
.if !defined(SMX_WITH_BERKELEYDB_VER)
SMX_WITH_BERKELEYDB_VER=43
.if !defined(SMX_WITH_BERKELEYDB)
SMX_WITH_BERKELEYDB=yes
WITH_BDB_VER= 43
.endif
.if ${SMX_WITH_BERKELEYDB_VER} == "41"
BERKELEYDB_PORT?= databases/db41
BERKELEYDB_LIB?= db41
BERKELEYDB_LIBDIR?= ${LOCALBASE}/lib
BERKELEYDB_INCLUDE?= ${LOCALBASE}/include/db41
.elif ${SMX_WITH_BERKELEYDB_VER} == "42"
BERKELEYDB_PORT?= databases/db42
BERKELEYDB_LIB?= db-4.2
BERKELEYDB_LIBDIR?= ${LOCALBASE}/lib/db42
BERKELEYDB_INCLUDE?= ${LOCALBASE}/include/db42
.elif ${SMX_WITH_BERKELEYDB_VER} == "43"
BERKELEYDB_PORT?= databases/db43
BERKELEYDB_LIB?= db-4.3
BERKELEYDB_LIBDIR?= ${LOCALBASE}/lib/db43
BERKELEYDB_INCLUDE?= ${LOCALBASE}/include/db43
.endif
LIB_DEPENDS+= ${BERKELEYDB_LIB}:${PORTSDIR}/${BERKELEYDB_PORT}
USE_BDB= 41+
IGNORE_WITH_BDB= 2 3 40
BERKELEYDB_SUFFIX= -${BDB_INCLUDE_DIR:S,^${LOCALBASE}/include/,,}
CONFIGURE_ARGS+= --disable-included-bdb
CONFIGURE_ARGS+= --with-bdb-incdir=${BERKELEYDB_INCLUDE}
CONFIGURE_ARGS+= --with-bdb-libdir=${BERKELEYDB_LIBDIR}
CONFIGURE_ARGS+= --with-bdb-incdir=${BDB_INCLUDE_DIR}
CONFIGURE_ARGS+= --with-bdb-libdir=${BDB_LIB_DIR}
PLIST_SUB+= WITH_BDBINT="@comment "
.endif