summaryrefslogtreecommitdiff
path: root/devel
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
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')
-rw-r--r--devel/apr/Makefile15
-rw-r--r--devel/apr/buildlink3.mk5
2 files changed, 16 insertions, 4 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"
diff --git a/devel/apr/buildlink3.mk b/devel/apr/buildlink3.mk
index 3c7809eb0f7..900e0a12349 100644
--- a/devel/apr/buildlink3.mk
+++ b/devel/apr/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.3 2004/07/14 08:31:12 adrianp Exp $
+# $NetBSD: buildlink3.mk,v 1.4 2004/07/16 23:21:50 xtraeme Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
APR_BUILDLINK3_MK:= ${APR_BUILDLINK3_MK}+
@@ -23,7 +23,10 @@ BUILDLINK_FILES.apr+= lib/*.exp
.if !empty(APR_USE_DB4:M[yY][eE][sS])
. include "../../databases/db4/buildlink3.mk"
+.elif !empty(APR_USE_OPENLDAP:M[Yy][Ee][Ss])
+. include "../../databases/openldap/buildlink3.mk"
.endif
+
.include "../../textproc/expat/buildlink3.mk"
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}