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.

92 lines
2.6 KiB

  1. #
  2. # Copyright (C) 2015-2016 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:=xerces-c
  9. PKG_VERSION:=3.2.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@APACHE/xerces/c/3/sources
  13. PKG_HASH:=12fc99a9fc1d1a79bd0e927b8b5637a576d6656f45b0d5e70ee3694d379cc149
  14. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/nls.mk
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/libxerces-c/Default
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=Validating XML parser library for C++
  26. URL:=https://xerces.apache.org/
  27. endef
  28. define Package/libxerces-c
  29. $(call Package/libxerces-c/Default)
  30. DEPENDS:=$(ICONV_DEPENDS) +libstdcpp
  31. endef
  32. define Package/libxerces-c-samples
  33. $(call Package/libxerces-c/Default)
  34. TITLE+= (samples)
  35. DEPENDS+=+libxerces-c
  36. endef
  37. define Package/libxerces-c/description
  38. Xerces-C++ is a validating XML parser written in a portable subset of
  39. C++. Xerces-C++ makes it easy to give your application the ability
  40. to read and write XML data. A shared library is provided for parsing,
  41. generating, manipulating, and validating XML documents. Xerces-C++ is
  42. faithful to the XML 1.0 recommendation and associated standards (DOM
  43. 1.0, DOM 2.0, SAX 1.0, SAX 2.0, Namespaces, XML Schema Part 1 and
  44. Part 2). It also provides experimental implementations of XML 1.1
  45. and DOM Level 3.0. The parser provides high performance, modularity,
  46. and scalability.
  47. endef
  48. define Package/libxerces-c-samples/description
  49. Validating XML parser library for C++ (samples)
  50. endef
  51. CONFIGURE_ARGS += \
  52. --disable-rpath \
  53. --enable-msgloader-inmemory \
  54. --enable-netaccessor-socket \
  55. --enable-transcoder-iconv \
  56. --with-pic
  57. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  58. define Build/InstallDev
  59. $(INSTALL_DIR) $(1)/usr/include/xercesc/
  60. $(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/{*.a,*.so} $(1)/usr/lib/
  63. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
  65. endef
  66. define Package/libxerces-c/install
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib/
  69. endef
  70. define Package/libxerces-c-samples/install
  71. $(INSTALL_DIR) $(1)/usr/bin
  72. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  73. endef
  74. $(eval $(call BuildPackage,libxerces-c))
  75. $(eval $(call BuildPackage,libxerces-c-samples))