aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorclement <clement@FreeBSD.org>2004-04-16 22:07:16 +0800
committerclement <clement@FreeBSD.org>2004-04-16 22:07:16 +0800
commit7cf4f661b34d9b607f057955cf89b3687e645985 (patch)
tree5b08879a2b8a92f34297c95b70c0f41d5d1ba276 /www
parent0e6220ef575f4ce535e92d7c13b9bd317ad28a93 (diff)
downloadfreebsd-ports-gnome-7cf4f661b34d9b607f057955cf89b3687e645985.tar.gz
freebsd-ports-gnome-7cf4f661b34d9b607f057955cf89b3687e645985.tar.zst
freebsd-ports-gnome-7cf4f661b34d9b607f057955cf89b3687e645985.zip
Add AP_EXTRA to support extra arguments to apxs during build.
AP_INC and AP_LIB were added. Reminded by: mod_vdbh port
Diffstat (limited to 'www')
-rw-r--r--www/apache2/Makefile.modules.3rd9
-rw-r--r--www/apache20/Makefile.modules.3rd9
2 files changed, 16 insertions, 2 deletions
diff --git a/www/apache2/Makefile.modules.3rd b/www/apache2/Makefile.modules.3rd
index c2c5c982557d..1367a8e8db5b 100644
--- a/www/apache2/Makefile.modules.3rd
+++ b/www/apache2/Makefile.modules.3rd
@@ -72,6 +72,13 @@ PLIST_SUB+= AP_MODULE="${MODULENAME}.so"
PLIST?= ${WRKDIR}/ap-plist
.endif
+.if defined(AP_INC)
+AP_EXTRAS+= -I ${AP_INC}
+.endif
+.if defined(AP_LIB)
+AP_EXTRAS+= -L ${AP_LIB}
+.endif
+
.if defined(AP_FAST_BUILD)
ap-gen-plist:
@@ -84,7 +91,7 @@ ap-gen-plist:
@${DO_NADA}
.endif
do-build: ap-gen-plist
- @cd ${WRKSRC} && ${APXS} -c -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
+ @cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
do-install:
@${APXS} -i -a -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT}
diff --git a/www/apache20/Makefile.modules.3rd b/www/apache20/Makefile.modules.3rd
index c2c5c982557d..1367a8e8db5b 100644
--- a/www/apache20/Makefile.modules.3rd
+++ b/www/apache20/Makefile.modules.3rd
@@ -72,6 +72,13 @@ PLIST_SUB+= AP_MODULE="${MODULENAME}.so"
PLIST?= ${WRKDIR}/ap-plist
.endif
+.if defined(AP_INC)
+AP_EXTRAS+= -I ${AP_INC}
+.endif
+.if defined(AP_LIB)
+AP_EXTRAS+= -L ${AP_LIB}
+.endif
+
.if defined(AP_FAST_BUILD)
ap-gen-plist:
@@ -84,7 +91,7 @@ ap-gen-plist:
@${DO_NADA}
.endif
do-build: ap-gen-plist
- @cd ${WRKSRC} && ${APXS} -c -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
+ @cd ${WRKSRC} && ${APXS} -c ${AP_EXTRAS} -o ${MODULENAME}.${AP_BUILDEXT} ${SRC_FILE}
do-install:
@${APXS} -i -a -n ${SHORTMODNAME} ${WRKSRC}/${MODULENAME}.${AP_BUILDEXT}