2007-07-16 22:13:22 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# libxml2
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-03-29 17:42:12 +02:00
|
|
|
LIBXML2_VERSION = 2.7.7
|
2008-03-06 19:16:30 +01:00
|
|
|
LIBXML2_SOURCE = libxml2-sources-$(LIBXML2_VERSION).tar.gz
|
|
|
|
LIBXML2_SITE = ftp://xmlsoft.org/libxml2
|
|
|
|
LIBXML2_INSTALL_STAGING = YES
|
|
|
|
LIBXML2_INSTALL_TARGET = YES
|
2009-11-26 16:51:11 +01:00
|
|
|
#this is needed for version 2.7.4 and higher
|
|
|
|
LIBXML2_LIBTOOL_PATCH = NO
|
2009-01-30 14:54:42 +01:00
|
|
|
|
2008-06-30 15:16:18 +02:00
|
|
|
ifneq ($(BR2_LARGEFILE),y)
|
|
|
|
LIBXML2_CONF_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS) -DNO_LARGEFILE_SOURCE"
|
2009-11-23 13:11:00 +01:00
|
|
|
# the above doesn't work with shared config.cache
|
|
|
|
LIBXML2_USE_CONFIG_CACHE = NO
|
2008-06-30 15:16:18 +02:00
|
|
|
endif
|
|
|
|
|
2008-08-23 15:08:34 +02:00
|
|
|
LIBXML2_CONF_OPT = --with-gnu-ld --enable-shared \
|
2010-03-22 14:29:00 +01:00
|
|
|
--enable-static \
|
2008-03-06 19:16:30 +01:00
|
|
|
--without-debugging --without-python \
|
2010-03-22 14:29:00 +01:00
|
|
|
--without-threads
|
2008-03-06 19:16:30 +01:00
|
|
|
|
2009-11-03 00:10:24 +01:00
|
|
|
HOST_LIBXML2_DEPENDENCIES = host-pkg-config
|
|
|
|
|
|
|
|
HOST_LIBXML2_CONF_OPT = \
|
|
|
|
--enable-shared --without-debugging --without-python \
|
|
|
|
--without-threads
|
|
|
|
|
2008-03-06 19:16:30 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,libxml2))
|
2009-11-03 00:10:24 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,libxml2,host))
|
2008-06-20 23:45:27 +02:00
|
|
|
|
2009-01-30 14:54:42 +01:00
|
|
|
$(LIBXML2_HOOK_POST_INSTALL):
|
2008-08-28 12:56:38 +02:00
|
|
|
$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
|
|
|
|
$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
|
2010-05-05 12:09:36 +02:00
|
|
|
rm -rf $(TARGET_DIR)/usr/share/aclocal
|
2008-06-20 23:45:27 +02:00
|
|
|
touch $@
|
2009-04-29 09:13:20 +02:00
|
|
|
|
|
|
|
# libxml2 for the host
|
2009-11-03 00:10:24 +01:00
|
|
|
LIBXML2_HOST_BINARY:=$(HOST_DIR)/usr/bin/xmllint
|