1 ################################################################################
5 ################################################################################
7 WEBKIT_VERSION = 1.11.5
8 WEBKIT_SITE = http://www.webkitgtk.org/releases
9 WEBKIT_SOURCE = webkitgtk-$(WEBKIT_VERSION).tar.xz
10 WEBKIT_INSTALL_STAGING = YES
11 WEBKIT_DEPENDENCIES = host-ruby host-flex host-bison host-gperf enchant harfbuzz \
12 icu jpeg libcurl libgail libsecret libsoup libxml2 libxslt libgtk2 sqlite webp
14 WEBKIT_DEPENDENCIES += \
15 $(if $(BR_PACKAGE_XLIB_LIBXCOMPOSITE),xlib_libXcomposite) \
16 $(if $(BR_PACKAGE_XLIB_LIBXDAMAGE),xlib_libXdamage)
18 # webkit-disable-tests.patch changes configure.ac therefore autoreconf required
19 WEBKIT_AUTORECONF = YES
20 WEBKIT_AUTORECONF_OPTS = -I $(@D)/Source/autotools
22 # parallel make install deadlocks with make 3.81
23 WEBKIT_INSTALL_STAGING_OPTS = -j1 DESTDIR=$(STAGING_DIR) install
24 WEBKIT_INSTALL_TARGET_OPTS = -j1 DESTDIR=$(TARGET_DIR) install
26 # Does not build and it's disabled by default
28 define DISABLE_INDEXED_DATABASE
29 $(SED) '/ENABLE_INDEXED_DATABASE/s:1:0:' \
30 $(@D)/Source/WebCore/GNUmakefile.features.am
33 WEBKIT_PRE_CONFIGURE_HOOKS += DISABLE_INDEXED_DATABASE
35 # Give explicit path to icu-config, and silence gazillions of warnings
36 # with recent gcc versions.
37 WEBKIT_CONF_ENV = ac_cv_path_icu_config=$(STAGING_DIR)/usr/bin/icu-config \
38 CFLAGS="$(TARGET_CFLAGS) -Wno-cast-align -Wno-sign-compare" \
39 CXXFLAGS="$(TARGET_CXXFLAGS) -Wno-cast-align -Wno-sign-compare" \
43 --enable-dependency-tracking \
45 --disable-geolocation \
52 WEBKIT_CONF_OPTS += --with-target=x11
53 WEBKIT_DEPENDENCIES += xlib_libXt
55 ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGLES),yy)
56 WEBKIT_CONF_OPTS += --enable-gles2
57 WEBKIT_DEPENDENCIES += libegl libgles
59 WEBKIT_CONF_OPTS += --disable-gles2
62 # gles/egl support is prefered over opengl by webkit configure
63 ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
64 WEBKIT_CONF_OPTS += --with-acceleration-backend=opengl
65 WEBKIT_DEPENDENCIES += libgl
67 # OpenGL/glx is auto-detected due to the presence of gl.h/glx.h, which is not
68 # enough, so disable glx and the use of the OpenGL acceleration backend here
69 WEBKIT_CONF_OPTS += --disable-glx --with-acceleration-backend=none
72 $(eval $(autotools-package))