aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2006-04-23 17:43:41 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2006-04-23 17:43:41 +0000
commita5f8dd1a08dcd51a90e04bd0eaaafaf962fdf8c8 (patch)
tree2d295e269b89fa27003c94ed3874713bc4826a75 /mail
parent5f3199f9eed957600a2883192f4b4d2402ad8a1f (diff)
downloadports-a5f8dd1a08dcd51a90e04bd0eaaafaf962fdf8c8.tar.gz
ports-a5f8dd1a08dcd51a90e04bd0eaaafaf962fdf8c8.zip
Notes
Diffstat (limited to 'mail')
-rw-r--r--mail/smx/Makefile43
1 files changed, 18 insertions, 25 deletions
diff --git a/mail/smx/Makefile b/mail/smx/Makefile
index 76a1a7c8e0e4..f6ad42054b0c 100644
--- a/mail/smx/Makefile
+++ b/mail/smx/Makefile
@@ -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
-.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
+.if !defined(SMX_WITH_BERKELEYDB)
+SMX_WITH_BERKELEYDB=yes
+WITH_BDB_VER= 43
.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