2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-03-06 19:28:48 +01:00
|
|
|
#
|
|
|
|
# webkit
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2008-03-06 19:28:48 +01:00
|
|
|
|
2013-09-05 13:37:02 +02:00
|
|
|
WEBKIT_VERSION = 1.11.5
|
2013-05-06 08:19:39 +02:00
|
|
|
WEBKIT_SITE = http://www.webkitgtk.org/releases
|
2013-09-05 13:37:02 +02:00
|
|
|
WEBKIT_SOURCE = webkitgtk-$(WEBKIT_VERSION).tar.xz
|
2008-03-06 19:28:48 +01:00
|
|
|
WEBKIT_INSTALL_STAGING = YES
|
2013-09-05 13:37:02 +02:00
|
|
|
WEBKIT_DEPENDENCIES = host-ruby host-flex host-bison host-gperf enchant harfbuzz \
|
|
|
|
icu jpeg libcurl libgail libsecret libsoup libxml2 libxslt libgtk2 sqlite webp
|
2012-12-15 08:29:41 +01:00
|
|
|
|
2014-05-19 22:51:35 +02:00
|
|
|
WEBKIT_DEPENDENCIES += \
|
|
|
|
$(if $(BR_PACKAGE_XLIB_LIBXCOMPOSITE),xlib_libXcomposite) \
|
|
|
|
$(if $(BR_PACKAGE_XLIB_LIBXDAMAGE),xlib_libXdamage)
|
|
|
|
|
2013-06-07 15:18:50 +02:00
|
|
|
# webkit-disable-tests.patch changes configure.ac therefore autoreconf required
|
|
|
|
WEBKIT_AUTORECONF = YES
|
2014-09-27 21:32:43 +02:00
|
|
|
WEBKIT_AUTORECONF_OPTS = -I $(@D)/Source/autotools
|
2013-06-07 15:18:50 +02:00
|
|
|
|
2013-09-09 11:27:55 +02:00
|
|
|
# parallel make install deadlocks with make 3.81
|
2014-09-27 21:32:41 +02:00
|
|
|
WEBKIT_INSTALL_STAGING_OPTS = -j1 DESTDIR=$(STAGING_DIR) install
|
2014-09-27 21:32:40 +02:00
|
|
|
WEBKIT_INSTALL_TARGET_OPTS = -j1 DESTDIR=$(TARGET_DIR) install
|
2013-09-09 11:27:55 +02:00
|
|
|
|
2013-09-05 13:37:02 +02:00
|
|
|
# Does not build and it's disabled by default
|
|
|
|
# in newer releases
|
|
|
|
define DISABLE_INDEXED_DATABASE
|
|
|
|
$(SED) '/ENABLE_INDEXED_DATABASE/s:1:0:' \
|
2014-10-27 09:25:28 +01:00
|
|
|
$(@D)/Source/WebCore/GNUmakefile.features.am
|
2013-09-05 13:37:02 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
WEBKIT_PRE_CONFIGURE_HOOKS += DISABLE_INDEXED_DATABASE
|
|
|
|
|
2012-12-15 08:29:41 +01:00
|
|
|
# Give explicit path to icu-config, and silence gazillions of warnings
|
|
|
|
# with recent gcc versions.
|
|
|
|
WEBKIT_CONF_ENV = ac_cv_path_icu_config=$(STAGING_DIR)/usr/bin/icu-config \
|
2013-06-07 15:18:50 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -Wno-cast-align -Wno-sign-compare" \
|
2013-09-05 13:37:02 +02:00
|
|
|
CXXFLAGS="$(TARGET_CXXFLAGS) -Wno-cast-align -Wno-sign-compare" \
|
|
|
|
AR_FLAGS="cru"
|
2010-05-25 23:25:37 +02:00
|
|
|
|
2014-09-27 21:32:44 +02:00
|
|
|
WEBKIT_CONF_OPTS += \
|
2014-11-06 19:03:56 +01:00
|
|
|
--enable-dependency-tracking \
|
2013-06-07 15:18:50 +02:00
|
|
|
--with-gtk=2.0 \
|
|
|
|
--disable-geolocation \
|
|
|
|
--disable-webkit2 \
|
|
|
|
--disable-glibtest \
|
|
|
|
--disable-video \
|
|
|
|
--disable-tests
|
2009-06-29 12:54:06 +02:00
|
|
|
|
2013-06-07 15:18:50 +02:00
|
|
|
# Xorg Dependencies
|
2014-09-27 21:32:44 +02:00
|
|
|
WEBKIT_CONF_OPTS += --with-target=x11
|
2013-06-07 15:18:50 +02:00
|
|
|
WEBKIT_DEPENDENCIES += xlib_libXt
|
2008-03-06 19:28:48 +01:00
|
|
|
|
2014-05-19 22:51:35 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBEGL)$(BR2_PACKAGE_HAS_LIBGLES),yy)
|
2014-09-27 21:32:44 +02:00
|
|
|
WEBKIT_CONF_OPTS += --enable-gles2
|
2014-05-19 22:51:35 +02:00
|
|
|
WEBKIT_DEPENDENCIES += libegl libgles
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
WEBKIT_CONF_OPTS += --disable-gles2
|
2014-05-19 22:51:35 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
# gles/egl support is prefered over opengl by webkit configure
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
WEBKIT_CONF_OPTS += --with-acceleration-backend=opengl
|
2014-05-19 22:51:35 +02:00
|
|
|
WEBKIT_DEPENDENCIES += libgl
|
|
|
|
else
|
|
|
|
# OpenGL/glx is auto-detected due to the presence of gl.h/glx.h, which is not
|
|
|
|
# enough, so disable glx and the use of the OpenGL acceleration backend here
|
2014-09-27 21:32:44 +02:00
|
|
|
WEBKIT_CONF_OPTS += --disable-glx --with-acceleration-backend=none
|
2014-05-19 22:51:35 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|