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:=3
  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. define Package/libxslt
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. DEPENDS:=+libxml2
  30. TITLE:=Gnome XSLT library
  31. URL:=http://xmlsoft.org/XSLT/
  32. endef
  33. define Package/libxslt/description
  34. A library for XML transformation using XSLT.
  35. endef
  36. define Package/libexslt
  37. SECTION:=libs
  38. CATEGORY:=Libraries
  39. DEPENDS:=+libxslt
  40. TITLE:=Gnome XSLT library Extension
  41. URL:=http://xmlsoft.org/XSLT/EXSLT/
  42. endef
  43. define Package/libexslt/description
  44. An extension for XSLT.
  45. endef
  46. define Package/xsltproc
  47. SECTION:=utils
  48. CATEGORY:=Utilities
  49. DEPENDS:=+libxslt +PACKAGE_xsltproc:libexslt
  50. TITLE:=Gnome XSLT xsltproc Utility
  51. URL:=http://xmlsoft.org/XSLT/
  52. endef
  53. define Package/xsltproc/description
  54. XSLT XML transformation utility.
  55. endef
  56. CONFIGURE_ARGS += \
  57. --enable-shared \
  58. --enable-static \
  59. --without-python \
  60. --without-crypto \
  61. --without-debug \
  62. --without-mem-debug \
  63. --without-debugger \
  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))