pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/x11/gtk2 Kludge to work around hardcoded 'grep -o' GNU...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5620080cffbd
branches:  trunk
changeset: 399850:5620080cffbd
user:      sketch <sketch%pkgsrc.org@localhost>
date:      Mon Oct 05 06:28:11 2009 +0000

description:
Kludge to work around hardcoded 'grep -o' GNUism.

diffstat:

 x11/gtk2/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 51f95ee8e2bb -r 5620080cffbd x11/gtk2/Makefile
--- a/x11/gtk2/Makefile Mon Oct 05 04:28:46 2009 +0000
+++ b/x11/gtk2/Makefile Mon Oct 05 06:28:11 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.186 2009/09/09 11:16:57 wiz Exp $
+# $NetBSD: Makefile,v 1.187 2009/10/05 06:28:11 sketch Exp $
 
 DISTNAME=              gtk+-2.16.6
 PKGNAME=               ${DISTNAME:S/gtk/gtk2/}
@@ -48,6 +48,13 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+# gtk/Makefile.am hardcodes 'grep -o' so require GNU grep on platforms
+# which do not have it.
+.if ${OPSYS} == "SunOS"
+DEPENDS+=              grep:../../textproc/grep
+TOOLS_PLATFORM.grep=   ${LOCALBASE}/bin/${GNU_PROGRAM_PREFIX}grep
+.endif
+
 CPPFLAGS+=             -DPREFIX="\"${PREFIX}\""
 
 SUBST_CLASSES+=                pthread



Home | Main Index | Thread Index | Old Index