diff options
author | Clement Laforet <clement@FreeBSD.org> | 2004-04-16 14:07:16 +0000 |
---|---|---|
committer | Clement Laforet <clement@FreeBSD.org> | 2004-04-16 14:07:16 +0000 |
commit | 291e472f16b6d1bdca4c5155532a92e21068152d (patch) | |
tree | e7439cce9af92a7aa01722304023d0ad144e794a /www | |
parent | - Utilize Makefile.modules.3rd (diff) |
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.3rd | 9 | ||||
-rw-r--r-- | www/apache20/Makefile.modules.3rd | 9 |
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} |