aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2007-07-22 18:48:42 +0800
committerclement <clement@FreeBSD.org>2007-07-22 18:48:42 +0800
commita61f3889d5204417e1db57971d8dbeca6cd8cd7d (patch)
tree5a29ccce1c7574e642eee0471c4c207d6ccb0ddf /Mk
parente7626f30d5012647ba963a580147986d95f31e47 (diff)
downloadfreebsd-ports-gnome-a61f3889d5204417e1db57971d8dbeca6cd8cd7d.tar.gz
freebsd-ports-gnome-a61f3889d5204417e1db57971d8dbeca6cd8cd7d.tar.zst
freebsd-ports-gnome-a61f3889d5204417e1db57971d8dbeca6cd8cd7d.zip
- fix long standing bugs
* fix pre/post includes * fix local port overiding for apache > 2.1 * Add a short notr about USE_APACHE=yes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.apache.mk20
1 files changed, 15 insertions, 5 deletions
diff --git a/Mk/bsd.apache.mk b/Mk/bsd.apache.mk
index 5198e3b0c890..c48a33569359 100644
--- a/Mk/bsd.apache.mk
+++ b/Mk/bsd.apache.mk
@@ -15,8 +15,15 @@
# <version>: 1.3/13/2.0/20/2.1/2.2/1.3+/2.0+/2.1+/2.2+
# common*: common13, common20, common21 and common22
#
+# Note: Setting USE_APACHE to "yes" is deprecated. It will set
+# APACHE_PORT to www/apache13 and if WITH_APACHE2 (deprecated too)
+# is defined, APACHE_PORT will be set to www/apache20
#
-#
+
+.if !defined(_POSTMKINCLUDED) && !defined(Apache_Pre_Include)
+
+Apache_Pre_Include= bsd.apache.mk
+
.if defined(APACHE_COMPAT)
USE_APACHE=yes
.endif
@@ -303,13 +310,13 @@ AP_BUILDEXT= la
APACHEMODDIR= libexec/apache2
APACHEINCLUDEDIR=include/apache2
APACHEETCDIR= etc/apache2
-APACHE_PORT= www/apache${APACHE_VERSION}
+APACHE_PORT?= www/apache${APACHE_VERSION}
.elif ${APACHE_VERSION} >= 21
AP_BUILDEXT= la
APACHEMODDIR= libexec/apache${APACHE_VERSION}
APACHEINCLUDEDIR=include/apache${APACHE_VERSION}
APACHEETCDIR= etc/apache${APACHE_VERSION}
-APACHE_PORT= www/apache${APACHE_VERSION}
+APACHE_PORT?= www/apache${APACHE_VERSION}
.else
AP_BUILDEXT= so
APACHEMODDIR= libexec/apache
@@ -346,6 +353,10 @@ AP_EXTRAS+= -L ${AP_LIB}
.endif
+.endif #!defined(_POSTMKINCLUDED) && !defined(Apache_Pre_Include)
+.if defined(_POSTMKINCLUDED) && !defined(Apache_Post_Include)
+Apache_Post_Include= bsd.apache.mk
+
.if defined(AP_PORT_IS_SERVER)
.if !target(print-closest-mirrors)
print-closest-mirrors:
@@ -412,7 +423,6 @@ do-build: ap-gen-plist
do-install:
@${APXS} -i -A -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT}
.endif
-
.endif
-
.endif
+.endif # defined(_POSTMKINCLUDED) && !defined(Apache_Post_Include)