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.

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