pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc We don't need to check for APR_USE_* or generate our o...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c394f700163d
branches:  trunk
changeset: 484014:c394f700163d
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Nov 23 00:37:04 2004 +0000

description:
We don't need to check for APR_USE_* or generate our own _APR_OPTIONS
variable since the apr/buildlink3.mk file does the right thing for us
already; we simply need to include it and check the value of
PKG_OPTIONS.apr.

diffstat:

 devel/subversion-base/Makefile |  22 ++++++++--------------
 devel/subversion/buildlink3.mk |   8 ++------
 www/apache2/Makefile           |  20 +++++++-------------
 3 files changed, 17 insertions(+), 33 deletions(-)

diffs (123 lines):

diff -r 5802fbe1dd16 -r c394f700163d devel/subversion-base/Makefile
--- a/devel/subversion-base/Makefile    Tue Nov 23 00:35:02 2004 +0000
+++ b/devel/subversion-base/Makefile    Tue Nov 23 00:37:04 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2004/11/19 04:01:59 epg Exp $
+# $NetBSD: Makefile,v 1.21 2004/11/23 00:37:04 jlam Exp $
 
 PKGNAME=       subversion-base-${SVNVER}
 COMMENT=       Version control system, base programs and libraries
@@ -7,13 +7,16 @@
 
 .include "../subversion/Makefile.common"
 
-BUILD_DEFS+=           APR_USE_DB4
-
 CONFIGURE_ARGS+=       --without-apache
 CONFIGURE_ARGS+=       --without-apxs
 
-.include "../../mk/bsd.prefs.mk"
-.if !empty(APR_USE_DB4:M[yY][eE][sS])
+BUILDLINK_DEPENDS.apr+=                apr>=0.9.5
+BUILDLINK_DEPENDS.neon+=       neon>=0.24.7
+
+.include "../../devel/apr/buildlink3.mk"
+.include "../../www/neon/buildlink3.mk"
+
+.if !empty(PKG_OPTIONS.apr:Mdb4)
 PLIST_SRC=             ${PKGDIR}/PLIST ${PKGDIR}/PLIST.bdb
 .else
 CONFIGURE_ARGS+=       --without-berkeley-db
@@ -51,13 +54,4 @@
        ${INSTALL_DATA} ${WRKSRC}/tools/hook-scripts/svnperms* \
                ${SVNEXAMPLES}/hook-scripts
 
-BUILDLINK_DEPENDS.apr+=                apr>=0.9.5
-BUILDLINK_DEPENDS.neon+=       neon>=0.24.7
-
-.if !empty(APR_USE_DB4:M[yY][eE][sS])
-.  include "../../databases/db4/buildlink3.mk"
-.endif
-
-.include "../../devel/apr/buildlink3.mk"
-.include "../../www/neon/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 5802fbe1dd16 -r c394f700163d devel/subversion/buildlink3.mk
--- a/devel/subversion/buildlink3.mk    Tue Nov 23 00:35:02 2004 +0000
+++ b/devel/subversion/buildlink3.mk    Tue Nov 23 00:37:04 2004 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: buildlink3.mk,v 1.8 2004/10/03 00:13:33 tv Exp $
+# $NetBSD: buildlink3.mk,v 1.9 2004/11/23 00:37:04 jlam Exp $
 
 BUILDLINK_DEPTH:=              ${BUILDLINK_DEPTH}+
 SUBVERSION_BASE_BUILDLINK3_MK:=        ${SUBVERSION_BASE_BUILDLINK3_MK}+
 
+.include "../../mk/bsd.prefs.mk"
 .include "../../devel/subversion/Makefile.version"
 
 .if !empty(BUILDLINK_DEPTH:M+)
@@ -20,11 +21,6 @@
 BUILDLINK_FILES.subversion-base+=      bin/svn-config
 .endif # SUBVERSION_BASE_BUILDLINK3_MK
 
-.include "../../mk/bsd.prefs.mk"
-.if !empty(APR_USE_DB4:M[yY][eE][sS])
-.  include "../../databases/db4/buildlink3.mk"
-.endif
-
 .include "../../devel/apr/buildlink3.mk"
 .include "../../www/neon/buildlink3.mk"
 
diff -r 5802fbe1dd16 -r c394f700163d www/apache2/Makefile
--- a/www/apache2/Makefile      Tue Nov 23 00:35:02 2004 +0000
+++ b/www/apache2/Makefile      Tue Nov 23 00:37:04 2004 +0000
@@ -1,4 +1,6 @@
-# $NetBSD: Makefile,v 1.55 2004/11/22 22:52:53 jlam Exp $
+# $NetBSD: Makefile,v 1.56 2004/11/23 00:37:04 jlam Exp $
+
+.include "Makefile.common"
 
 PKGNAME=               apache-${APACHE_VERSION}
 PKGREVISION=           2
@@ -27,6 +29,9 @@
 CONFIGURE_ARGS+=       --with-apr-util=${BUILDLINK_PREFIX.apr}
 
 .include "../../mk/bsd.prefs.mk"
+.include "../../devel/apr/buildlink3.mk"
+.include "../../lang/perl5/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
 
 # Set the "Multi-Processing Model" used by Apache to handle requests.
 # Valid values are:
@@ -42,11 +47,7 @@
 DFLT_APACHE_MODULES+=  ssl
 
 # LDAP support
-.if !defined(_APR_OPTIONS)
-_APR_OPTIONS!= cd ../../devel/apr && ${MAKE} show-var VARNAME=PKG_OPTIONS
-MAKEFLAGS+=    _APR_OPTIONS=${_APR_OPTIONS:Q}
-.endif
-.if !empty(_APR_OPTIONS:Mldap)
+.if !empty(PKG_OPTIONS.apr:Mldap)
 DFLT_APACHE_MODULES+=  ldap auth_ldap
 .endif
 
@@ -116,7 +117,6 @@
 #
 _AP_DEPENDS.ssl=       ../../security/openssl/buildlink3.mk
 _AP_DEPENDS.deflate=   ../../devel/zlib/buildlink3.mk
-_AP_DEPENDS.ldap=      ../../databases/openldap/buildlink3.mk
 
 _AP_CFG_ARGS.ssl=      --with-ssl=${BUILDLINK_PREFIX.openssl}
 _AP_CFG_ARGS.deflate=  --with-z=${BUILDLINK_PREFIX.zlib}
@@ -175,10 +175,4 @@
                ${CHMOD} ${BINMODE} ${PREFIX}/sbin/$$file; \
        done
 
-.include "Makefile.common"
-
-.include "../../devel/apr/buildlink3.mk"
-.include "../../lang/perl5/buildlink3.mk"
-.include "../../textproc/expat/buildlink3.mk"
-
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index