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.

166 lines
3.7 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:=4
  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. HOST_BUILD_DEPENDS:=libxml2/host
  23. include $(INCLUDE_DIR)/package.mk
  24. include $(INCLUDE_DIR)/host-build.mk
  25. define Package/libxslt
  26. SECTION:=libs
  27. CATEGORY:=Libraries
  28. DEPENDS:=+libxml2
  29. TITLE:=Gnome XSLT library
  30. URL:=http://xmlsoft.org/XSLT/
  31. endef
  32. define Package/libxslt/description
  33. A library for XML transformation using XSLT.
  34. endef
  35. define Package/libexslt
  36. SECTION:=libs
  37. CATEGORY:=Libraries
  38. DEPENDS:=+libxslt
  39. TITLE:=Gnome XSLT library Extension
  40. URL:=http://xmlsoft.org/XSLT/EXSLT/
  41. endef
  42. define Package/libexslt/description
  43. An extension for XSLT.
  44. endef
  45. define Package/xsltproc
  46. SECTION:=utils
  47. CATEGORY:=Utilities
  48. DEPENDS:=+libxslt +PACKAGE_xsltproc:libexslt
  49. TITLE:=Gnome XSLT xsltproc Utility
  50. URL:=http://xmlsoft.org/XSLT/
  51. endef
  52. define Package/xsltproc/description
  53. XSLT XML transformation utility.
  54. endef
  55. CONFIGURE_ARGS+= \
  56. --disable-silent-rules \
  57. --enable-shared \
  58. --enable-static \
  59. --without-python \
  60. --without-crypto \
  61. --without-debug \
  62. --without-mem-debug \
  63. --without-debugger \
  64. define Build/InstallDev/Xslt
  65. $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt \
  66. $(1)/usr/include/libexslt $(1)/usr/lib \
  67. $(1)/usr/lib/pkgconfig $(2)/share/aclocal
  68. $(INSTALL_BIN) \
  69. $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
  70. $(2)/bin/
  71. ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
  72. $(SED) \
  73. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  74. $(2)/bin/xslt-config
  75. $(INSTALL_DATA) \
  76. $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
  77. $(1)/usr/include/libxslt/
  78. $(CP) \
  79. $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
  80. $(1)/usr/lib/
  81. $(INSTALL_DATA) \
  82. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
  83. $(1)/usr/lib/pkgconfig/
  84. $(INSTALL_DATA) \
  85. $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
  86. $(2)/share/aclocal
  87. endef
  88. define Build/InstallDev/Exslt
  89. $(INSTALL_DIR) $(1)/usr/include/libexslt $(1)/usr/lib/pkgconfig
  90. $(INSTALL_DATA) \
  91. $(PKG_INSTALL_DIR)/usr/include/libexslt/* \
  92. $(1)/usr/include/libexslt/
  93. $(CP) \
  94. $(PKG_INSTALL_DIR)/usr/lib/libexslt.{la,a,so*} \
  95. $(1)/usr/lib/
  96. $(INSTALL_DATA) \
  97. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libexslt.pc \
  98. $(1)/usr/lib/pkgconfig/
  99. endef
  100. define Build/InstallDev
  101. $(if $(CONFIG_PACKAGE_libxslt),$(call Build/InstallDev/Xslt,$(1),$(2)))
  102. $(if $(CONFIG_PACKAGE_libexslt),$(call Build/InstallDev/Exslt,$(1),$(2)))
  103. endef
  104. HOST_CONFIGURE_ARGS+= \
  105. --disable-silent-rules \
  106. --enable-static \
  107. --with-libxml-prefix=$(STAGING_DIR_HOSTPKG) \
  108. --without-python \
  109. --without-crypto \
  110. --without-debug \
  111. --without-mem-debug \
  112. --without-debugger
  113. define Package/libxslt/install
  114. $(INSTALL_DIR) $(1)/usr/lib
  115. $(CP) \
  116. $(PKG_INSTALL_DIR)/usr/lib/libxslt.so* \
  117. $(1)/usr/lib/
  118. endef
  119. define Package/libexslt/install
  120. $(INSTALL_DIR) $(1)/usr/lib
  121. $(CP) \
  122. $(PKG_INSTALL_DIR)/usr/lib/libexslt.so* \
  123. $(1)/usr/lib/
  124. endef
  125. define Package/xsltproc/install
  126. $(INSTALL_DIR) $(1)/usr/bin
  127. $(INSTALL_BIN) \
  128. $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
  129. $(1)/usr/bin/
  130. endef
  131. $(eval $(call BuildPackage,libxslt))
  132. $(eval $(call BuildPackage,libexslt))
  133. $(eval $(call BuildPackage,xsltproc))
  134. $(eval $(call HostBuild))