summaryrefslogtreecommitdiff
path: root/devel/apr/Makefile
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-07-16 23:21:50 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-07-16 23:21:50 +0000
commit1e0c42a29911fbd0bb54e39ef9839d0b86ab42e8 (patch)
tree6aeb0b2b13eaa7bbfab0f42461b312b7c7c152d3 /devel/apr/Makefile
parent0047f0c0b45bf60eeef2490fe0e6a0c66e2f5e14 (diff)
downloadpkgsrc-1e0c42a29911fbd0bb54e39ef9839d0b86ab42e8.tar.gz
Enable OpenLDAP support in devel/apr, by default it's disabled.
If you want to use it, "APR_USE_OPENLDAP" should be set to [Yy][Ee][Ss]. This closes PR pkg/25356.
Diffstat (limited to 'devel/apr/Makefile')
-rw-r--r--devel/apr/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/devel/apr/Makefile b/devel/apr/Makefile
index 897f847c117..bcd0d0103a5 100644
--- a/devel/apr/Makefile
+++ b/devel/apr/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2004/03/22 19:50:16 reed Exp $
+# $NetBSD: Makefile,v 1.18 2004/07/16 23:21:50 xtraeme Exp $
PKGNAME= apr-${APR_VERSION}.${APACHE_VERSION}
CATEGORIES= devel
@@ -39,7 +39,10 @@ APU_CONFIGURE_ARGS= \
--without-gdbm
.include "../../mk/bsd.prefs.mk"
-.if ${APR_USE_DB4} == "YES"
+
+BUILD_DEFS+= APR_USE_OPENLDAP
+
+.if !empty(APR_USE_DB4:M[Yy][Ee][Ss])
APU_CONFIGURE_ARGS+=\
--with-berkeley-db=${BUILDLINK_PREFIX.db4}/include:${LOCALBASE}
.else
@@ -58,9 +61,15 @@ post-install:
.include "../../www/apache2/Makefile.common"
-.if ${APR_USE_DB4} == "YES"
+.if !empty(APR_USE_DB4:M[Yy][Ee][Ss)
.include "../../databases/db4/buildlink3.mk"
.endif
+# Enable OpenLDAP support
+.if !empty(APR_USE_OPENLDAP:M[Yy][Ee][Ss])
+APU_CONFIGURE_ARGS+= --with-ldap
+.include "../../databases/openldap/buildlink3.mk"
+.endif
+
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"