summaryrefslogtreecommitdiff
path: root/x11/gtk2
diff options
context:
space:
mode:
authorgrant <grant>2004-05-16 08:10:41 +0000
committergrant <grant>2004-05-16 08:10:41 +0000
commitee38a13950c52a0d03bfe0824d0192d230b46b20 (patch)
tree974fa39a248fdf04d241b0e60f2e7df8f65173b3 /x11/gtk2
parent3700a173d674c1750b819494e385a6f01448e265 (diff)
downloadpkgsrc-ee38a13950c52a0d03bfe0824d0192d230b46b20.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