libxslt.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. HOST_LIBXSLT_DEPENDENCIES = host-libxml2
  28. $(eval $(call AUTOTARGETS,package,libxslt))
  29. $(eval $(call AUTOTARGETS,package,libxslt,host))
  30. $(LIBXSLT_HOOK_POST_INSTALL):
  31. $(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xslt-config
  32. $(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/xslt-config
  33. $(SED) "s,^includedir=.*,includedir=\'$(STAGING_DIR)/usr/include\',g" $(STAGING_DIR)/usr/bin/xslt-config
  34. touch $@