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.

164 lines
3.6 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:=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:=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-plugins
  64. HOST_CONFIGURE_ARGS += \
  65. --with-libxml-prefix=$(STAGING_DIR_HOSTPKG) \
  66. --without-python \
  67. --without-crypto \
  68. --without-debug \
  69. --without-mem-debug \
  70. --without-debugger \
  71. --without-profiler \
  72. --without-plugins
  73. define Build/InstallDev/Xslt
  74. $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt \
  75. $(1)/usr/include/libexslt $(1)/usr/lib \
  76. $(1)/usr/lib/pkgconfig $(2)/share/aclocal
  77. $(INSTALL_BIN) \
  78. $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
  79. $(2)/bin/
  80. ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
  81. $(SED) \
  82. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  83. $(2)/bin/xslt-config
  84. $(INSTALL_DATA) \
  85. $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
  86. $(1)/usr/include/libxslt/
  87. $(CP) \
  88. $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
  89. $(1)/usr/lib/
  90. $(INSTALL_DATA) \
  91. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
  92. $(1)/usr/lib/pkgconfig/
  93. $(INSTALL_DATA) \
  94. $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
  95. $(2)/share/aclocal
  96. endef
  97. define Build/InstallDev/Exslt
  98. $(INSTALL_DIR) $(1)/usr/include/libexslt $(1)/usr/lib/pkgconfig
  99. $(INSTALL_DATA) \
  100. $(PKG_INSTALL_DIR)/usr/include/libexslt/* \
  101. $(1)/usr/include/libexslt/
  102. $(CP) \
  103. $(PKG_INSTALL_DIR)/usr/lib/libexslt.{la,a,so*} \
  104. $(1)/usr/lib/
  105. $(INSTALL_DATA) \
  106. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libexslt.pc \
  107. $(1)/usr/lib/pkgconfig/
  108. endef
  109. define Build/InstallDev
  110. $(if $(CONFIG_PACKAGE_libxslt),$(call Build/InstallDev/Xslt,$(1),$(2)))
  111. $(if $(CONFIG_PACKAGE_libexslt),$(call Build/InstallDev/Exslt,$(1),$(2)))
  112. endef
  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))