aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gtk20
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2010-06-14 16:14:54 +0800
committerkwm <kwm@FreeBSD.org>2010-06-14 16:14:54 +0800
commit50cd4201c39e270b46c2fc58471d4e43c53bda7a (patch)
tree12cd76ff26b858dc4dd62133b2c9945e3fc10717 /x11-toolkits/gtk20
parent5195b9f359ea858e5697fd257b40ae555c902c0b (diff)
downloadfreebsd-ports-gnome-50cd4201c39e270b46c2fc58471d4e43c53bda7a.tar.gz
freebsd-ports-gnome-50cd4201c39e270b46c2fc58471d4e43c53bda7a.tar.zst
freebsd-ports-gnome-50cd4201c39e270b46c2fc58471d4e43c53bda7a.zip
Fix the build on powerpc64.
Due to a flaw in binutils 2.15, function names can conflict with ELF assembler directives on PPC64 systems. As a result, it is not possible to have functions named things like 'text' and 'data', one of which GTK 2.0 has. PR: ports/147699 Submitted by: nwhitehorn@
Diffstat (limited to 'x11-toolkits/gtk20')
-rw-r--r--x11-toolkits/gtk20/Makefile4
-rw-r--r--x11-toolkits/gtk20/files/extra-arch-powerpc6420
2 files changed, 24 insertions, 0 deletions
diff --git a/x11-toolkits/gtk20/Makefile b/x11-toolkits/gtk20/Makefile
index 1452bde9220c..e38f8935ca4c 100644
--- a/x11-toolkits/gtk20/Makefile
+++ b/x11-toolkits/gtk20/Makefile
@@ -63,6 +63,10 @@ CONFIGURE_ARGS+= --enable-debug=yes
.include <bsd.port.pre.mk>
+.if ${ARCH} == powerpc64
+EXTRA_PATCHES= ${.CURDIR}/files/extra-arch-powerpc64
+.endif
+
.if (defined(WITH_CUPS) || exists(${LOCALBASE}/lib/libcups.so)) && \
!defined(WITHOUT_CUPS)
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client
diff --git a/x11-toolkits/gtk20/files/extra-arch-powerpc64 b/x11-toolkits/gtk20/files/extra-arch-powerpc64
new file mode 100644
index 000000000000..2a2c4aa06540
--- /dev/null
+++ b/x11-toolkits/gtk20/files/extra-arch-powerpc64
@@ -0,0 +1,20 @@
+--- gtk/gtkbuilderparser.c.dist 2010-06-08 14:11:06.000000000 -0500
++++ gtk/gtkbuilderparser.c 2010-06-08 14:11:33.000000000 -0500
+@@ -1051,7 +1051,7 @@
+ /* Called for character data */
+ /* text is not nul-terminated */
+ static void
+-text (GMarkupParseContext *context,
++XXXtext (GMarkupParseContext *context,
+ const gchar *text,
+ gsize text_len,
+ gpointer user_data,
+@@ -1106,7 +1106,7 @@
+ static const GMarkupParser parser = {
+ start_element,
+ end_element,
+- text,
++ XXXtext,
+ NULL,
+ NULL
+ };