libxml2.mk 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #############################################################
  2. #
  3. # libxml2
  4. #
  5. #############################################################
  6. LIBXML2_VERSION = 2.7.8
  7. LIBXML2_SITE = ftp://xmlsoft.org/libxml2
  8. LIBXML2_INSTALL_STAGING = YES
  9. ifneq ($(BR2_LARGEFILE),y)
  10. LIBXML2_CONF_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS) -DNO_LARGEFILE_SOURCE"
  11. endif
  12. LIBXML2_CONF_OPT = --with-gnu-ld --enable-shared \
  13. --enable-static \
  14. --without-debugging --without-python \
  15. --without-threads
  16. define LIBXML2_STAGING_LIBXML2_CONFIG_FIXUP
  17. $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
  18. $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xml2-config
  19. endef
  20. LIBXML2_POST_INSTALL_STAGING_HOOKS += LIBXML2_STAGING_LIBXML2_CONFIG_FIXUP
  21. HOST_LIBXML2_DEPENDENCIES = host-pkg-config
  22. HOST_LIBXML2_CONF_OPT = \
  23. --enable-shared --without-debugging --without-python \
  24. --without-threads
  25. $(eval $(call AUTOTARGETS,package,libxml2))
  26. $(eval $(call AUTOTARGETS,package,libxml2,host))
  27. # libxml2 for the host
  28. LIBXML2_HOST_BINARY:=$(HOST_DIR)/usr/bin/xmllint