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.

165 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:=1
  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_INSTALL:=1
  21. PKG_BUILD_PARALLEL:=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. --enable-shared \
  57. --enable-static \
  58. --without-python \
  59. --without-crypto \
  60. --without-debug \
  61. --without-mem-debug \
  62. --without-debugger \
  63. --without-profiler \
  64. --without-plugins
  65. HOST_CONFIGURE_ARGS += \
  66. --with-libxml-prefix=$(STAGING_DIR_HOSTPKG) \
  67. --without-python \
  68. --without-crypto \
  69. --without-debug \
  70. --without-mem-debug \
  71. --without-debugger \
  72. --without-profiler \
  73. --without-plugins
  74. define Build/InstallDev/Xslt
  75. $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt \
  76. $(1)/usr/include/libexslt $(1)/usr/lib \
  77. $(1)/usr/lib/pkgconfig $(2)/share/aclocal
  78. $(INSTALL_BIN) \
  79. $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
  80. $(2)/bin/
  81. ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
  82. $(SED) \
  83. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  84. $(2)/bin/xslt-config
  85. $(INSTALL_DATA) \
  86. $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
  87. $(1)/usr/include/libxslt/
  88. $(CP) \
  89. $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
  90. $(1)/usr/lib/
  91. $(INSTALL_DATA) \
  92. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
  93. $(1)/usr/lib/pkgconfig/
  94. $(INSTALL_DATA) \
  95. $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
  96. $(2)/share/aclocal
  97. endef
  98. define Build/InstallDev/Exslt
  99. $(INSTALL_DIR) $(1)/usr/include/libexslt $(1)/usr/lib/pkgconfig
  100. $(INSTALL_DATA) \
  101. $(PKG_INSTALL_DIR)/usr/include/libexslt/* \
  102. $(1)/usr/include/libexslt/
  103. $(CP) \
  104. $(PKG_INSTALL_DIR)/usr/lib/libexslt.{la,a,so*} \
  105. $(1)/usr/lib/
  106. $(INSTALL_DATA) \
  107. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libexslt.pc \
  108. $(1)/usr/lib/pkgconfig/
  109. endef
  110. define Build/InstallDev
  111. $(if $(CONFIG_PACKAGE_libxslt),$(call Build/InstallDev/Xslt,$(1),$(2)))
  112. $(if $(CONFIG_PACKAGE_libexslt),$(call Build/InstallDev/Exslt,$(1),$(2)))
  113. endef
  114. define Package/libxslt/install
  115. $(INSTALL_DIR) $(1)/usr/lib
  116. $(CP) \
  117. $(PKG_INSTALL_DIR)/usr/lib/libxslt.so* \
  118. $(1)/usr/lib/
  119. endef
  120. define Package/libexslt/install
  121. $(INSTALL_DIR) $(1)/usr/lib
  122. $(CP) \
  123. $(PKG_INSTALL_DIR)/usr/lib/libexslt.so* \
  124. $(1)/usr/lib/
  125. endef
  126. define Package/xsltproc/install
  127. $(INSTALL_DIR) $(1)/usr/bin
  128. $(INSTALL_BIN) \
  129. $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
  130. $(1)/usr/bin/
  131. endef
  132. $(eval $(call BuildPackage,libxslt))
  133. $(eval $(call BuildPackage,libexslt))
  134. $(eval $(call BuildPackage,xsltproc))
  135. $(eval $(call HostBuild))