diff options
Diffstat (limited to 'package/firefox')
8 files changed, 57 insertions, 38 deletions
diff --git a/package/firefox/Makefile b/package/firefox/Makefile index a0d6e9eaa..2d37ef8ac 100644 --- a/package/firefox/Makefile +++ b/package/firefox/Makefile @@ -4,9 +4,9 @@ include $(TOPDIR)/rules.mk PKG_NAME:= firefox -PKG_VERSION:= 4.0 +PKG_VERSION:= 5.0.1 PKG_RELEASE:= 1 -PKG_MD5SUM:= 3468a2c463b4fc2788ba621e4b511c30 +PKG_MD5SUM:= 6d1f43e402cec84459a3d7f950bd5192 PKG_DESCR:= graphical webbrowser PKG_SECTION:= x11/apps PKG_DEPENDS:= libpthread alsa-lib dbus-glib glib libgtk libpng libtiff @@ -19,25 +19,18 @@ PKG_SITES:= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PKG_ PKG_NOPARALLEL:= 1 PKG_NEED_CXX:= 1 -PKG_ARCH_DEPENDS:= x86 x86_64 mips64 mips64el native +PKG_ARCH_DEPENDS:= x86 x86_64 mips native PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.source.tar.bz2 -WRKDIST= ${WRKDIR}/mozilla-2.0 +WRKDIST= ${WRKDIR}/mozilla-release include $(TOPDIR)/mk/package.mk $(eval $(call PKG_template,FIREFOX,firefox,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) -ifeq (${ADK_TARGET_SYSTEM_LEMOTE_YEELONG},y) -CONFIGURE_ARGS+= --disable-ipc -else ifeq (${ADK_TARGET_LIB_UCLIBC},y) -CONFIGURE_ARGS+= --disable-ipc -else -CONFIGURE_ARGS+= --enable-ipc -endif - -TARGET_LDFLAGS+= -L$(STAGING_TARGET_DIR)/lib -L$(STAGING_TARGET_DIR)/usr/lib +# disable honour cflags stuff +XAKE_FLAGS+= GCC_HONOUR_COPTS=s CONFIGURE_ENV+= CROSS_COMPILE=1 \ HOST_CC="${CC_FOR_BUILD}" \ @@ -84,7 +77,8 @@ CONFIGURE_ARGS+= --enable-application=browser \ --disable-svg \ --disable-mathml \ --disable-jemalloc \ - --disable-crashreporter + --disable-crashreporter \ + --disable-elf-hack XAKE_FLAGS+= OS_RELEASE="2.6" HOST_CC=$(CC_FOR_BUILD) HOST_LDFLAGS=$(LDFLAGS_FOR_BUILD) XAKE_FLAGS+= ARCHFLAG="${TARGET_CFLAGS} ${TARGET_CPPFLAGS} ${TARGET_LDFLAGS}" diff --git a/package/firefox/patches/patch-configure b/package/firefox/patches/patch-configure index 221ae4c83..291e6fbc0 100644 --- a/package/firefox/patches/patch-configure +++ b/package/firefox/patches/patch-configure @@ -1,6 +1,6 @@ ---- mozilla-2.0.orig/configure 2011-03-19 00:48:56.000000000 +0100 -+++ mozilla-2.0/configure 2011-04-24 06:37:26.000000000 +0200 -@@ -23503,6 +23503,9 @@ fi +--- mozilla-release.orig/configure 2011-07-08 03:30:27.000000000 +0200 ++++ mozilla-release/configure 2011-07-29 15:50:35.000000000 +0200 +@@ -23504,6 +23504,9 @@ fi fi fi @@ -9,4 +9,4 @@ + if test -n "$CROSS_COMPILE"; then case "$target" in - *-mingw*|*-cygwin*|*-msvc*|*-mks*) + *-mingw*) diff --git a/package/firefox/patches/patch-content_base_public_nsContentUtils_h b/package/firefox/patches/patch-content_base_public_nsContentUtils_h index 2cd2821c7..7f4a8f0dd 100644 --- a/package/firefox/patches/patch-content_base_public_nsContentUtils_h +++ b/package/firefox/patches/patch-content_base_public_nsContentUtils_h @@ -1,6 +1,6 @@ ---- mozilla-2.0.orig/content/base/public/nsContentUtils.h 2011-03-19 00:33:33.000000000 +0100 -+++ mozilla-2.0/content/base/public/nsContentUtils.h 2011-06-15 20:05:44.538202220 +0200 -@@ -1942,7 +1942,7 @@ inline NS_HIDDEN_(PRBool) NS_FloatIsFini +--- mozilla-release.orig/content/base/public/nsContentUtils.h 2011-07-08 03:15:15.000000000 +0200 ++++ mozilla-release/content/base/public/nsContentUtils.h 2011-07-29 15:50:34.000000000 +0200 +@@ -1928,7 +1928,7 @@ inline NS_HIDDEN_(PRBool) NS_FloatIsFini #ifdef WIN32 return _finite(f); #else diff --git a/package/firefox/patches/patch-content_canvas_src_nsCanvasRenderingContext2D_cpp b/package/firefox/patches/patch-content_canvas_src_nsCanvasRenderingContext2D_cpp deleted file mode 100644 index 9a49b3cd6..000000000 --- a/package/firefox/patches/patch-content_canvas_src_nsCanvasRenderingContext2D_cpp +++ /dev/null @@ -1,11 +0,0 @@ ---- mozilla-2.0.orig/content/canvas/src/nsCanvasRenderingContext2D.cpp 2011-03-19 00:33:34.000000000 +0100 -+++ mozilla-2.0/content/canvas/src/nsCanvasRenderingContext2D.cpp 2011-06-15 20:26:00.226952311 +0200 -@@ -159,7 +159,7 @@ DoubleIsFinite(double d) - // NOTE: '!!' casts an int to bool without spamming MSVC warning C4800. - return !!_finite(d); - #else -- return finite(d); -+ return isfinite(d); - #endif - } - diff --git a/package/firefox/patches/patch-content_media_nsAudioStream_cpp b/package/firefox/patches/patch-content_media_nsAudioStream_cpp index 7f052849c..23525db87 100644 --- a/package/firefox/patches/patch-content_media_nsAudioStream_cpp +++ b/package/firefox/patches/patch-content_media_nsAudioStream_cpp @@ -1,6 +1,6 @@ ---- mozilla-2.0.orig/content/media/nsAudioStream.cpp 2011-03-19 00:33:34.000000000 +0100 -+++ mozilla-2.0/content/media/nsAudioStream.cpp 2011-04-23 23:18:01.000000000 +0200 -@@ -570,7 +570,7 @@ PRInt64 nsAudioStreamLocal::GetSampleOff +--- mozilla-release.orig/content/media/nsAudioStream.cpp 2011-07-08 03:15:16.000000000 +0200 ++++ mozilla-release/content/media/nsAudioStream.cpp 2011-07-29 15:50:34.000000000 +0200 +@@ -566,7 +566,7 @@ PRInt64 nsAudioStreamLocal::GetSampleOff #if defined(XP_WIN) positionType = SA_POSITION_WRITE_HARDWARE; #endif diff --git a/package/firefox/patches/patch-ipc_chromium_src_base_process_util_h b/package/firefox/patches/patch-ipc_chromium_src_base_process_util_h new file mode 100644 index 000000000..ef7d44628 --- /dev/null +++ b/package/firefox/patches/patch-ipc_chromium_src_base_process_util_h @@ -0,0 +1,21 @@ +--- mozilla-release.orig/ipc/chromium/src/base/process_util.h 2011-07-08 03:15:22.000000000 +0200 ++++ mozilla-release/ipc/chromium/src/base/process_util.h 2011-07-29 16:26:23.000000000 +0200 +@@ -62,7 +62,8 @@ enum ProcessArchitecture { + PROCESS_ARCH_I386 = 0x1, + PROCESS_ARCH_X86_64 = 0x2, + PROCESS_ARCH_PPC = 0x4, +- PROCESS_ARCH_ARM = 0x8 ++ PROCESS_ARCH_ARM = 0x8, ++ PROCESS_ARCH_MIPS = 0xf + }; + + static ProcessArchitecture GetCurrentProcessArchitecture() +@@ -76,6 +77,8 @@ static ProcessArchitecture GetCurrentPro + currentArchitecture = base::PROCESS_ARCH_PPC; + #elif defined(ARCH_CPU_ARMEL) + currentArchitecture = base::PROCESS_ARCH_ARM; ++#elif defined(ARCH_CPU_MIPS) ++ currentArchitecture = base::PROCESS_ARCH_MIPS; + #endif + return currentArchitecture; + } diff --git a/package/firefox/patches/patch-ipc_chromium_src_build_build_config_h b/package/firefox/patches/patch-ipc_chromium_src_build_build_config_h new file mode 100644 index 000000000..a281ad81e --- /dev/null +++ b/package/firefox/patches/patch-ipc_chromium_src_build_build_config_h @@ -0,0 +1,15 @@ +--- mozilla-release.orig/ipc/chromium/src/build/build_config.h 2011-07-08 03:15:22.000000000 +0200 ++++ mozilla-release/ipc/chromium/src/build/build_config.h 2011-07-29 16:23:31.000000000 +0200 +@@ -60,6 +60,12 @@ + #elif defined(__ppc__) + #define ARCH_CPU_PPC 1 + #define ARCH_CPU_32_BITS 1 ++#elif defined(__mips__) ++#define ARCH_CPU_MIPS 1 ++#define ARCH_CPU_32_BITS 1 ++#elif defined(__mips64__) ++#define ARCH_CPU_MIPS 1 ++#define ARCH_CPU_64_BITS 1 + #else + #error Please add support for your architecture in build/build_config.h + #endif diff --git a/package/firefox/patches/patch-js_src_Makefile_in b/package/firefox/patches/patch-js_src_Makefile_in index 483f95418..f2dc6e8df 100644 --- a/package/firefox/patches/patch-js_src_Makefile_in +++ b/package/firefox/patches/patch-js_src_Makefile_in @@ -1,6 +1,6 @@ ---- mozilla-2.0.orig/js/src/Makefile.in 2011-03-19 00:33:47.000000000 +0100 -+++ mozilla-2.0/js/src/Makefile.in 2011-04-24 19:54:11.707672834 +0200 -@@ -375,7 +375,7 @@ CPPSRCS += checks.cc \ +--- mozilla-release.orig/js/src/Makefile.in 2011-07-08 03:15:23.000000000 +0200 ++++ mozilla-release/js/src/Makefile.in 2011-07-29 15:50:36.000000000 +0200 +@@ -391,7 +391,7 @@ CPPSRCS += checks.cc \ # END enclude sources for V8 dtoa ############################################# |