diff options
author | joerg <joerg@pkgsrc.org> | 2010-02-20 14:58:44 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-02-20 14:58:44 +0000 |
commit | f44a82ffc69adc19dd585fb18edcb8be0bcf7aef (patch) | |
tree | 6e0424dcd7356d3f000cc298d0c68ca14ee350cc /www/apache | |
parent | e2f0cf964aa5e9bc915b03a1c6df6d29e763f0ee (diff) | |
download | pkgsrc-f44a82ffc69adc19dd585fb18edcb8be0bcf7aef.tar.gz |
DESTDIR support for various Apache modules.
Diffstat (limited to 'www/apache')
-rw-r--r-- | www/apache/module.mk | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/www/apache/module.mk b/www/apache/module.mk index a944b5a7b5a..c8e38281b8b 100644 --- a/www/apache/module.mk +++ b/www/apache/module.mk @@ -1,4 +1,4 @@ -# $NetBSD: module.mk,v 1.12 2007/09/19 17:31:46 rillig Exp $ +# $NetBSD: module.mk,v 1.13 2010/02/20 14:58:46 joerg Exp $ # # This Makefile fragment is intended to be included by packages that build # and install apache modules. @@ -29,6 +29,7 @@ APACHE_MODULE= yes APACHE_MODULE_SRCDIR?= ${WRKSRC} APACHE_MODULE_SRC?= *.c +APACHE_MODULE_DESTDIR= ${DESTDIR}${PREFIX}/lib/httpd .PHONY: apache-module-build apache-module-build: @@ -40,9 +41,21 @@ apache-module-build: do-build: apache-module-build +.if !defined(PKG_APACHE) || ${PKG_APACHE} == "apache13" .PHONY: apache-module-install apache-module-install: - ${RUN} cd ${APACHE_MODULE_SRCDIR} && ${APXS} -i ${APACHE_MODULE_NAME} + ${INSTALL_LIB_DIR} ${APACHE_MODULE_DESTDIR} + ${INSTALL_LIB} ${APACHE_MODULE_SRCDIR}/${APACHE_MODULE_NAME} \ + ${APACHE_MODULE_DESTDIR} +.else +.PHONY: apache-module-install +apache-module-install: + ${INSTALL_LIB_DIR} ${APACHE_MODULE_DESTDIR} + ${PREFIX}/share/httpd/build/instdso.sh \ + SH_LIBTOOL=${PREFIX}/share/httpd/build/libtool \ + ${APACHE_MODULE_SRCDIR}/${APACHE_MODULE_NAME} \ + ${APACHE_MODULE_DESTDIR} +.endif do-install: apache-module-install |