2
1

libxslt.mk 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #############################################################
  2. #
  3. # libxslt
  4. #
  5. #############################################################
  6. LIBXSLT_VERSION = 1.1.26
  7. LIBXSLT_SITE = ftp://xmlsoft.org/libxslt
  8. LIBXSLT_INSTALL_STAGING = YES
  9. # If we have enabled libgcrypt then use it, else disable crypto support.
  10. ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
  11. LIBXSLT_DEPENDENCIES_EXTRA=libgcrypt
  12. else
  13. LIBXSLT_XTRA_CONF_OPT = --without-crypto
  14. endif
  15. LIBXSLT_CONF_OPT = --with-gnu-ld $(LIBXSLT_XTRA_CONF_OPT) --without-debug \
  16. --without-python --with-libxml-prefix=$(STAGING_DIR)/usr/
  17. LIBXSLT_DEPENDENCIES = libxml2 $(LIBXSLT_DEPENDENCIES_EXTRA)
  18. HOST_LIBXSLT_CONF_OPT = --without-debug --without-python --without-crypto
  19. HOST_LIBXSLT_DEPENDENCIES = host-libxml2
  20. define LIBXSLT_XSLT_CONFIG_FIXUP
  21. $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xslt-config
  22. $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xslt-config
  23. $(SED) "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" $(STAGING_DIR)/usr/bin/xslt-config
  24. endef
  25. LIBXSLT_POST_INSTALL_STAGING_HOOKS += LIBXSLT_XSLT_CONFIG_FIXUP
  26. define LIBXSLT_REMOVE_CONFIG_SCRIPTS
  27. $(RM) -f $(TARGET_DIR)/usr/bin/xslt-config
  28. endef
  29. ifneq ($(BR2_HAVE_DEVFILES),y)
  30. LIBXSLT_POST_INSTALL_TARGET_HOOKS += LIBXSLT_REMOVE_CONFIG_SCRIPTS
  31. endif
  32. $(eval $(call AUTOTARGETS,package,libxslt))
  33. $(eval $(call AUTOTARGETS,package,libxslt,host))