diff options
author | flo <flo@FreeBSD.org> | 2011-06-29 00:42:58 +0800 |
---|---|---|
committer | flo <flo@FreeBSD.org> | 2011-06-29 00:42:58 +0800 |
commit | 0846c4752c386cd88fe29de3750b92065a16ae21 (patch) | |
tree | 2f0f4a86587e93ad101435325e09f00f6aae74dc /www | |
parent | 74af39c955f63a73cd1765adcd81ccbe72144ba4 (diff) | |
download | freebsd-ports-gnome-0846c4752c386cd88fe29de3750b92065a16ae21.tar.gz freebsd-ports-gnome-0846c4752c386cd88fe29de3750b92065a16ae21.tar.zst freebsd-ports-gnome-0846c4752c386cd88fe29de3750b92065a16ae21.zip |
- enable the use of ASM code in libjpeg-turbo [1]
- make plugin-container work with custom LD_LIBRARY_PATH [2]
Do not bump PORTREVISION as firefox package was not buildable due to size
constraints before my last bsd.gecko.mk commit.
PR: ports/158371 [1]
Submitted by: Pan Tsu <inyaoo@gmail.com> [1]
kmoore [2]
Obtained from: mozilla bugtracker [2]
Diffstat (limited to 'www')
-rw-r--r-- | www/firefox-esr/files/patch-bugzilla-535300 | 20 | ||||
-rw-r--r-- | www/firefox-esr/files/patch-configure.in | 15 | ||||
-rw-r--r-- | www/firefox/files/patch-bugzilla-535300 | 20 | ||||
-rw-r--r-- | www/firefox/files/patch-configure.in | 15 |
4 files changed, 70 insertions, 0 deletions
diff --git a/www/firefox-esr/files/patch-bugzilla-535300 b/www/firefox-esr/files/patch-bugzilla-535300 new file mode 100644 index 000000000000..4c0bb136129a --- /dev/null +++ b/www/firefox-esr/files/patch-bugzilla-535300 @@ -0,0 +1,20 @@ +--- ipc/glue/GeckoChildProcessHost.cpp.orig 2011-06-15 23:57:27.000000000 +0200 ++++ ipc/glue/GeckoChildProcessHost.cpp 2011-06-27 23:48:28.799495181 +0200 +@@ -433,7 +433,16 @@ + #ifdef ANDROID + path += "/lib"; + #endif +- newEnvVars["LD_LIBRARY_PATH"] = path.get(); ++ const char *ld_library_path = PR_GetEnv("LD_LIBRARY_PATH"); ++ nsCString new_ld_lib_path; ++ if (ld_library_path && *ld_library_path) { ++ new_ld_lib_path.Assign(ld_library_path); ++ new_ld_lib_path.AppendLiteral(":"); ++ new_ld_lib_path.Append(path.get()); ++ newEnvVars["LD_LIBRARY_PATH"] = new_ld_lib_path.get(); ++ } else { ++ newEnvVars["LD_LIBRARY_PATH"] = path.get(); ++ } + #elif OS_MACOSX + newEnvVars["DYLD_LIBRARY_PATH"] = path.get(); + #endif diff --git a/www/firefox-esr/files/patch-configure.in b/www/firefox-esr/files/patch-configure.in index d36a535358ab..103defe63c68 100644 --- a/www/firefox-esr/files/patch-configure.in +++ b/www/firefox-esr/files/patch-configure.in @@ -69,3 +69,18 @@ SunOS:x86) VPX_ASFLAGS="-f elf32 -rnasm -pnasm" VPX_X86_ASM=1 +@@ -6392,6 +6402,14 @@ if test -n "$MOZ_LIBJPEG_TURBO"; then + LIBJPEG_TURBO_ASFLAGS="-f elf64 -rnasm -pnasm -D__x86_64__ -DPIC -DELF" + LIBJPEG_TURBO_X64_ASM=1 + ;; ++ FreeBSD:i386) ++ LIBJPEG_TURBO_ASFLAGS="-f elf32 -rnasm -pnasm -DPIC -DELF" ++ LIBJPEG_TURBO_X86_ASM=1 ++ ;; ++ FreeBSD:amd64) ++ LIBJPEG_TURBO_ASFLAGS="-f elf64 -rnasm -pnasm -D__x86_64__ -DPIC -DELF" ++ LIBJPEG_TURBO_X64_ASM=1 ++ ;; + SunOS:i?86) + LIBJPEG_TURBO_ASFLAGS="-f elf32 -rnasm -pnasm -DPIC -DELF" + LIBJPEG_TURBO_X86_ASM=1 diff --git a/www/firefox/files/patch-bugzilla-535300 b/www/firefox/files/patch-bugzilla-535300 new file mode 100644 index 000000000000..4c0bb136129a --- /dev/null +++ b/www/firefox/files/patch-bugzilla-535300 @@ -0,0 +1,20 @@ +--- ipc/glue/GeckoChildProcessHost.cpp.orig 2011-06-15 23:57:27.000000000 +0200 ++++ ipc/glue/GeckoChildProcessHost.cpp 2011-06-27 23:48:28.799495181 +0200 +@@ -433,7 +433,16 @@ + #ifdef ANDROID + path += "/lib"; + #endif +- newEnvVars["LD_LIBRARY_PATH"] = path.get(); ++ const char *ld_library_path = PR_GetEnv("LD_LIBRARY_PATH"); ++ nsCString new_ld_lib_path; ++ if (ld_library_path && *ld_library_path) { ++ new_ld_lib_path.Assign(ld_library_path); ++ new_ld_lib_path.AppendLiteral(":"); ++ new_ld_lib_path.Append(path.get()); ++ newEnvVars["LD_LIBRARY_PATH"] = new_ld_lib_path.get(); ++ } else { ++ newEnvVars["LD_LIBRARY_PATH"] = path.get(); ++ } + #elif OS_MACOSX + newEnvVars["DYLD_LIBRARY_PATH"] = path.get(); + #endif diff --git a/www/firefox/files/patch-configure.in b/www/firefox/files/patch-configure.in index d36a535358ab..103defe63c68 100644 --- a/www/firefox/files/patch-configure.in +++ b/www/firefox/files/patch-configure.in @@ -69,3 +69,18 @@ SunOS:x86) VPX_ASFLAGS="-f elf32 -rnasm -pnasm" VPX_X86_ASM=1 +@@ -6392,6 +6402,14 @@ if test -n "$MOZ_LIBJPEG_TURBO"; then + LIBJPEG_TURBO_ASFLAGS="-f elf64 -rnasm -pnasm -D__x86_64__ -DPIC -DELF" + LIBJPEG_TURBO_X64_ASM=1 + ;; ++ FreeBSD:i386) ++ LIBJPEG_TURBO_ASFLAGS="-f elf32 -rnasm -pnasm -DPIC -DELF" ++ LIBJPEG_TURBO_X86_ASM=1 ++ ;; ++ FreeBSD:amd64) ++ LIBJPEG_TURBO_ASFLAGS="-f elf64 -rnasm -pnasm -D__x86_64__ -DPIC -DELF" ++ LIBJPEG_TURBO_X64_ASM=1 ++ ;; + SunOS:i?86) + LIBJPEG_TURBO_ASFLAGS="-f elf32 -rnasm -pnasm -DPIC -DELF" + LIBJPEG_TURBO_X86_ASM=1 |