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.

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