libxml2.mk 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ################################################################################
  2. #
  3. # libxml2
  4. #
  5. ################################################################################
  6. LIBXML2_VERSION = 2.9.9
  7. LIBXML2_SITE = ftp://xmlsoft.org/libxml2
  8. LIBXML2_INSTALL_STAGING = YES
  9. LIBXML2_LICENSE = MIT
  10. LIBXML2_LICENSE_FILES = COPYING
  11. LIBXML2_CONFIG_SCRIPTS = xml2-config
  12. # relocation truncated to fit: R_68K_GOT16O
  13. ifeq ($(BR2_m68k_cf),y)
  14. LIBXML2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -mxgot"
  15. endif
  16. LIBXML2_CONF_OPTS = --with-gnu-ld --without-python --without-debug
  17. HOST_LIBXML2_DEPENDENCIES = host-pkgconf
  18. LIBXML2_DEPENDENCIES = host-pkgconf
  19. HOST_LIBXML2_CONF_OPTS = --without-zlib --without-lzma --without-python
  20. ifeq ($(BR2_PACKAGE_ZLIB),y)
  21. LIBXML2_DEPENDENCIES += zlib
  22. LIBXML2_CONF_OPTS += --with-zlib=$(STAGING_DIR)/usr
  23. else
  24. LIBXML2_CONF_OPTS += --without-zlib
  25. endif
  26. ifeq ($(BR2_PACKAGE_XZ),y)
  27. LIBXML2_DEPENDENCIES += xz
  28. LIBXML2_CONF_OPTS += --with-lzma
  29. else
  30. LIBXML2_CONF_OPTS += --without-lzma
  31. endif
  32. LIBXML2_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
  33. ifeq ($(BR2_ENABLE_LOCALE)$(BR2_PACKAGE_LIBICONV),y)
  34. LIBXML2_CONF_OPTS += --with-iconv
  35. else
  36. LIBXML2_CONF_OPTS += --without-iconv
  37. endif
  38. $(eval $(autotools-package))
  39. $(eval $(host-autotools-package))
  40. # libxml2 for the host
  41. LIBXML2_HOST_BINARY = $(HOST_DIR)/bin/xmllint