summaryrefslogtreecommitdiff
path: root/www/php4
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2004-10-31 17:43:02 +0000
committerjdolecek <jdolecek@pkgsrc.org>2004-10-31 17:43:02 +0000
commit1ba83c747dd668fd592e0ebf836d295b990d3c14 (patch)
treeb70358ce9cab86c8dad6db7f6e0f7be6a506ff20 /www/php4
parentf05ac696950a3f5a888374b237654133f7644b82 (diff)
downloadpkgsrc-1ba83c747dd668fd592e0ebf836d295b990d3c14.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/php4')
-rw-r--r--www/php4/Makefile.module11
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"