summaryrefslogtreecommitdiffstats
path: root/net/openldap2
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2000-11-08 07:48:20 +0000
committerknu <knu@FreeBSD.org>2000-11-08 07:48:20 +0000
commit319f0ee61b40d66fb83cfdf1a71aae756c132e07 (patch)
tree988584ac45cfa95f171df89ac35aa7aa24176dc4 /net/openldap2
parent89afca25fac9c0c986ab1472a1bcea143dae7f97 (diff)
downloadFreeBSD-ports-319f0ee61b40d66fb83cfdf1a71aae756c132e07.zip
FreeBSD-ports-319f0ee61b40d66fb83cfdf1a71aae756c132e07.tar.gz
Add a WITH_SASL knob that causes OpenLDAP 2 to be compiled with
support for SASL. Submitted by: nectar
Diffstat (limited to 'net/openldap2')
-rw-r--r--net/openldap2/Makefile17
1 files changed, 13 insertions, 4 deletions
diff --git a/net/openldap2/Makefile b/net/openldap2/Makefile
index fc61300..984b1a7 100644
--- a/net/openldap2/Makefile
+++ b/net/openldap2/Makefile
@@ -38,15 +38,24 @@ CONFIGURE_ARGS= --localstatedir=/var/run \
CONFIGURE_ARGS+= --enable-wrappers
.endif
-.if defined(WITH_DB2)
-BUILD_DEPENDS= ${LOCALBASE}/lib/libdb2.a:${PORTSDIR}/databases/db/
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include/db2 -D_THREAD_SAFE" \
- LDFLAGS="-L${LOCALBASE}/lib"
+.if defined(WITH_DB2)
+BUILD_DEPENDS= ${LOCALBASE}/lib/libdb2.a:${PORTSDIR}/databases/db
+CPPFLAGS+= -I${LOCALBASE}/include/db2 -D_THREAD_SAFE
CONFIGURE_ARGS+= --enable-ldbm \
--with-ldbm-api=db2
.endif
+.if defined(WITH_SASL)
+LIB_DEPENDS= sasl.8:${PORTSDIR}/security/cyrus-sasl
+CPPFLAGS+= -I${LOCALBASE}/include/sasl
+.endif
+
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+
BINS= bin/ldapadd \
bin/ldapdelete \
bin/ldapmodify \
OpenPOWER on IntegriCloud