summaryrefslogtreecommitdiff
path: root/devel/glib2/hacks.mk
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2008-07-14 16:45:53 +0000
committertron <tron@pkgsrc.org>2008-07-14 16:45:53 +0000
commit07116c7a1200cf5edadc756f9ef78edc626b9952 (patch)
treeeca0126397c7343cc0af9a3714c9f9f4883472c0 /devel/glib2/hacks.mk
parent9540b3f29ea3be9754c26f675fac01f13965eb1f (diff)
downloadpkgsrc-07116c7a1200cf5edadc756f9ef78edc626b9952.tar.gz
Don't build this with Universal Binary support under Mac OS X. It breaks
(at least) the GTK+ 2.x which is a known issue, see http://trac.macports.org/ticket/15816 for more details. Bump package revision because of this fix.
Diffstat (limited to 'devel/glib2/hacks.mk')
-rw-r--r--devel/glib2/hacks.mk29
1 files changed, 14 insertions, 15 deletions
diff --git a/devel/glib2/hacks.mk b/devel/glib2/hacks.mk
index 7d24b59d9b8..6589d54d78d 100644
--- a/devel/glib2/hacks.mk
+++ b/devel/glib2/hacks.mk
@@ -1,20 +1,19 @@
-# $NetBSD: hacks.mk,v 1.2 2008/04/27 11:00:46 tnn Exp $
+# $NetBSD: hacks.mk,v 1.3 2008/07/14 16:45:53 tron Exp $
.if !defined(GLIB2_HACKS_MK)
-GLIB2_HACKS_MK= defined
+GLIB2_HACKS_MK= # defined
-# Build without optimization. Avoids crash in libgobject on gtk2 initialization.
-# Bug is triggered regardless of whether we're using gcc or aCC.
-.if !empty(MACHINE_PLATFORM:MHPUX-*-hppa)
-PKG_HACKS+= hppa-codegen
-CFLAGS:= -O0 ${CFLAGS:C/[+,-]O[0-9]?//g}
-.endif
+# "glib2" supports support for Universal Binaries. But a lot of packages
+# using it (e.g. "gtk2+") don't support it. We therefore disable it.
-# Work around unresolved symbol g_test_config_vars during build
-.include "../../mk/compiler.mk"
-.if !empty(PKGSRC_COMPILER:Msunpro)
-PKG_HACKS+= sunpro-visibility
-CONFIGURE_ARGS+= --disable-visibility
-.endif
+. include "../../mk/bsd.fast.prefs.mk"
+. if ${OPSYS} == "Darwin"
+PKG_HACKS+= darwin-no-universal
+. if ${MACHINE_ARCH} == "powerpc"
+CONFIGURE_ENV+= ac_cv_c_bigendian=yes
+. else
+CONFIGURE_ENV+= ac_cv_c_bigendian=no
+. endif
+. endif
-.endif # GLIB2_HACKS_MK
+.endif