Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Webkit browser engine, EFL edition" |
| 2 | LICENSE = "GPLv2+ & LGPL-2.1" |
| 3 | LIC_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" |
| 12 | DEPENDS = "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 | |
| 17 | PE = "1" |
| 18 | |
| 19 | SRCVER ?= "${PV}" |
| 20 | SRC_URI = "\ |
| 21 | ${E_RELEASES}/libs/webkit-efl/ewebkit-${SRCVER}.tar.xz \ |
| 22 | " |
| 23 | S = "${WORKDIR}/ewebkit" |
| 24 | |
| 25 | inherit cmake lib_package pkgconfig perlnative pythonnative |
| 26 | |
| 27 | ARM_INSTRUCTION_SET = "arm" |
| 28 | |
| 29 | EXTRA_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 |
| 42 | EXTRA_OECMAKE_append_armv4 = " -DENABLE_LLINT=Off -DENABLE_JIT=Off -DENABLE_DFG_JIT=Off -DENABLE_FTL_JIT=Off" |
| 43 | EXTRA_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 |
| 46 | do_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 | } |
| 49 | do_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* |
| 54 | COMPATIBLE_MACHINE = "(-)" |
| 55 | COMPATIBLE_MACHINE_x86 = "(.*)" |
| 56 | COMPATIBLE_MACHINE_x86-64 = "(.*)" |
| 57 | COMPATIBLE_MACHINE_armv7a = "(.*)" |
| 58 | |
| 59 | LEAD_SONAME = "libewebkit.so" |
| 60 | PACKAGES =+ "${PN}launcher-dbg ${PN}launcher ${PN}-inspector" |
| 61 | |
| 62 | FILES_${PN} += "${datadir}/ewebkit2-1/themes/default.edj" |
| 63 | FILES_${PN}-dev += "${libdir}/cmake" |
| 64 | FILES_${PN}launcher = "${bindir}/EWebLauncher" |
| 65 | FILES_${PN}launcher-dbg = "${bindir}/.debug/EWebLauncher" |
| 66 | FILES_${PN}-inspector += "${datadir}/ewebkit2-1/inspector" |
| 67 | |
| 68 | # http://errors.yoctoproject.org/Errors/Details/40659/ |
| 69 | PNBLACKLIST[webkit-efl] ?= "Old and unmaintaned fork with many security issues" |