aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-05-27 19:29:07 +0800
committereik <eik@FreeBSD.org>2004-05-27 19:29:07 +0800
commit97689dfc528dc49732f3763d58efd44392298f03 (patch)
tree68525fc4d6794158b13dc54fa027cf9f1800f80b /Mk
parent61625c2d812fe7342856ceb1f026d3ecd4c1975b (diff)
downloadfreebsd-ports-gnome-97689dfc528dc49732f3763d58efd44392298f03.tar.gz
freebsd-ports-gnome-97689dfc528dc49732f3763d58efd44392298f03.tar.zst
freebsd-ports-gnome-97689dfc528dc49732f3763d58efd44392298f03.zip
Update net/openldap22-* to 2.2.11 and follow the OpenLDAP soname change:
<http://www.openldap.org/lists/openldap-devel/200403/msg00101.html> While I'm not totally happy with their choice, I believe it is better to be in sync with the upstream library naming scheme. No objection from: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk25
1 files changed, 16 insertions, 9 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 66fd41c5f2c6..306f08b63e9a 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -273,10 +273,12 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# Default: not set.
##
#
-# USE_OPENLDAP - Says that the port uses the OpenLDAP libraries
-# Implies: WANT_OPENLDAP_VER?=21
-# WANT_OPENLDAP_VER - Legal values are: 20, 21, and 22
-# If set to an unkown value, the port is marked BROKEN.
+# USE_OPENLDAP - Says that the port uses the OpenLDAP libraries
+# Implies: WANT_OPENLDAP_VER?=21
+# WANT_OPENLDAP_VER - Legal values are: 21, 22
+# If set to an unkown value, the port is marked BROKEN.
+# WANT_OPENLDAP_SASL - Says that the system should use OpenLDAP libraries
+# with SASL support.
#
##
# USE_AUTOTOOLS - Says that the port uses various GNU autotools
@@ -1329,12 +1331,17 @@ WANT_OPENLDAP_VER= ${USE_OPENLDAP_VER}
.endif
.if defined(USE_OPENLDAP)
-.if !empty(WANT_OPENLDAP_VER:M2[0-9]) && \
- exists(${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client/Makefile)
-OPENLDAP_LIB_VER= ${WANT_OPENLDAP_VER:C/^2[0-1]$/2/:C/^2([2-9])$/20\1/}
-LIB_DEPENDS+= ldap.${OPENLDAP_LIB_VER}:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client
+.if defined(WANT_OPENLDAP_SASL)
+_OPENLDAP_FLAVOUR= -sasl
.else
-BROKEN= "unknown OpenLDAP version: ${WANT_OPENLDAP_VER}"
+_OPENLDAP_FLAVOUR=
+.endif
+.if ${WANT_OPENLDAP_VER} == 22
+LIB_DEPENDS+= ldap-2.2.7:${PORTSDIR}/net/openldap22${_OPENLDAP_FLAVOUR}-client
+.elif ${WANT_OPENLDAP_VER} == 21
+LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap21${_OPENLDAP_FLAVOUR}-client
+.else
+BROKEN= "unknown OpenLDAP version: ${WANT_OPENLDAP_VER}"
.endif
.endif