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.

152 lines
3.3 KiB

  1. #
  2. # Copyright (C) 2014 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.28
  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_MD5SUM:=9667bf6f9310b957254fdcf6596600b7
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz>
  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. --enable-shared \
  54. --enable-static \
  55. --without-python \
  56. --without-crypto \
  57. --without-debug \
  58. --without-mem-debug \
  59. --without-debugger \
  60. TARGET_CFLAGS += $(FPIC)
  61. define Build/InstallDev/Xslt
  62. $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt \
  63. $(1)/usr/include/libexslt $(1)/usr/lib \
  64. $(1)/usr/lib/pkgconfig $(2)/share/aclocal
  65. $(INSTALL_BIN) \
  66. $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
  67. $(2)/bin/
  68. ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
  69. $(SED) \
  70. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  71. $(2)/bin/xslt-config
  72. $(INSTALL_DATA) \
  73. $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
  74. $(1)/usr/include/libxslt/
  75. $(CP) \
  76. $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
  77. $(1)/usr/lib/
  78. $(INSTALL_DATA) \
  79. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
  80. $(1)/usr/lib/pkgconfig/
  81. $(INSTALL_DATA) \
  82. $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
  83. $(2)/share/aclocal
  84. endef
  85. define Build/InstallDev/Exslt
  86. $(INSTALL_DIR) $(1)/usr/include/libexslt $(1)/usr/lib/pkgconfig
  87. $(INSTALL_DATA) \
  88. $(PKG_INSTALL_DIR)/usr/include/libexslt/* \
  89. $(1)/usr/include/libexslt/
  90. $(CP) \
  91. $(PKG_INSTALL_DIR)/usr/lib/libexslt.{la,a,so*} \
  92. $(1)/usr/lib/
  93. $(INSTALL_DATA) \
  94. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libexslt.pc \
  95. $(1)/usr/lib/pkgconfig/
  96. endef
  97. define Build/InstallDev
  98. $(if $(CONFIG_PACKAGE_libxslt),$(call Build/InstallDev/Xslt,$(1),$(2)))
  99. $(if $(CONFIG_PACKAGE_libexslt),$(call Build/InstallDev/Exslt,$(1),$(2)))
  100. endef
  101. define Package/libxslt/install
  102. $(INSTALL_DIR) $(1)/usr/lib
  103. $(CP) \
  104. $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* \
  105. $(1)/usr/lib/
  106. endef
  107. define Package/libexslt/install
  108. $(INSTALL_DIR) $(1)/usr/lib
  109. $(CP) \
  110. $(PKG_INSTALL_DIR)/usr/lib/libexslt.so.* \
  111. $(1)/usr/lib/
  112. endef
  113. define Package/xsltproc/install
  114. $(INSTALL_DIR) $(1)/usr/bin
  115. $(INSTALL_BIN) \
  116. $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
  117. $(1)/usr/bin/
  118. endef
  119. $(eval $(call BuildPackage,libxslt))
  120. $(eval $(call BuildPackage,libexslt))
  121. $(eval $(call BuildPackage,xsltproc))