blob: c6ef976127a61d4999fb0ac286223cd97da2d4ad [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "Webkit browser engine, EFL edition"
2LICENSE = "GPLv2+ & LGPL-2.1"
3LIC_FILES_CHKSUM = " \
4 file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d84286dda758da57bd691 \
5 file://Source/WebCore/LICENSE-APPLE;md5=4646f90082c40bcf298c285f8bab0b12 \
6 file://Source/WebCore/LICENSE-LGPL-2.1;md5=a778a33ef338abbaf8b8a7c36b6eec80 \
7 file://Source/WebCore/LICENSE-LGPL-2;md5=36357ffde2b64ae177b2494445b79d21 \
8"
9
10# you need harfbuzz with icu enabled, you can add this to your config:
11# PACKAGECONFIG_append_pn-harfbuzz = " icu"
12DEPENDS = "icu libxslt sqlite3 gperf-native bison-native flex-native jpeg \
13 libpng libxt fontconfig cairo freetype glib-2.0 libsoup-2.4 \
14 libxml2 pango eina ecore evas edje eldbus harfbuzz enchant \
15 ruby-native elementary"
16
17PE = "1"
18
19SRCVER ?= "${PV}"
20SRC_URI = "\
21 ${E_RELEASES}/libs/webkit-efl/ewebkit-${SRCVER}.tar.xz \
22"
23S = "${WORKDIR}/ewebkit"
24
25inherit cmake lib_package pkgconfig perlnative pythonnative
26
27ARM_INSTRUCTION_SET = "arm"
28
29EXTRA_OECMAKE = " \
30 -DPORT=Efl \
31 -DSHARED_CORE=On \
32 -DENABLE_DRAG_SUPPORT=On \
33 -DENABLE_WEB_AUDIO=Off \
34 -DENABLE_VIDEO=Off \
35 -DENABLE_VIDEO_TRACK=Off \
36 -DENABLE_ACCESSIBILITY=Off \
37 -DENABLE_BATTERY_STATUS=Off \
38"
39# generated ASM code isn't compatible with armv[45]
40# it was removed from macro assembler in upstream commit 121885
41# https://bugs.webkit.org/show_bug.cgi?id=90198
42EXTRA_OECMAKE_append_armv4 = " -DENABLE_LLINT=Off -DENABLE_JIT=Off -DENABLE_DFG_JIT=Off -DENABLE_FTL_JIT=Off"
43EXTRA_OECMAKE_append_armv5 = " -DENABLE_LLINT=Off -DENABLE_JIT=Off -DENABLE_DFG_JIT=Off -DENABLE_FTL_JIT=Off"
44
45# hack it in OptionsEfl.cmake because that overrules -DENABLE_LLINT=Off
46do_configure_prepend_armv4() {
47 sed -i 's/WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LLINT ON)/WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LLINT OFF)/g' ${S}/Source/cmake/OptionsEfl.cmake
48}
49do_configure_prepend_armv5() {
50 sed -i 's/WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LLINT ON)/WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LLINT OFF)/g' ${S}/Source/cmake/OptionsEfl.cmake
51}
52
53# and disabled LLINT currently isn't supported, so restrict to armv7a and x86*
54COMPATIBLE_MACHINE = "(-)"
55COMPATIBLE_MACHINE_x86 = "(.*)"
56COMPATIBLE_MACHINE_x86-64 = "(.*)"
57COMPATIBLE_MACHINE_armv7a = "(.*)"
58
59LEAD_SONAME = "libewebkit.so"
60PACKAGES =+ "${PN}launcher-dbg ${PN}launcher ${PN}-inspector"
61
62FILES_${PN} += "${datadir}/ewebkit2-1/themes/default.edj"
63FILES_${PN}-dev += "${libdir}/cmake"
64FILES_${PN}launcher = "${bindir}/EWebLauncher"
65FILES_${PN}launcher-dbg = "${bindir}/.debug/EWebLauncher"
66FILES_${PN}-inspector += "${datadir}/ewebkit2-1/inspector"
67
68# http://errors.yoctoproject.org/Errors/Details/40659/
69PNBLACKLIST[webkit-efl] ?= "Old and unmaintaned fork with many security issues"