summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorsketch <sketch>2009-10-05 06:28:11 +0000
committersketch <sketch>2009-10-05 06:28:11 +0000
commitc4c6e9acd3e1488992158fc5fe70e5d84a6831b2 (patch)
tree7bf5996aa58b4c1611f02e6bdcf8d9d024b2a2bc /x11
parent4381c0b9ffc46622a21747e695b2a758be9f45ae (diff)
downloadpkgsrc-c4c6e9acd3e1488992158fc5fe70e5d84a6831b2.tar.gz
Kludge to work around hardcoded 'grep -o' GNUism.
Diffstat (limited to 'x11')
-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