diff options
author | grant <grant> | 2003-11-21 07:04:43 +0000 |
---|---|---|
committer | grant <grant> | 2003-11-21 07:04:43 +0000 |
commit | c5046da84b2cec4081ca9c14a4c3a061dad59d07 (patch) | |
tree | 19813dce06993be99188c105d47e280e8e4a897f | |
parent | acb70a0986db64bdd58984c05c2253c46fb58ba0 (diff) | |
download | pkgsrc-c5046da84b2cec4081ca9c14a4c3a061dad59d07.tar.gz |
apache6 has no buildlink2.mk as it is handled automagically by
apache/buildlink2.mk, so include that instead.
makes this actually work with apache6.
-rw-r--r-- | mk/apache.mk | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/apache.mk b/mk/apache.mk index 70d53643f24..c1de7348fed 100644 --- a/mk/apache.mk +++ b/mk/apache.mk @@ -1,4 +1,4 @@ -# $NetBSD: apache.mk,v 1.2 2003/10/19 07:46:50 grant Exp $ +# $NetBSD: apache.mk,v 1.3 2003/11/21 07:04:43 grant Exp $ # # This Makefile fragment handles Apache dependencies and make variables, # and is meant to be included by packages that require Apache either at @@ -117,10 +117,13 @@ BUILDLINK_DEPENDS.apache6?= apache6* _APACHE_PKGSRCDIR= ../../www/apache .elif ${_PKG_APACHE} == "apache2" _APACHE_PKGSRCDIR= ../../www/apache2 +_APACHE_BL_SRCDIR= ${_APACHE_PKGSRCDIR} .elif ${_PKG_APACHE} == "apache6" _APACHE_PKGSRCDIR= ../../www/apache6 .endif +_APACHE_BL_SRCDIR?= ../../www/apache + _APACHE_DEPENDENCY?= ${BUILDLINK_DEPENDS.${_PKG_APACHE}:${_APACHE_PKGSRCDIR} # Add a runtime dependency on the apache server. @@ -128,7 +131,7 @@ _APACHE_DEPENDENCY?= ${BUILDLINK_DEPENDS.${_PKG_APACHE}:${_APACHE_PKGSRCDIR} # what the apache buildlink2.mk file does. .if defined(_APACHE_PKGSRCDIR) . if defined(USE_BUILDLINK2) && empty(USE_BUILDLINK2:M[nN][oO]) -. include "${_APACHE_PKGSRCDIR}/buildlink2.mk" +. include "${_APACHE_BL_SRCDIR}/buildlink2.mk" . else DEPENDS+= ${_APACHE_DEPENDENCY} . endif @@ -138,7 +141,7 @@ DEPENDS+= ${_APACHE_DEPENDENCY} # dependency on apr, and the apache sources? .if defined(USE_BUILDLINK2) && empty(USE_BUILDLINK2:M[nN][oO]) . if defined(_APACHE_PKGSRCDIR) -. include "${_APACHE_PKGSRCDIR}/buildlink2.mk" +. include "${_APACHE_BL_SRCDIR}/buildlink2.mk" . endif .else BUILD_DEPENDS+= ${_APACHE_DEPENDENCY} |