summaryrefslogtreecommitdiff
path: root/x11/gtk2
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2009-10-05 06:28:11 +0000
committersketch <sketch@pkgsrc.org>2009-10-05 06:28:11 +0000
commiteaed30b96567286857baaf224ddf3899c15f1868 (patch)
tree7bf5996aa58b4c1611f02e6bdcf8d9d024b2a2bc /x11/gtk2
parenta7530f1b83b14ca90a7f105a5f61b9428ff3821e (diff)
downloadpkgsrc-eaed30b96567286857baaf224ddf3899c15f1868.tar.gz
Kludge to work around hardcoded 'grep -o' GNUism.
Diffstat (limited to 'x11/gtk2')
-rw-r--r--x11/gtk2/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/x11/gtk2/Makefile b/x11/gtk2/Makefile
index 5e026a5bb8e..d9a94d0102e 100644
--- a/x11/gtk2/Makefile
+++ b/x11/gtk2/Makefile
@@ -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 @@ BUILD_DIRS= . demos/gtk-demo
.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