You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
3.3 KiB

  1. #
  2. # Copyright (C) 2014 - 2018 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=libxslt
  9. PKG_VERSION:=1.1.33
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:= \
  13. http://xmlsoft.org/sources/ \
  14. ftp://fr.rpmfind.net/pub/libxml/
  15. PKG_HASH:=8e36605144409df979cab43d835002f63988f3dc94d5d3537c12796db90e38c8
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_CPE_ID:=cpe:/a:xmlsoft:libxslt
  19. PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
  20. PKG_FIXUP:=autoreconf
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/package.mk
  23. define Package/libxslt
  24. SECTION:=libs
  25. CATEGORY:=Libraries
  26. DEPENDS:=+libxml2
  27. TITLE:=Gnome XSLT library
  28. URL:=http://xmlsoft.org/XSLT/
  29. endef
  30. define Package/libxslt/description
  31. A library for XML transformation using XSLT.
  32. endef
  33. define Package/libexslt
  34. SECTION:=libs
  35. CATEGORY:=Libraries
  36. DEPENDS:=+libxslt
  37. TITLE:=Gnome XSLT library Extension
  38. URL:=http://xmlsoft.org/XSLT/EXSLT/
  39. endef
  40. define Package/libexslt/description
  41. An extension for XSLT.
  42. endef
  43. define Package/xsltproc
  44. SECTION:=utils
  45. CATEGORY:=Utilities
  46. DEPENDS:=+libxslt +PACKAGE_xsltproc:libexslt
  47. TITLE:=Gnome XSLT xsltproc Utility
  48. URL:=http://xmlsoft.org/XSLT/
  49. endef
  50. define Package/xsltproc/description
  51. XSLT XML transformation utility.
  52. endef
  53. CONFIGURE_ARGS+= \
  54. --disable-silent-rules \
  55. --enable-shared \
  56. --enable-static \
  57. --without-python \
  58. --without-crypto \
  59. --without-debug \
  60. --without-mem-debug \
  61. --without-debugger \
  62. define Build/InstallDev/Xslt
  63. $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt \
  64. $(1)/usr/include/libexslt $(1)/usr/lib \
  65. $(1)/usr/lib/pkgconfig $(2)/share/aclocal
  66. $(INSTALL_BIN) \
  67. $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
  68. $(2)/bin/
  69. ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
  70. $(SED) \
  71. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  72. $(2)/bin/xslt-config
  73. $(INSTALL_DATA) \
  74. $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
  75. $(1)/usr/include/libxslt/
  76. $(CP) \
  77. $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
  78. $(1)/usr/lib/
  79. $(INSTALL_DATA) \
  80. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
  81. $(1)/usr/lib/pkgconfig/
  82. $(INSTALL_DATA) \
  83. $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
  84. $(2)/share/aclocal
  85. endef
  86. define Build/InstallDev/Exslt
  87. $(INSTALL_DIR) $(1)/usr/include/libexslt $(1)/usr/lib/pkgconfig
  88. $(INSTALL_DATA) \
  89. $(PKG_INSTALL_DIR)/usr/include/libexslt/* \
  90. $(1)/usr/include/libexslt/
  91. $(CP) \
  92. $(PKG_INSTALL_DIR)/usr/lib/libexslt.{la,a,so*} \
  93. $(1)/usr/lib/
  94. $(INSTALL_DATA) \
  95. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libexslt.pc \
  96. $(1)/usr/lib/pkgconfig/
  97. endef
  98. define Build/InstallDev
  99. $(if $(CONFIG_PACKAGE_libxslt),$(call Build/InstallDev/Xslt,$(1),$(2)))
  100. $(if $(CONFIG_PACKAGE_libexslt),$(call Build/InstallDev/Exslt,$(1),$(2)))
  101. endef
  102. define Package/libxslt/install
  103. $(INSTALL_DIR) $(1)/usr/lib
  104. $(CP) \
  105. $(PKG_INSTALL_DIR)/usr/lib/libxslt.so* \
  106. $(1)/usr/lib/
  107. endef
  108. define Package/libexslt/install
  109. $(INSTALL_DIR) $(1)/usr/lib
  110. $(CP) \
  111. $(PKG_INSTALL_DIR)/usr/lib/libexslt.so* \
  112. $(1)/usr/lib/
  113. endef
  114. define Package/xsltproc/install
  115. $(INSTALL_DIR) $(1)/usr/bin
  116. $(INSTALL_BIN) \
  117. $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
  118. $(1)/usr/bin/
  119. endef
  120. $(eval $(call BuildPackage,libxslt))
  121. $(eval $(call BuildPackage,libexslt))
  122. $(eval $(call BuildPackage,xsltproc))