diff options
Diffstat (limited to 'lang')
-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" |