summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Alberto Lopez Perez <clopez@igalia.com>2016-05-27 17:11:18 +0200
committerGerrit Code Review <gerrit@172.30.200.200>2016-06-17 09:31:16 +0000
commit17c72933a7ba223613a6f941c83f1524554be6a0 (patch)
tree9dd88c45625c9c2cf9f37eeb0629617d73d68c63
parentdb5698e3e458f84889ce8a9061f2b7745df4bd1a (diff)
Add WebKitForWayland recipe.
* This adds a WebkitForWayland recipe. * It depends on harfbuzz with ICU support built-in. Signed-off-by: Carlos Alberto Lopez Perez <clopez@igalia.com>
-rw-r--r--recipes-graphics/harfbuzz/harfbuzz_%.bbappend1
-rw-r--r--recipes-webruntime/webkitforwayland/webkitforwayland_git.bb74
2 files changed, 75 insertions, 0 deletions
diff --git a/recipes-graphics/harfbuzz/harfbuzz_%.bbappend b/recipes-graphics/harfbuzz/harfbuzz_%.bbappend
new file mode 100644
index 000000000..7ac439a25
--- /dev/null
+++ b/recipes-graphics/harfbuzz/harfbuzz_%.bbappend
@@ -0,0 +1 @@
+PACKAGECONFIG_append = " icu"
diff --git a/recipes-webruntime/webkitforwayland/webkitforwayland_git.bb b/recipes-webruntime/webkitforwayland/webkitforwayland_git.bb
new file mode 100644
index 000000000..24f6055b6
--- /dev/null
+++ b/recipes-webruntime/webkitforwayland/webkitforwayland_git.bb
@@ -0,0 +1,74 @@
+SUMMARY = "WebKit for Wayland port pairs the WebKit engine with the Wayland display protocol, \
+ allowing embedders to create simple and performant systems based on Web platform technologies. \
+ It is designed with hardware acceleration in mind, relying on EGL, the Wayland EGL platform, and OpenGL ES."
+HOMEPAGE = "http://www.webkitforwayland.org/"
+LICENSE = "BSD & LGPLv2+"
+LIC_FILES_CHKSUM = "file://Source/WebCore/LICENSE-LGPL-2.1;md5=a778a33ef338abbaf8b8a7c36b6eec80 "
+
+# you need harfbuzz with icu enabled, you can add this to your config:
+# PACKAGECONFIG_append_pn-harfbuzz = " icu" if you are having problems
+# with the do_configure step and harfbuzz.
+DEPENDS = "zlib enchant libsoup-2.4 curl libxml2 cairo libxslt libidn gnutls \
+ gtk+3 gstreamer1.0 gstreamer1.0-plugins-base flex-native icu \
+ gperf-native perl-native ruby-native sqlite3 \
+ libwebp harfbuzz virtual/libgles2 wayland weston mesa"
+
+
+REQUIRED_DISTRO_FEATURES = "wayland"
+
+inherit cmake pkgconfig perlnative pythonnative
+
+#
+# We download a tarball from github instead of cloning the git repository because
+# requires less resources (network bandwidth and disk space) on the build machine.
+#
+# PV is the release or tag version (from https://github.com/WebKitForWayland/webkit/releases)
+PV = "wpe-20160519"
+S = "${WORKDIR}/webkit-${PV}/"
+
+SRC_URI = "\
+ https://github.com/WebKitForWayland/webkit/archive/${PV}.tar.gz \
+"
+
+SRC_URI[md5sum] = "2b5f254c426ec74d62a72e136cf5e274"
+SRC_URI[sha256sum] = "f4f5076b2f7e17e86976bb14dffc750b446392b1e68946eea9dd0d733ec5f5f2"
+
+EXTRA_OECMAKE = " \
+ -DPORT=WPE \
+ -DCMAKE_BUILD_TYPE=Release \
+ "
+
+# Javascript JIT is not supported on powerpc
+EXTRA_OECMAKE_append_powerpc = " -DENABLE_JIT=OFF "
+EXTRA_OECMAKE_append_powerpc64 = " -DENABLE_JIT=OFF "
+
+# ARM JIT code does not build on ARMv5/6 anymore, apparently they test only on v7 onwards
+EXTRA_OECMAKE_append_armv5 = " -DENABLE_JIT=OFF "
+EXTRA_OECMAKE_append_armv6 = " -DENABLE_JIT=OFF "
+
+# binutils 2.25.1 has a bug on aarch64:
+# https://sourceware.org/bugzilla/show_bug.cgi?id=18430
+EXTRA_OECMAKE_append_aarch64 = " -DUSE_LD_GOLD=OFF "
+
+# JIT not supported on MIPS either
+EXTRA_OECMAKE_append_mips = " -DENABLE_JIT=OFF "
+EXTRA_OECMAKE_append_mips64 = " -DENABLE_JIT=OFF "
+
+# We manually set the includes files for the binary and dev package here,
+# (overriding the default settings) because some libraries (libWPE and
+# libWPEWebInspectorResources) are not versioned, so we must include
+# the .so file in the binary package instead of the dev one.
+FILES_${PN}-dev = " \
+${includedir} \
+${libdir}/libWPE.so \
+${libdir}/libWPEWebKit.so \
+${libdir}/pkgconfig \
+"
+FILES_${PN} = " \
+${bindir} \
+${libdir}/libWPE.so.* \
+${libdir}/libWPEWebInspectorResources.so \
+${libdir}/libWPEWebKit.so.* \
+"
+
+RRECOMMENDS_${PN} += "ca-certificates"