Ticket #41560: webkit-gtk.2.patch
File webkit-gtk.2.patch, 6.8 KB (added by jeremyhu (Jeremy Huddleston Sequoia), 11 years ago) |
---|
-
Portfile
8 8 9 9 name webkit-gtk 10 10 epoch 2 11 version 2. 0.411 version 2.2.2 12 12 description Apple's WebKit HTML rendering library for GTK+ 13 13 long_description ${description} 14 14 maintainers jeremyhu devans … … 21 21 use_xz yes 22 22 distname webkitgtk-${version} 23 23 24 checksums sha1 3b9ddbdc61e38b5c8fdd108e891b7db5fb12d55a\25 rmd160 19643cac3f53928757a7c3fe8ea33f144a581456\26 sha256 bd1550b7f6e1a55f803efe7d64438163ff6c04f02186002cb81d0c090aac734f24 checksums sha1 6376d7d55802c3389c74a2ca8a33d53efc340c37 \ 25 rmd160 2f4ec373d71f7912e2315bf09c708df90da5e61c \ 26 sha256 4a45768695ccded14fdc47f99dbcdb750076f55dad61560cadac7b55db0b304d 27 27 28 28 depends_lib \ 29 29 path:lib/pkgconfig/glib-2.0.pc:glib2 \ … … 54 54 # ppc.patch: https://bugs.webkit.org/show_bug.cgi?id=96005 55 55 # tiger.patch: No upstream bug, http://trac.macports.org/ticket/35923 56 56 # quartz-webcore.patch: No upstream bug, http://trac.macports.org/ticket/39898 57 # clang-check.patch: No upstream bug, emailed mailing list 57 58 58 59 patchfiles \ 59 60 clang-assertions.patch \ … … 64 65 ListableHandler.patch \ 65 66 ppc.patch \ 66 67 tiger.patch \ 67 quartz-webcore.patch 68 quartz-webcore.patch \ 69 clang-check.patch \ 70 no-WebCoreLayer.a.patch 68 71 69 72 conflicts_build google-test 70 73 … … 155 158 # google-test suite build fix 156 159 configure.cppflags-append -DGTEST_USE_OWN_TR1_TUPLE=1 157 160 161 # https://trac.macports.org/ticket/41560#comment:2 162 configure.cflags-append -ftemplate-depth=256 163 configure.cxxflags-append -ftemplate-depth=256 164 158 165 autoreconf.env-append ACLOCAL="aclocal -I Source/autotools" 159 166 use_autoreconf yes 160 autoreconf.args -f i167 autoreconf.args -fvi 161 168 162 169 lappend merger_dont_diff ${prefix}/include/webkitgtk-1.0/webkitdom/WebKitDOMNavigator.h 163 170 … … 175 182 # https://bugs.webkit.org/show_bug.cgi?id=58737 176 183 reinplace "s:OS(MAC_OS_X):PLATFORM(MAC):" \ 177 184 ${worksrcpath}/Source/WTF/wtf/ThreadingPthreads.cpp 185 186 # Emailed to webkit-gtk mailing list 11/26/13 187 reinplace "s:-stdlib=libstdc\+\+::" \ 188 ${worksrcpath}/Source/autotools/SetupCompilerFlags.m4 189 190 # TODO: Email/file a bug 191 # In file included from Source/JavaScriptCore/runtime/JSGlobalObject.cpp:83: 192 # ./Source/JavaScriptCore/API/ObjCCallbackFunction.h:32:9: fatal error: 'JavaScriptCore/JSCallbackFunction.h' file not found 193 # #import <JavaScriptCore/JSCallbackFunction.h> 194 # ^ 195 reinplace "/^#define JSC_OBJC_API_ENABLED/s/^.*$/#define JSC_OBJC_API_ENABLED 0/" \ 196 ${worksrcpath}/Source/JavaScriptCore/API/JSBase.h 178 197 } 179 198 180 199 # TODO: fix this for muniversal -
files/clang-check.patch
1 --- Source/autotools/CheckSystemAndBasicDependencies.m4.orig 2013-11-10 17:44:57.000000000 -0800 2 +++ Source/autotools/CheckSystemAndBasicDependencies.m4 2013-11-10 17:45:57.000000000 -0800 3 @@ -87,7 +87,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ 4 #endif 5 ])], [c_compiler="gcc"], []) 6 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ 7 -#if !(defined(__clang__) && __clang_major__ >= 3 && __clang_minor__ >= 2) 8 +#if !(defined(__clang__) && (__apple_build_version__ >= 4250024 || (!defined(__apple_build_version__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 2))))) 9 #error Not a supported Clang compiler 10 #endif 11 ])], [c_compiler="clang"], []) 12 @@ -106,7 +106,7 @@ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ 13 #endif 14 ])], [cxx_compiler="g++"], []) 15 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([ 16 -#if !(defined(__clang__) && __clang_major__ >= 3 && __clang_minor__ >= 2) 17 +#if !(defined(__clang__) && (__apple_build_version__ >= 4250024 || (!defined(__apple_build_version__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 2))))) 18 #error Not a supported Clang++ compiler 19 #endif 20 ])], [cxx_compiler="clang++"], []) -
files/execinfo.patch
28 28 29 29 void WTFGetBacktrace(void** stack, int* size) 30 30 { 31 -#if (OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)32 +#if ( (OS(DARWIN) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1050) || (OS(LINUX) && !defined(__UCLIBC__))) && !OS(ANDROID)31 -#if OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__)) 32 +#if (OS(DARWIN) && MAC_OS_X_VERSION_MAX_ALLOWED >= 1050) || (OS(LINUX) && !defined(__UCLIBC__)) 33 33 *size = backtrace(stack, *size); 34 34 #elif OS(WINDOWS) && !OS(WINCE) 35 35 // The CaptureStackBackTrace function is available in XP, but it is not defined -
files/no-WebCoreLayer.a.patch
1 --- Tools/TestWebKitAPI/GNUmakefile.am.orig 2013-11-11 00:32:41.000000000 -0800 2 +++ Tools/TestWebKitAPI/GNUmakefile.am 2013-11-26 10:40:03.000000000 -0800 3 @@ -117,16 +117,6 @@ webcore_layer_deps += \ 4 libANGLE.la 5 endif 6 7 -webcore_layer_archives = $(foreach lib, $(webcore_layer_deps), $(shell echo $(lib) | sed "s/\(.*\)\.la/.libs\/\1.a/")) 8 - 9 -WebCoreLayer.a: $(webcore_layer_deps) 10 - $(AM_V_GEN) 11 - $(AM_V_at)$(shell rm -f $@) 12 - $(AM_V_at)$(foreach archive, $(webcore_layer_archives), $(shell ar t $(archive) | xargs -n50 ar cruT $@)) 13 - 14 -DISTCLEANFILES += \ 15 - $(top_builddir)/WebCoreLayer.a 16 - 17 Programs_TestWebKitAPI_TestWebCore_CPPFLAGS = \ 18 $(Libraries_libTestWebKitAPIMain_la_CPPFLAGS) \ 19 -I$(top_builddir)/DerivedSources/WebCore/include 20 @@ -140,7 +130,7 @@ Programs_TestWebKitAPI_TestWebCore_LDADD 21 Libraries/libgtest.la \ 22 libjavascriptcoregtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la \ 23 libWTF.la \ 24 - WebCoreLayer.a \ 25 + $(webcore_layer_deps) \ 26 $(CAIRO_LIBS) \ 27 $(FREETYPE_LIBS) \ 28 $(GAMEPAD_LIBS) \ -
files/quartz-webcore.patch
1 --- Source/WebCore/bridge/npruntime_internal-orig.h 2013-07-19 00:04:01.000000000 -07002 +++ Source/WebCore/bridge/npruntime_internal.h 2013-08-12 16:04:17.000000000 -07003 @@ -29,7 +29,7 @@4 #include "npfunctions.h"5 #include "npruntime.h"6 7 -#ifdef XP_UNIX8 +#if PLATFORM(X11)9 #include <X11/Xresource.h>10 11 #undef None12 1 --- Source/WebCore/plugins/PluginView-orig.cpp 2013-07-19 00:04:11.000000000 -0700 13 2 +++ Source/WebCore/plugins/PluginView.cpp 2013-08-12 17:48:20.000000000 -0700 14 3 @@ -865,7 +865,7 @@