diff options
author | jdolecek <jdolecek@pkgsrc.org> | 2004-10-31 21:14:23 +0000 |
---|---|---|
committer | jdolecek <jdolecek@pkgsrc.org> | 2004-10-31 21:14:23 +0000 |
commit | 6d7b6f5161ff162057266a12f965f9c6d9acc02e (patch) | |
tree | 8646b8b1f97cc3efed92d50d51840b465f8fe32c /lang/php5 | |
parent | 49e9ef7f781dc0f511e367dcdf4f2798c1b025ed (diff) | |
download | pkgsrc-6d7b6f5161ff162057266a12f965f9c6d9acc02e.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.module | 11 |
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" |