libxslt.mk 1.4 KB

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