aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2012-06-21 22:26:33 +0800
committergahr <gahr@FreeBSD.org>2012-06-21 22:26:33 +0800
commit130e1d6231147baff179e5f2a1751bfef3b57e05 (patch)
tree777179a55cd3acf1a7dc2d76e28926b47b3aaddd /x11-toolkits
parent2a80420882806e50699229adb320618b865f6ced (diff)
downloadfreebsd-ports-gnome-130e1d6231147baff179e5f2a1751bfef3b57e05.tar.gz
freebsd-ports-gnome-130e1d6231147baff179e5f2a1751bfef3b57e05.tar.zst
freebsd-ports-gnome-130e1d6231147baff179e5f2a1751bfef3b57e05.zip
- Unbreak on i386
Thanks to: tabthorpe@ for the i386 build env
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/fox17/Makefile4
-rw-r--r--x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp11
2 files changed, 10 insertions, 5 deletions
diff --git a/x11-toolkits/fox17/Makefile b/x11-toolkits/fox17/Makefile
index 388daf1740aa..ce65219ed975 100644
--- a/x11-toolkits/fox17/Makefile
+++ b/x11-toolkits/fox17/Makefile
@@ -46,10 +46,6 @@ MAN1= reswrap.1 shutterbug.1 adie.1 PathFinder.1 calculator.1 \
.include <bsd.port.pre.mk>
-.if ${ARCH} == i386
-BROKEN= does not build
-.endif
-
.if defined(WITHOUT_JPEG)
CONFIGURE_ARGS+=--disable-jpeg
.else
diff --git a/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp b/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
index 9fd0773b7ec3..93b7dda399bf 100644
--- a/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
+++ b/x11-toolkits/fox17/files/patch-lib_FXAtomic.cpp
@@ -1,5 +1,5 @@
--- lib/FXAtomic.cpp.orig 2012-04-27 18:46:09.000000000 +0200
-+++ lib/FXAtomic.cpp 2012-06-20 10:39:15.000000000 +0200
++++ lib/FXAtomic.cpp 2012-06-21 15:22:43.000000000 +0200
@@ -298,7 +298,7 @@
LONGLONG duet[2]={(LONGLONG)a,(LONGLONG)b};
return (_InterlockedCompareExchange128((LONGLONG volatile*)ptr,(LONGLONG)cmpb,(LONGLONG)cmpa,duet));
@@ -9,3 +9,12 @@
register FXbool ret;
__asm__ __volatile__ ("xchgl %%esi, %%ebx\n\t"
"lock\n\t"
+@@ -308,7 +308,7 @@
+ "xchgl %%esi, %%ebx\n\t" : "=a"(ret) : "D"(ptr), "a"(cmpa), "d"(cmpb), "S"(a), "c"(b) : "memory", "cc");
+ return ret;
+ #else
+- register TBool ret;
++ register FXbool ret;
+ __asm__ __volatile__ ("lock\n\t"
+ "cmpxchg8b (%1)\n\t"
+ "setz %%al\n\t"