summaryrefslogtreecommitdiffstats
path: root/package/webkit/webkit.mk
blob: 01baa277f4ef2713e94788ebb72fcb0819602f7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#############################################################
#
# webkit
#
#############################################################
WEBKIT_VERSION = r44552
WEBKIT_SOURCE = WebKit-$(WEBKIT_VERSION).tar.bz2
WEBKIT_SITE = http://nightly.webkit.org/files/trunk/src/

WEBKIT_INSTALL_STAGING = YES
WEBKIT_INSTALL_TARGET = YES
WEBKIT_LIBTOOL_PATCH = NO

WEBKIT_DEPENDENCIES = icu curl libxml2 libxslt libgtk2 sqlite enchant \
			libsoup

ifeq ($(BR2_PACKAGE_WEBKIT_X11),y)
WEBKIT_CONF_OPT = --with-target=x11
endif

ifeq ($(BR2_PACKAGE_WEBKIT_DIRECTFB),y)
WEBKIT_CONF_OPT = --with-target=directfb
endif

WEBKIT_CONF_OPT += --disable-video

define WEBKIT_AUTOGEN_PATCH
$(SED) 's/AUTOMAKE_FLAGS=.*/AUTOMAKE_FLAGS="--foreign --add-missing --copy"/' $(WEBKIT_DIR)/autogen.sh
$(SED) 's/LIBTOOLIZE_FLAGS=.*/LIBTOOLIZE_FLAGS="--force --automake --copy"/' $(WEBKIT_DIR)/autogen.sh
# Don't run the configure step yet
cd $(WEBKIT_DIR); AUTOGEN_CONFIGURE_ARGS=--version ./autogen.sh
endef

WEBKIT_POST_EXTRACT_HOOKS += WEBKIT_AUTOGEN_PATCH

$(eval $(call AUTOTARGETS,package,webkit))