webkit.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #############################################################
  2. #
  3. # webkit
  4. #
  5. #############################################################
  6. WEBKIT_VERSION = r44552
  7. WEBKIT_SOURCE = WebKit-$(WEBKIT_VERSION).tar.bz2
  8. WEBKIT_SITE = http://nightly.webkit.org/files/trunk/src/
  9. WEBKIT_INSTALL_STAGING = YES
  10. WEBKIT_INSTALL_TARGET = YES
  11. WEBKIT_LIBTOOL_PATCH = NO
  12. WEBKIT_DEPENDENCIES = host-flex host-gperf icu curl libxml2 libxslt \
  13. libgtk2 sqlite enchant libsoup
  14. ifeq ($(BR2_PACKAGE_WEBKIT_X11),y)
  15. WEBKIT_CONF_OPT = --with-target=x11
  16. endif
  17. ifeq ($(BR2_PACKAGE_WEBKIT_DIRECTFB),y)
  18. WEBKIT_CONF_OPT = --with-target=directfb
  19. endif
  20. WEBKIT_CONF_OPT += --disable-video
  21. define WEBKIT_AUTOGEN_PATCH
  22. $(SED) 's%ACLOCAL_FLAGS=.*%ACLOCAL_FLAGS="-I autotools -I $(STAGING_DIR)/usr/share/aclocal"%' $(WEBKIT_DIR)/autogen.sh
  23. $(SED) 's/AUTOMAKE_FLAGS=.*/AUTOMAKE_FLAGS="--foreign --add-missing --copy"/' $(WEBKIT_DIR)/autogen.sh
  24. $(SED) 's/LIBTOOLIZE_FLAGS=.*/LIBTOOLIZE_FLAGS="--force --automake --copy"/' $(WEBKIT_DIR)/autogen.sh
  25. cp package/webkit/gtk-doc.make $(WEBKIT_DIR)/
  26. # Don't run the configure step yet
  27. cd $(WEBKIT_DIR); $(HOST_CONFIGURE_OPTS) AUTOGEN_CONFIGURE_ARGS=--version ./autogen.sh
  28. endef
  29. WEBKIT_POST_EXTRACT_HOOKS += WEBKIT_AUTOGEN_PATCH
  30. $(eval $(call AUTOTARGETS,package,webkit))