libxslt.mk 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  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. $(DISABLE_NLS) $(DISABLE_IPV6) \
  20. --without-debugging --without-python \
  21. --without-threads \
  22. --with-libxml-include-prefix=$(STAGING_DIR)/usr/include/libxml2
  23. LIBXSLT_DEPENDENCIES = uclibc $(LIBXSLT_DEPENDENCIES_EXTRA)
  24. $(eval $(call AUTOTARGETS,package,libxslt))
  25. $(LIBXSLT_HOOK_POST_INSTALL):
  26. $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xslt-config
  27. $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xslt-config
  28. $(SED) "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" $(STAGING_DIR)/usr/bin/xslt-config
  29. touch $@