1################################################################################ 2# 3# libxml2 4# 5################################################################################ 6 7LIBXML2_VERSION_MAJOR = 2.9 8LIBXML2_VERSION = $(LIBXML2_VERSION_MAJOR).14 9LIBXML2_SOURCE = libxml2-$(LIBXML2_VERSION).tar.xz 10LIBXML2_SITE = \ 11 http://ftp.gnome.org/pub/gnome/sources/libxml2/$(LIBXML2_VERSION_MAJOR) 12LIBXML2_INSTALL_STAGING = YES 13LIBXML2_LICENSE = MIT 14LIBXML2_LICENSE_FILES = COPYING 15LIBXML2_CPE_ID_VENDOR = xmlsoft 16LIBXML2_CONFIG_SCRIPTS = xml2-config 17 18# relocation truncated to fit: R_68K_GOT16O 19ifeq ($(BR2_m68k_cf),y) 20LIBXML2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot" 21endif 22 23LIBXML2_CONF_OPTS = --with-gnu-ld --without-python --without-debug 24 25HOST_LIBXML2_DEPENDENCIES = host-pkgconf 26LIBXML2_DEPENDENCIES = host-pkgconf 27 28HOST_LIBXML2_CONF_OPTS = --without-zlib --without-lzma --without-python 29 30ifeq ($(BR2_PACKAGE_ICU),y) 31LIBXML2_DEPENDENCIES += icu 32LIBXML2_CONF_OPTS += --with-icu 33else 34LIBXML2_CONF_OPTS += --without-icu 35endif 36 37ifeq ($(BR2_PACKAGE_ZLIB),y) 38LIBXML2_DEPENDENCIES += zlib 39LIBXML2_CONF_OPTS += --with-zlib=$(STAGING_DIR)/usr 40else 41LIBXML2_CONF_OPTS += --without-zlib 42endif 43 44ifeq ($(BR2_PACKAGE_XZ),y) 45LIBXML2_DEPENDENCIES += xz 46LIBXML2_CONF_OPTS += --with-lzma 47else 48LIBXML2_CONF_OPTS += --without-lzma 49endif 50 51LIBXML2_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv) 52 53ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV),y) 54LIBXML2_CONF_OPTS += --with-iconv 55else 56LIBXML2_CONF_OPTS += --without-iconv 57endif 58 59define LIBXML2_CLEANUP_XML2CONF 60 rm -f $(TARGET_DIR)/usr/lib/xml2Conf.sh 61endef 62LIBXML2_POST_INSTALL_TARGET_HOOKS += LIBXML2_CLEANUP_XML2CONF 63 64$(eval $(autotools-package)) 65$(eval $(host-autotools-package)) 66 67# libxml2 for the host 68LIBXML2_HOST_BINARY = $(HOST_DIR)/bin/xmllint 69