summaryrefslogtreecommitdiff
path: root/lang/php5
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2004-10-31 21:14:23 +0000
committerjdolecek <jdolecek>2004-10-31 21:14:23 +0000
commit856ec42792e2c6c7632698556587098f18097df1 (patch)
tree8646b8b1f97cc3efed92d50d51840b465f8fe32c /lang/php5
parentfca4a2bcd6d97cf82eb70c2cc4fdb27ec8c4d969 (diff)
downloadpkgsrc-856ec42792e2c6c7632698556587098f18097df1.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"