diff options
author | jdolecek <jdolecek> | 2004-10-31 17:43:02 +0000 |
---|---|---|
committer | jdolecek <jdolecek> | 2004-10-31 17:43:02 +0000 |
commit | 889246ef07e3a4bb423c722235b3c9644a6a9188 (patch) | |
tree | b70358ce9cab86c8dad6db7f6e0f7be6a506ff20 /www | |
parent | d6207a4fd722892b2d73df96822eac9e77ebb69c (diff) | |
download | pkgsrc-889246ef07e3a4bb423c722235b3c9644a6a9188.tar.gz |
add a USE_PHP_EXT_PATCHES, which makes it possible to have and apply only
extension-specific patches from php4/patches/
Diffstat (limited to 'www')
-rw-r--r-- | www/php4/Makefile.module | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/www/php4/Makefile.module b/www/php4/Makefile.module index b1743d0db08..66cda682187 100644 --- a/www/php4/Makefile.module +++ b/www/php4/Makefile.module @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.module,v 1.27 2004/09/04 23:40:44 wiz Exp $ +# $NetBSD: Makefile.module,v 1.28 2004/10/31 17:43:02 jdolecek Exp $ # # This Makefile is provided to ease creating PHP4 packages for the extension # modules distributed in the PHP4 sources. @@ -60,4 +60,13 @@ do-module-install: ${INSTALL_DATA} ${MODULESDIR}/${PKGMODNAME}.so \ ${PREFIX}/${PHP_EXTENSION_DIR} +.if defined(USE_PHP_EXT_PATCHES) +PATCHDIR= ${PKGDIR}/../../www/php4/patches +do-patch: + cd ${WRKSRC}; \ + for p in `${EGREP} -l '^\+\+\+ ext/${MODNAME}/' ${PATCHDIR}/patch-*`;do\ + ${SED} -e 's,^+++ ext/${MODNAME}/,+++ ,' $$p | ${PATCH}; \ + done +.endif + .include "../../www/php4/buildlink3.mk" |