aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorbeat <beat@FreeBSD.org>2009-08-19 09:58:38 +0800
committerbeat <beat@FreeBSD.org>2009-08-19 09:58:38 +0800
commit2cd6a73ced55d973cd972cddc681ea1690b225f5 (patch)
tree0d11850ac9bee7af7d6b260617cad41c022eae3f /www
parent9a0064e2dda22c45a0dfd143365a286e9d18c38c (diff)
downloadfreebsd-ports-gnome-2cd6a73ced55d973cd972cddc681ea1690b225f5.tar.gz
freebsd-ports-gnome-2cd6a73ced55d973cd972cddc681ea1690b225f5.tar.zst
freebsd-ports-gnome-2cd6a73ced55d973cd972cddc681ea1690b225f5.zip
- Fix build on powerpc and sparc64
Submitted by: Andreas Tobler <andreast-list AT fgznet.ch>
Diffstat (limited to 'www')
-rw-r--r--www/firefox3/Makefile4
-rw-r--r--www/firefox3/files/patch-security-coreconf-FreeBSD.mk18
-rw-r--r--www/firefox35/Makefile4
-rw-r--r--www/firefox35/files/patch-content-xslt-public-txDouble.h11
-rw-r--r--www/firefox35/files/patch-js-src-configure13
-rw-r--r--www/firefox35/files/patch-security-coreconf-FreeBSD.mk18
6 files changed, 50 insertions, 18 deletions
diff --git a/www/firefox3/Makefile b/www/firefox3/Makefile
index 6f34e4a34aa8..ca08d854be2d 100644
--- a/www/firefox3/Makefile
+++ b/www/firefox3/Makefile
@@ -59,10 +59,6 @@ OPTIONS= DBUS "Enable D-BUS support" on \
.include <bsd.port.pre.mk>
-.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64: invokes i386 assembler
-.endif
-
GECKO_PTHREAD_LIBS!=${CC} -dumpspecs | ${GREP} -m 1 '%{\!pg: %{pthread:' | ${SED} -e 's|^.*%{\!pg: %{pthread:|| ; s|}.*$$||' || ${TRUE}
.if ${HAVE_GNOME:Mlibgnomeui}!=""
diff --git a/www/firefox3/files/patch-security-coreconf-FreeBSD.mk b/www/firefox3/files/patch-security-coreconf-FreeBSD.mk
index c4ed8e5ba533..f82f5f02b9ff 100644
--- a/www/firefox3/files/patch-security-coreconf-FreeBSD.mk
+++ b/www/firefox3/files/patch-security-coreconf-FreeBSD.mk
@@ -1,19 +1,27 @@
---- security/coreconf/FreeBSD.mk.orig 2008-07-06 00:10:00.000000000 -0500
-+++ security/coreconf/FreeBSD.mk 2008-07-06 00:12:34.000000000 -0500
-@@ -45,8 +45,12 @@
+--- security/coreconf/FreeBSD.mk.orig 2009-07-30 17:30:28.000000000 +0200
++++ security/coreconf/FreeBSD.mk 2009-08-17 22:29:03.510890513 +0200
+@@ -45,8 +45,20 @@
ifeq ($(OS_TEST),alpha)
CPU_ARCH = alpha
else
+ifeq ($(OS_TEST),amd64)
+CPU_ARCH = amd64
+else
++ifeq ($(OS_TEST),powerpc)
++CPU_ARCH = powerpc
++else
++ifeq ($(OS_TEST),sparc64)
++CPU_ARCH = sparc64
++else
CPU_ARCH = x86
endif
+endif
++endif
++endif
OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-@@ -73,7 +77,7 @@
+@@ -73,7 +85,7 @@
DLL_SUFFIX = so.1.0
endif
@@ -22,7 +30,7 @@
ifdef MAPFILE
MKSHLIB += -Wl,--version-script,$(MAPFILE)
endif
-@@ -82,4 +86,4 @@
+@@ -82,4 +94,4 @@
G++INCLUDES = -I/usr/include/g++
diff --git a/www/firefox35/Makefile b/www/firefox35/Makefile
index a70c1e31ad28..bed829bb6d06 100644
--- a/www/firefox35/Makefile
+++ b/www/firefox35/Makefile
@@ -59,10 +59,6 @@ OPTIONS= DBUS "Enable D-BUS support" on \
.include <bsd.port.pre.mk>
-.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64
-.endif
-
.if ${OSVERSION} < 700000
LIB_DEPENDS+= pulse.0:${PORTSDIR}/audio/pulseaudio
EXTRA_PATCHES= ${FILESDIR}/releng6_pulseaudio
diff --git a/www/firefox35/files/patch-content-xslt-public-txDouble.h b/www/firefox35/files/patch-content-xslt-public-txDouble.h
new file mode 100644
index 000000000000..959fef17233a
--- /dev/null
+++ b/www/firefox35/files/patch-content-xslt-public-txDouble.h
@@ -0,0 +1,11 @@
+--- content/xslt/public/txDouble.h.orig 2009-08-16 21:46:27.000000000 +0200
++++ content/xslt/public/txDouble.h 2009-08-16 21:49:53.000000000 +0200
+@@ -43,7 +43,7 @@
+ //A trick to handle IEEE floating point exceptions on FreeBSD - E.D.
+ #ifdef __FreeBSD__
+ #include <ieeefp.h>
+-#ifdef __alpha__
++#if defined (__alpha__) || defined (__powerpc__) || defined (__sparc__)
+ static fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP;
+ #else
+ static fp_except_t allmask = FP_X_INV|FP_X_OFL|FP_X_UFL|FP_X_DZ|FP_X_IMP|FP_X_DNML;
diff --git a/www/firefox35/files/patch-js-src-configure b/www/firefox35/files/patch-js-src-configure
new file mode 100644
index 000000000000..175d8ac6a4c3
--- /dev/null
+++ b/www/firefox35/files/patch-js-src-configure
@@ -0,0 +1,13 @@
+--- js/src/configure.orig 2009-06-23 23:44:34.000000000 +0200
++++ js/src/configure 2009-06-23 23:44:46.000000000 +0200
+@@ -6916,10 +6916,6 @@
+ ENABLE_JIT=1
+ NANOJIT_ARCH=ARM
+ ;;
+-sparc*-*)
+- ENABLE_JIT=1
+- NANOJIT_ARCH=Sparc
+- ;;
+ esac
+
+ # Check whether --enable-jit or --disable-jit was given.
diff --git a/www/firefox35/files/patch-security-coreconf-FreeBSD.mk b/www/firefox35/files/patch-security-coreconf-FreeBSD.mk
index c4ed8e5ba533..f82f5f02b9ff 100644
--- a/www/firefox35/files/patch-security-coreconf-FreeBSD.mk
+++ b/www/firefox35/files/patch-security-coreconf-FreeBSD.mk
@@ -1,19 +1,27 @@
---- security/coreconf/FreeBSD.mk.orig 2008-07-06 00:10:00.000000000 -0500
-+++ security/coreconf/FreeBSD.mk 2008-07-06 00:12:34.000000000 -0500
-@@ -45,8 +45,12 @@
+--- security/coreconf/FreeBSD.mk.orig 2009-07-30 17:30:28.000000000 +0200
++++ security/coreconf/FreeBSD.mk 2009-08-17 22:29:03.510890513 +0200
+@@ -45,8 +45,20 @@
ifeq ($(OS_TEST),alpha)
CPU_ARCH = alpha
else
+ifeq ($(OS_TEST),amd64)
+CPU_ARCH = amd64
+else
++ifeq ($(OS_TEST),powerpc)
++CPU_ARCH = powerpc
++else
++ifeq ($(OS_TEST),sparc64)
++CPU_ARCH = sparc64
++else
CPU_ARCH = x86
endif
+endif
++endif
++endif
OS_CFLAGS = $(DSO_CFLAGS) -ansi -Wall -Wno-switch -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK
-@@ -73,7 +77,7 @@
+@@ -73,7 +85,7 @@
DLL_SUFFIX = so.1.0
endif
@@ -22,7 +30,7 @@
ifdef MAPFILE
MKSHLIB += -Wl,--version-script,$(MAPFILE)
endif
-@@ -82,4 +86,4 @@
+@@ -82,4 +94,4 @@
G++INCLUDES = -I/usr/include/g++