diff options
Diffstat (limited to 'meta/recipes-sato')
-rw-r--r-- | meta/recipes-sato/webkit/files/no-gtkdoc.patch | 20 | ||||
-rw-r--r-- | meta/recipes-sato/webkit/webkit-gtk_1.8.1.bb | 103 |
2 files changed, 123 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/files/no-gtkdoc.patch b/meta/recipes-sato/webkit/files/no-gtkdoc.patch new file mode 100644 index 0000000000..4eb09dc0e2 --- /dev/null +++ b/meta/recipes-sato/webkit/files/no-gtkdoc.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | make install invokes a gtk-doc tool without checking that we have gtk-doc. | ||
2 | |||
3 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
4 | |||
5 | Upstream-Status: Pending (https://bugs.webkit.org/show_bug.cgi?id=91239) | ||
6 | |||
7 | Index: webkit-1.8.1/Tools/GNUmakefile.am | ||
8 | =================================================================== | ||
9 | --- webkit-1.8.1.orig/Tools/GNUmakefile.am | ||
10 | +++ webkit-1.8.1/Tools/GNUmakefile.am | ||
11 | @@ -330,7 +330,9 @@ if ENABLE_WEBKIT2 | ||
12 | fi; \ | ||
13 | fi | ||
14 | endif | ||
15 | +if ENABLE_GTK_DOC | ||
16 | @$(AM_V_GEN)$(PYTHON) $(srcdir)/Tools/gtk/generate-gtkdoc --rebase --virtual-root=$${DESTDIR} | ||
17 | +endif | ||
18 | |||
19 | uninstall-local: | ||
20 | @DOC_MODULE_VERSION=`cat ./Documentation/webkitgtk/version.xml`; \ | ||
diff --git a/meta/recipes-sato/webkit/webkit-gtk_1.8.1.bb b/meta/recipes-sato/webkit/webkit-gtk_1.8.1.bb new file mode 100644 index 0000000000..b2bfd24904 --- /dev/null +++ b/meta/recipes-sato/webkit/webkit-gtk_1.8.1.bb | |||
@@ -0,0 +1,103 @@ | |||
1 | DESCRIPTION = "WebKitGTK+ is the port of the portable web rendering engine WebKitK to the GTK+ platform." | ||
2 | HOMEPAGE = "http://www.webkitgtk.org/" | ||
3 | BUGTRACKER = "http://bugs.webkit.org/" | ||
4 | |||
5 | LICENSE = "BSD & LGPLv2+" | ||
6 | LIC_FILES_CHKSUM = "file://Source/WebCore/rendering/RenderApplet.h;endline=22;md5=fb9694013ad71b78f8913af7a5959680 \ | ||
7 | file://Source/WebKit/gtk/webkit/webkit.h;endline=21;md5=b4fbe9f4a944f1d071dba1d2c76b3351 \ | ||
8 | file://Source/JavaScriptCore/parser/Parser.h;endline=23;md5=b57c8a2952a8d0e655988fa0ecb2bf7f" | ||
9 | |||
10 | # Choice of language backends - icu has issues on Big Endian machines so use pango | ||
11 | ICU_LIB = "icu" | ||
12 | ICU_LIB_powerpc = "pango" | ||
13 | |||
14 | DEPENDS = "zlib enchant gnome-keyring libsoup-2.4 curl libxml2 cairo libxslt libxt libidn gnutls \ | ||
15 | gtk+ gstreamer gst-plugins-base flex-native gperf-native perl-native-runtime sqlite3 ${ICU_LIB}" | ||
16 | DEPENDS += " ${@base_contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)}" | ||
17 | |||
18 | SRC_URI = "\ | ||
19 | http://www.webkitgtk.org/releases/webkit-${PV}.tar.xz \ | ||
20 | file://nodolt.patch \ | ||
21 | file://no-gtkdoc.patch \ | ||
22 | file://webgit-gtk_fix_build_with_automake_1.12.patch \ | ||
23 | " | ||
24 | |||
25 | SRC_URI[md5sum] = "f2f01b1fdc7262a2eede81ebed0970b2" | ||
26 | SRC_URI[sha256sum] = "9a126a76b40ca61adb1f1626e1567f976740af2332948cc5189489dbd01e3b28" | ||
27 | |||
28 | inherit autotools lib_package pkgconfig | ||
29 | |||
30 | S = "${WORKDIR}/webkit-${PV}/" | ||
31 | |||
32 | # GNU Make 3.82 has a bug where it incorrectly prunes intermediate targets in | ||
33 | # parallel builds. See https://bugs.webkit.org/show_bug.cgi?id=79498 for the | ||
34 | # WebKitGTK bug, and savannah.gnu.org/bugs/?30653 for the upstream bug. | ||
35 | PARALLEL_MAKE = "" | ||
36 | |||
37 | EXTRA_OECONF = "\ | ||
38 | --enable-debug=no \ | ||
39 | --enable-svg \ | ||
40 | --enable-icon-database=yes \ | ||
41 | --enable-fullscreen-api \ | ||
42 | --enable-image-resizer \ | ||
43 | --enable-link-prefetch \ | ||
44 | --with-gtk=2.0 \ | ||
45 | --disable-geolocation \ | ||
46 | --disable-gtk-doc \ | ||
47 | ${@base_contains('DISTRO_FEATURES', 'opengl', '--enable-webgl', '--disable-webgl', d)} \ | ||
48 | UNICODE_CFLAGS=-D_REENTRANT \ | ||
49 | " | ||
50 | |||
51 | #default unicode backend icu breaks in cross-compile when target and host are different endian type | ||
52 | EXTRA_OECONF_append_powerpc += "--with-unicode-backend=glib" | ||
53 | |||
54 | CPPFLAGS_append_powerpc += "-I${STAGING_INCDIR}/pango-1.0 \ | ||
55 | -I${STAGING_LIBDIR}/glib-2.0/include \ | ||
56 | -I${STAGING_INCDIR}/glib-2.0" | ||
57 | |||
58 | EXTRA_AUTORECONF = " -I Source/autotools " | ||
59 | |||
60 | |||
61 | #| ./Source/JavaScriptCore/heap/HandleTypes.h: In static member function 'static T* JSC::HandleTypes<T>::getFromSlot(JSC::HandleSlot) [with T = JSC::Structure, JSC::HandleTypes<T>::ExternalType = JSC::Structure*, JSC::HandleSlot = JSC::JSValue*]': | ||
62 | #| ./Source/JavaScriptCore/heap/Handle.h:141:79: instantiated from 'JSC::Handle<T>::ExternalType JSC::Handle<T>::get() const [with T = JSC::Structure, JSC::Handle<T>::ExternalType = JSC::Structure*]' | ||
63 | #| ./Source/JavaScriptCore/runtime/ScopeChain.h:39:75: instantiated from here | ||
64 | #| ./Source/JavaScriptCore/heap/HandleTypes.h:38:130: warning: cast from 'JSC::JSCell*' to 'JSC::HandleTypes<JSC::Structure>::ExternalType {aka JSC::Structure*}' increases required alignment of target type [-Wcast-align] | ||
65 | #| {standard input}: Assembler messages: | ||
66 | #| {standard input}:28873: Error: invalid immediate: 983040 is out of range | ||
67 | #| {standard input}:28873: Error: value of 983040 too large for field of 2 bytes at 15110 | ||
68 | #| /OE/shr-core/tmp/sysroots/x86_64-linux/usr/libexec/armv4t-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.6.2/as: BFD (GNU Binutils) 2.21.1 assertion fail /OE/shr-core/tmp/work/armv4t-oe-linux-gnueabi/binutils-cross-2.21.1a-r0/binutils-2.21.1/bfd/elf.c:2819 | ||
69 | #| arm-oe-linux-gnueabi-g++: internal compiler error: Segmentation fault (program as) | ||
70 | #| Please submit a full bug report, | ||
71 | #| with preprocessed source if appropriate. | ||
72 | #| See <http://gcc.gnu.org/bugs.html> for instructions. | ||
73 | #| make[1]: *** [Source/JavaScriptCore/jit/libjavascriptcoregtk_1_0_la-JIT.lo] Error 1 | ||
74 | #| make[1]: Leaving directory `/OE/shr-core/tmp/work/armv4t-oe-linux-gnueabi/webkit-gtk-1.5.1+svnr90727-r0' | ||
75 | ARM_INSTRUCTION_SET = "arm" | ||
76 | |||
77 | CONFIGUREOPT_DEPTRACK = "" | ||
78 | |||
79 | do_configure_append() { | ||
80 | # somethings wrong with icu, fix it up manually | ||
81 | for makefile in $(find ${S} -name "GNUmakefile") ; do | ||
82 | sed -i s:-I/usr/include::g $makefile | ||
83 | done | ||
84 | } | ||
85 | |||
86 | do_install_prepend() { | ||
87 | cp ${S}/Programs/.libs/jsc ${S}/Programs/jsc-1 || true | ||
88 | } | ||
89 | |||
90 | do_install_append() { | ||
91 | rmdir ${D}${libexecdir} | ||
92 | } | ||
93 | |||
94 | PACKAGES =+ "${PN}-webinspector ${PN}launcher-dbg ${PN}launcher libjavascriptcore" | ||
95 | FILES_${PN}launcher = "${bindir}/GtkLauncher" | ||
96 | FILES_${PN}launcher-dbg = "${bindir}/.debug/GtkLauncher" | ||
97 | FILES_libjavascriptcore = "${libdir}/libjavascriptcoregtk-1.0.so.*" | ||
98 | FILES_${PN}-webinspector = "${datadir}/webkitgtk-*/webinspector/" | ||
99 | FILES_${PN} += "${datadir}/webkitgtk-*/resources/error.html \ | ||
100 | ${datadir}/webkitgtk-*/images \ | ||
101 | ${datadir}/glib-2.0/schemas" | ||
102 | |||
103 | |||