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