2016-04-29 15:46:08 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# webkitgtk
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
webkitgtk: security bump to version 2.18.6
This is a maintenance release of the current stable WebKitGTK+ version,
which contains security fixes for CVE-2018-4088, CVE-2017-13885,
CVE-2017-7165, CVE-2017-13884, CVE-2017-7160, CVE-2017-7153,
CVE-2017-7153, CVE-2017-7161, and CVE-2018-4096. Additionally, it solves
a GStreamer deadlock when stopping video playback, and contains fixes
and improvements for the WebDriver implementation.
Release notes can be found in the announcement:
https://webkitgtk.org/2018/01/24/webkitgtk2.18.6-released.html
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2018-01-25 21:42:03 +01:00
|
|
|
WEBKITGTK_VERSION = 2.18.6
|
2016-04-29 15:46:08 +02:00
|
|
|
WEBKITGTK_SITE = http://www.webkitgtk.org/releases
|
|
|
|
WEBKITGTK_SOURCE = webkitgtk-$(WEBKITGTK_VERSION).tar.xz
|
|
|
|
WEBKITGTK_INSTALL_STAGING = YES
|
2017-03-30 15:43:39 +02:00
|
|
|
WEBKITGTK_LICENSE = LGPL-2.1+, BSD-2-Clause
|
2016-04-29 15:46:08 +02:00
|
|
|
WEBKITGTK_LICENSE_FILES = \
|
|
|
|
Source/WebCore/LICENSE-APPLE \
|
|
|
|
Source/WebCore/LICENSE-LGPL-2.1
|
|
|
|
WEBKITGTK_DEPENDENCIES = host-ruby host-flex host-bison host-gperf \
|
2017-07-05 21:46:53 +02:00
|
|
|
enchant harfbuzz icu jpeg libgcrypt libgtk3 libsecret libsoup \
|
2018-01-25 21:42:02 +01:00
|
|
|
libtasn1 libxml2 libxslt sqlite webp
|
2016-04-29 15:46:08 +02:00
|
|
|
WEBKITGTK_CONF_OPTS = \
|
|
|
|
-DENABLE_API_TESTS=OFF \
|
|
|
|
-DENABLE_GEOLOCATION=OFF \
|
|
|
|
-DENABLE_GTKDOC=OFF \
|
|
|
|
-DENABLE_INTROSPECTION=OFF \
|
|
|
|
-DENABLE_MINIBROWSER=ON \
|
|
|
|
-DENABLE_SPELLCHECK=ON \
|
|
|
|
-DPORT=GTK \
|
|
|
|
-DUSE_LIBNOTIFY=OFF \
|
|
|
|
-DUSE_LIBHYPHEN=OFF
|
|
|
|
|
|
|
|
# ARM needs NEON for JIT
|
|
|
|
# i386 & x86_64 don't seem to have any special requirements
|
|
|
|
ifeq ($(BR2_ARM_CPU_HAS_NEON)$(BR2_i386)$(BR2_x86_64),y)
|
|
|
|
WEBKITGTK_CONF_OPTS += -DENABLE_JIT=ON
|
|
|
|
else
|
|
|
|
WEBKITGTK_CONF_OPTS += -DENABLE_JIT=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_WEBKITGTK_MULTIMEDIA),y)
|
|
|
|
WEBKITGTK_CONF_OPTS += \
|
|
|
|
-DENABLE_VIDEO=ON \
|
|
|
|
-DENABLE_WEB_AUDIO=ON
|
|
|
|
WEBKITGTK_DEPENDENCIES += gstreamer1 gst1-libav gst1-plugins-base gst1-plugins-good
|
|
|
|
else
|
2017-07-29 15:18:44 +02:00
|
|
|
# ENABLE_MEDIA_STREAM has to be explicitly disabled because there is a missing
|
|
|
|
# feature dependency in the WebKitGTK+ CMake files. This can be removed once
|
|
|
|
# https://bugs.webkit.org/show_bug.cgi?id=174940 makes it into a release.
|
2016-04-29 15:46:08 +02:00
|
|
|
WEBKITGTK_CONF_OPTS += \
|
|
|
|
-DENABLE_VIDEO=OFF \
|
2017-07-29 15:18:44 +02:00
|
|
|
-DENABLE_WEB_AUDIO=OFF \
|
|
|
|
-DENABLE_MEDIA_STREAM=OFF
|
2016-04-29 15:46:08 +02:00
|
|
|
endif
|
|
|
|
|
2017-09-13 18:51:21 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_WEBKITGTK_WEBDRIVER),y)
|
|
|
|
WEBKITGTK_CONF_OPTS += -DENABLE_WEBDRIVER=ON
|
|
|
|
else
|
|
|
|
WEBKITGTK_CONF_OPTS += -DENABLE_WEBDRIVER=OFF
|
|
|
|
endif
|
|
|
|
|
2016-04-29 15:46:08 +02:00
|
|
|
# Only one target platform can be built, assume X11 > Wayland
|
|
|
|
|
|
|
|
# GTK3-X11 target gives OpenGL from newer libgtk3 versions
|
|
|
|
# Consider this better than EGL + maybe GLESv2 since both can't be built
|
|
|
|
# 2D CANVAS acceleration requires OpenGL proper with cairo-gl
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y)
|
|
|
|
WEBKITGTK_CONF_OPTS += \
|
|
|
|
-DENABLE_ACCELERATED_2D_CANVAS=ON \
|
|
|
|
-DENABLE_GLES2=OFF \
|
|
|
|
-DENABLE_OPENGL=ON \
|
|
|
|
-DENABLE_X11_TARGET=ON
|
|
|
|
WEBKITGTK_DEPENDENCIES += libgl \
|
|
|
|
xlib_libXcomposite xlib_libXdamage xlib_libXrender xlib_libXt
|
|
|
|
# It can use libgtk2 for npapi plugins
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK2),y)
|
|
|
|
WEBKITGTK_CONF_OPTS += -DENABLE_PLUGIN_PROCESS_GTK2=ON
|
|
|
|
WEBKITGTK_DEPENDENCIES += libgtk2
|
|
|
|
else
|
|
|
|
WEBKITGTK_CONF_OPTS += -DENABLE_PLUGIN_PROCESS_GTK2=OFF
|
|
|
|
endif
|
|
|
|
else # !X11
|
|
|
|
# GTK3-BROADWAY/WAYLAND needs at least EGL
|
|
|
|
WEBKITGTK_DEPENDENCIES += libegl
|
|
|
|
# GLESv2 support is optional though
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
|
|
|
WEBKITGTK_CONF_OPTS += \
|
|
|
|
-DENABLE_GLES2=ON \
|
|
|
|
-DENABLE_OPENGL=ON
|
|
|
|
WEBKITGTK_DEPENDENCIES += libgles
|
|
|
|
else
|
|
|
|
# Disable general OpenGL (shading) if there's no GLESv2
|
|
|
|
WEBKITGTK_CONF_OPTS += \
|
|
|
|
-DENABLE_GLES2=OFF \
|
|
|
|
-DENABLE_OPENGL=OFF
|
|
|
|
endif
|
|
|
|
# We must explicitly state the wayland target
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3_WAYLAND),y)
|
|
|
|
WEBKITGTK_CONF_OPTS += -DENABLE_WAYLAND_TARGET=ON
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|