summaryrefslogtreecommitdiffstats
path: root/recipes-sato/webkit/webkit-gtk_2.4.9.bb
blob: 300d440c6499322ccaa03ce6d1106cc254daa4c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
SUMMARY = "WebKit web rendering engine for the GTK+ platform"
HOMEPAGE = "http://www.webkitgtk.org/"
BUGTRACKER = "http://bugs.webkit.org/"

LICENSE = "BSD & LGPLv2+"
LIC_FILES_CHKSUM = "file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d84286dda758da57bd691 \
		file://Source/WebCore/rendering/RenderLayer.h;endline=42;md5=8b9ec0d368e6a45b89dd260863e58586 \
		file://Source/WebKit/LICENSE;md5=4646f90082c40bcf298c285f8bab0b12"

DEPENDS = "enchant libsoup-2.4 cairo libxslt libxt gtk+3 gstreamer1.0 flex\
	   gperf perl python sqlite3 icu ruby harfbuzz \
	   libwebp libsecret gstreamer1.0-plugins-base "
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'virtual/libgl', '', d)}"

RDEPENDS_${PN} = "gtk+"

# We run into https://bugs.webkit.org/show_bug.cgi?id=94303
# build fails when the build dir is in a separate filesystem/mountpoint
# There is a patch proposed in that bug report but was not accepted
# upstream since it breaks "make distcheck". We include that fix.
SRC_URI = "\
  http://www.webkitgtk.org/releases/webkitgtk-${PV}.tar.xz \
  file://94303_fix_separate_build_dir.patch \
  "

SRC_URI[md5sum] = "312fd29eb7f5970660c6a64b8bf8420e"
SRC_URI[sha256sum] = "afdf29e7828816cad0be2604cf19421e96d96bf493987328ffc8813bb20ac564"

inherit autotools lib_package pkgconfig

S = "${WORKDIR}/webkitgtk-${PV}/"

EXTRA_OECONF = "\
                --enable-webkit2 \
                --enable-debug=no \
                --enable-svg \
                --enable-glx \
                --with-gtk=3.0 \
                --disable-geolocation \
                ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', '--enable-webgl', '--disable-webgl', d)} \
                UNICODE_CFLAGS=-D_REENTRANT \
               "
#${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '--enable-wayland-target', '--disable-wayland-target', d)}
#when building with wayland target we currently see the following failure:
#| In file included from
#	       /SNIP/poky/build/tmp/work/corei7-64-eywa-linux/webkit-gtk/2.4.9-r0/webkitgtk-2.4.9/Source/WebCore/bindings/js/ScriptController.cpp:40:0:
#	       |
#	       /SNIP/poky/build/tmp/work/corei7-64-eywa-linux/webkit-gtk/2.4.9-r0/webkitgtk-2.4.9/Source/WebCore/plugins/PluginView.h:383:9:
#	       error: 'Pixmap' does not name a type
#	       |          Pixmap m_drawable;
#	       |          ^
#	       |
#	       /SNIP/poky/build/tmp/work/corei7-64-eywa-linux/webkit-gtk/2.4.9-r0/webkitgtk-2.4.9/Source/WebCore/plugins/PluginView.h:384:9:
#	       error: 'Visual' does not name a type
#	       |          Visual* m_visual;
#	       |          ^
#	       |
#	       /SNIP/poky/build/tmp/work/corei7-64-eywa-linux/webkit-gtk/2.4.9-r0/webkitgtk-2.4.9/Source/WebCore/plugins/PluginView.h:385:9:
#	       error: 'Colormap' does not name a type
#	       |          Colormap m_colormap;
#	       |          ^
#	       |
#	       /SNIP/poky/build/tmp/work/corei7-64-eywa-linux/webkit-gtk/2.4.9-r0/webkitgtk-2.4.9/Source/WebCore/plugins/PluginView.h:386:9:
#	       error: 'Display' does not name a type
#	       |          Display* m_pluginDisplay;
#	       |          ^
#	       |
#	       /SNIP/poky/build/tmp/work/corei7-64-eywa-linux/webkit-gtk/2.4.9-r0/webkitgtk-2.4.9/Source/WebCore/plugins/PluginView.h:388:25:
#	       error: 'XEvent' has not been declared
#	       |          void initXEvent(XEvent* event);


# ld can run out of memory linking libwebkitgtk!
#
LDFLAGS += "-Wl,--no-keep-memory"

EXTRA_AUTORECONF = " -I Source/autotools "

# see https://bugs.webkit.org/show_bug.cgi?id=94488
# Bug 94488 - --disable-dependency-tracking causes build failure due to
# missing directories
# The fix for this bug is not in this release
CONFIGUREOPT_DEPTRACK = ""

#fix ERROR: QA Issue: webkit-gtk: The compile log indicates that host
#include and/or library paths were used.
do_configure_append() {
	# somethings wrong with icu, fix it up manually
	for makefile in $(find ${B} -name "GNUmakefile") ; do
		sed -i s:-I/usr/include::g $makefile
	done
}

PACKAGES =+ "${PN}-injected-bundle"

FILES_${PN}-dbg += "${libdir}/webkit2gtk-*/injected-bundle/.debug/"

FILES_${PN}-injected-bundle = "${libdir}/webkit2gtk-*/injected-bundle/libwebkit2gtkinjectedbundle.*"

FILES_${PN} += "${datadir}/webkitgtk-*/resources/error.html \
                ${datadir}/webkitgtk-*/resources/audio/Composite.wav \
                ${datadir}/webkitgtk-*/images"