summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorjdolecek <jdolecek@pkgsrc.org>2004-10-31 21:14:23 +0000
committerjdolecek <jdolecek@pkgsrc.org>2004-10-31 21:14:23 +0000
commit8505cc30ede9d27904a073fcc129706e8fafae6d (patch)
tree8646b8b1f97cc3efed92d50d51840b465f8fe32c /lang/php5
parent36d25eff74a45b672d957cd601b1005b257eab75 (diff)
downloadpkgsrc-8505cc30ede9d27904a073fcc129706e8fafae6d.tar.gz
add a USE_PHP_EXT_PATCHES, which makes it possible to have and apply only
extension-specific patches from php5/patches/
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/Makefile.module11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/php5/Makefile.module b/lang/php5/Makefile.module
index 7ac8973a47a..c39b905b3f9 100644
--- a/lang/php5/Makefile.module
+++ b/lang/php5/Makefile.module
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.module,v 1.2 2004/10/30 05:46:21 grant Exp $
+# $NetBSD: Makefile.module,v 1.3 2004/10/31 21:14:23 jdolecek Exp $
.include "../../lang/php5/Makefile.common"
@@ -53,4 +53,13 @@ do-module-install:
${INSTALL_DATA} ${MODULESDIR}/${PKGMODNAME}.so \
${PREFIX}/${PHP_EXTENSION_DIR}
+.if defined(USE_PHP_EXT_PATCHES)
+PATCHDIR= ${PKGDIR}/../../lang/php5/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 "../../lang/php5/buildlink3.mk"