pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/php4 add a USE_PHP_EXT_PATCHES, which makes it pos...
details: https://anonhg.NetBSD.org/pkgsrc/rev/14cbb77527fd
branches: trunk
changeset: 482650:14cbb77527fd
user: jdolecek <jdolecek%pkgsrc.org@localhost>
date: Sun Oct 31 17:43:02 2004 +0000
description:
add a USE_PHP_EXT_PATCHES, which makes it possible to have and apply only
extension-specific patches from php4/patches/
diffstat:
www/php4/Makefile.module | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 65e3d4896fde -r 14cbb77527fd www/php4/Makefile.module
--- a/www/php4/Makefile.module Sun Oct 31 16:23:21 2004 +0000
+++ b/www/php4/Makefile.module Sun Oct 31 17:43:02 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.module,v 1.27 2004/09/04 23:40:44 wiz Exp $
+# $NetBSD: Makefile.module,v 1.28 2004/10/31 17:43:02 jdolecek Exp $
#
# This Makefile is provided to ease creating PHP4 packages for the extension
# modules distributed in the PHP4 sources.
@@ -60,4 +60,13 @@
${INSTALL_DATA} ${MODULESDIR}/${PKGMODNAME}.so \
${PREFIX}/${PHP_EXTENSION_DIR}
+.if defined(USE_PHP_EXT_PATCHES)
+PATCHDIR= ${PKGDIR}/../../www/php4/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 "../../www/php4/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index