aboutsummaryrefslogtreecommitdiff
path: root/mail/exim-devel
diff options
context:
space:
mode:
authorSheldon Hearn <sheldonh@FreeBSD.org>2001-07-03 11:14:13 +0000
committerSheldon Hearn <sheldonh@FreeBSD.org>2001-07-03 11:14:13 +0000
commitbde8a588e50ff1777fd83870861b8d77f14c68ae (patch)
treeefa5360f5ae280186847cc54f827d6fa23d93942 /mail/exim-devel
parentedd6a0d0442f154a693c1b79c8d32a222812f8a4 (diff)
downloadports-bde8a588e50ff1777fd83870861b8d77f14c68ae.tar.gz
ports-bde8a588e50ff1777fd83870861b8d77f14c68ae.zip
Notes
Diffstat (limited to 'mail/exim-devel')
-rw-r--r--mail/exim-devel/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/mail/exim-devel/Makefile b/mail/exim-devel/Makefile
index 113f26fc1f78..647457df0bd3 100644
--- a/mail/exim-devel/Makefile
+++ b/mail/exim-devel/Makefile
@@ -39,9 +39,11 @@ MAKE_ENV+= OSTYPE=${OPSYS} ARCHTYPE=${MACHINE_ARCH}
# kernel. Exim's IPv6 support is still experimental.
#WITH_IPV6= yes
-# If WITH_LDAP is defined, LDAP_LIB_TYPE must be one of UMICHIGAN,
-# NETSCAPE or SOLARIS7.
-LDAP_LIB_TYPE=UMICHIGAN
+# If WITH_LDAP is defined, LDAP_LIB_TYPE must be either OPENLDAP1 or
+# OPENLDAP2. UMICHIGAN is an alias for OPENLDAP1. Exim also supports
+# NETSCAPE and SOLARIS7 lookup types, but no client libraries exist
+# for these in the ports tree.
+LDAP_LIB_TYPE?=OPENLDAP1
# The following options may be defined to turn off support for various
# features that this port enables by default.
@@ -93,7 +95,13 @@ SEDLIST+= -e 's,XX_TCP_WRAPPERS_LIBS_XX,,'
.endif
.if defined(WITH_LDAP)
+.if (${LDAP_LIB_TYPE} == OPENLDAP1) || (${LDAP_LIB_TYPE} == UMICHIGAN)
LIB_DEPENDS+= lber.1:${PORTSDIR}/net/openldap
+.elif ${LDAP_LIB_TYPE} == OPENLDAP2
+LIB_DEPENDS+= lber.2:${PORTSDIR}/net/openldap2
+.else
+.error LDAP_LIB_TYPE must be either OPENLDAP1 or OPENLDAP2
+.endif
SEDLIST+= -e 's,XX_LDAP_LIBS_XX,-L${PREFIX}/lib -llber -lldap,' \
-e 's,XX_LDAP_INCLUDE_XX,-I${PREFIX}/include,' \
-e 's,XX_LDAP_TYPE_XX,${LDAP_LIB_TYPE},' \