pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php5 add a USE_PHP_EXT_PATCHES, which makes it po...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/be2328e714eb
branches:  trunk
changeset: 482656:be2328e714eb
user:      jdolecek <jdolecek%pkgsrc.org@localhost>
date:      Sun Oct 31 21:14:23 2004 +0000

description:
add a USE_PHP_EXT_PATCHES, which makes it possible to have and apply only
extension-specific patches from php5/patches/

diffstat:

 lang/php5/Makefile.module |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r d150126b2416 -r be2328e714eb lang/php5/Makefile.module
--- a/lang/php5/Makefile.module Sun Oct 31 21:07:13 2004 +0000
+++ b/lang/php5/Makefile.module Sun Oct 31 21:14:23 2004 +0000
@@ -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 @@
        ${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"



Home | Main Index | Thread Index | Old Index