summaryrefslogtreecommitdiffstats
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authoreik <eik@FreeBSD.org>2004-05-27 11:29:07 +0000
committereik <eik@FreeBSD.org>2004-05-27 11:29:07 +0000
commit97689dfc528dc49732f3763d58efd44392298f03 (patch)
tree68525fc4d6794158b13dc54fa027cf9f1800f80b /Mk/bsd.port.mk
parent61625c2d812fe7342856ceb1f026d3ecd4c1975b (diff)
downloadFreeBSD-ports-97689dfc528dc49732f3763d58efd44392298f03.zip
FreeBSD-ports-97689dfc528dc49732f3763d58efd44392298f03.tar.gz
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/bsd.port.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 66fd41c..306f08b 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
OpenPOWER on IntegriCloud