diff options
author | Oliver Eikemeier <eik@FreeBSD.org> | 2004-05-27 11:29:07 +0000 |
---|---|---|
committer | Oliver Eikemeier <eik@FreeBSD.org> | 2004-05-27 11:29:07 +0000 |
commit | a51cdd3ebe4bddda5405f0b61ee36bb1a0e4223e (patch) | |
tree | 5297af279790f9c51f70fea36aaeb2b80e336d22 /Mk/bsd.port.mk | |
parent | cd08d89cbd53553c5e47c27ba90c83a1d5ed1335 (diff) | |
download | ports-a51cdd3ebe4bddda5405f0b61ee36bb1a0e4223e.tar.gz ports-a51cdd3ebe4bddda5405f0b61ee36bb1a0e4223e.zip |
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 25 |
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 |