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.

93 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.2
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@APACHE/xerces/c/3/sources
  13. PKG_HASH:=6daca3b23364d8d883dc77a73f681242f69389e3564543287ed3d073007e0a8e
  14. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  15. PKG_LICENSE:=Apache-2.0
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=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. --without-pic
  57. TARGET_CFLAGS += $(FPIC)
  58. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  59. define Build/InstallDev
  60. $(INSTALL_DIR) $(1)/usr/include/xercesc/
  61. $(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib/{*.a,*.so} $(1)/usr/lib/
  64. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
  66. endef
  67. define Package/libxerces-c/install
  68. $(INSTALL_DIR) $(1)/usr/lib
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib/
  70. endef
  71. define Package/libxerces-c-samples/install
  72. $(INSTALL_DIR) $(1)/usr/bin
  73. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  74. endef
  75. $(eval $(call BuildPackage,libxerces-c))
  76. $(eval $(call BuildPackage,libxerces-c-samples))