summaryrefslogtreecommitdiff
path: root/x11/gtk2
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-05-16 08:10:41 +0000
committergrant <grant@pkgsrc.org>2004-05-16 08:10:41 +0000
commit22effe9820b936f527d3eb4dafc4eff0a6e75018 (patch)
tree974fa39a248fdf04d241b0e60f2e7df8f65173b3 /x11/gtk2
parent17f3308690264c8c4329d53120e768a486fea54f (diff)
downloadpkgsrc-22effe9820b936f527d3eb4dafc4eff0a6e75018.tar.gz
turn on strict ISO C compliance when building with SunPro as workaround a
gnome bug.
Diffstat (limited to 'x11/gtk2')
-rw-r--r--x11/gtk2/Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/x11/gtk2/Makefile b/x11/gtk2/Makefile
index 0cd270bc73c..028bebfc5f2 100644
--- a/x11/gtk2/Makefile
+++ b/x11/gtk2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.51 2004/05/07 01:14:51 xtraeme Exp $
+# $NetBSD: Makefile,v 1.52 2004/05/16 08:10:41 grant Exp $
#
DISTNAME= gtk+-2.4.1
@@ -45,6 +45,17 @@ PRINT_PLIST_AWK+= /^@dirrm share\/themes\/Default$$/ \
{ print "@unexec $${RMDIR} %D/" $$2 \
" 2>/dev/null || $${TRUE}"; next; }
+.include "../../mk/compiler.mk"
+
+# work around /**/ in a macro definition in X11/Xlibint.h (GetEmptyReq)
+# being expanded to a space, causing breakage in gdk/x11/gdkasync.c.
+#
+# turning on strict ISO C compliance uses a different macro definition
+# which uses ## instead and does what it should.
+.if !empty(CC_VERSION:MSun)
+CPPFLAGS+= -Xc
+.endif
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/gtk-2.0/engines
${INSTALL_DATA_DIR} ${PREFIX}/lib/gtk-2.0/modules