1 ################################################################################
5 ################################################################################
7 LIBXML2_VERSION
= 2.9.4
8 LIBXML2_SITE
= ftp
://xmlsoft.org
/libxml2
9 LIBXML2_INSTALL_STAGING
= YES
11 LIBXML2_LICENSE_FILES
= COPYING
12 LIBXML2_CONFIG_SCRIPTS
= xml2-config
14 # relocation truncated to fit: R_68K_GOT16O
15 ifeq ($(BR2_m68k_cf
),y
)
16 LIBXML2_CONF_ENV
+= CFLAGS
="$(TARGET_CFLAGS) -mxgot"
19 LIBXML2_CONF_OPTS
= --with-gnu-ld
--without-python
--without-debug
21 HOST_LIBXML2_DEPENDENCIES
= host-pkgconf
22 LIBXML2_DEPENDENCIES
= host-pkgconf
24 HOST_LIBXML2_CONF_OPTS
= --without-zlib
--without-lzma
--without-python
26 ifeq ($(BR2_PACKAGE_ZLIB
),y
)
27 LIBXML2_DEPENDENCIES
+= zlib
28 LIBXML2_CONF_OPTS
+= --with-zlib
=$(STAGING_DIR
)/usr
30 LIBXML2_CONF_OPTS
+= --without-zlib
33 ifeq ($(BR2_PACKAGE_XZ
),y
)
34 LIBXML2_DEPENDENCIES
+= xz
35 LIBXML2_CONF_OPTS
+= --with-lzma
37 LIBXML2_CONF_OPTS
+= --without-lzma
40 LIBXML2_DEPENDENCIES
+= $(if
$(BR2_PACKAGE_LIBICONV
),libiconv
)
42 ifeq ($(BR2_ENABLE_LOCALE
)$(BR2_PACKAGE_LIBICONV
),y
)
43 LIBXML2_CONF_OPTS
+= --with-iconv
45 LIBXML2_CONF_OPTS
+= --without-iconv
48 $(eval
$(autotools-package
))
49 $(eval
$(host-autotools-package
))
51 # libxml2 for the host
52 LIBXML2_HOST_BINARY
= $(HOST_DIR
)/usr
/bin
/xmllint