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.7 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_MAIN_VER:=3.2
  10. PKG_VERSION:=3.2.2
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  13. PKG_SOURCE_URL:=@APACHE/xerces/c/3/sources
  14. PKG_HASH:=6daca3b23364d8d883dc77a73f681242f69389e3564543287ed3d073007e0a8e
  15. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  16. PKG_LICENSE:=Apache-2.0
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_BUILD_PARALLEL:=1
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/uclibc++.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. include $(INCLUDE_DIR)/package.mk
  24. CONFIGURE_ARGS += \
  25. --disable-pretty-make \
  26. --enable-transcoder-iconv \
  27. --enable-netaccessor-socket \
  28. --enable-msgloader-inmemory
  29. TARGET_LDFLAGS += \
  30. -lm
  31. define Package/libxerces-c
  32. SECTION:=libs
  33. CATEGORY:=Libraries
  34. TITLE:=Validating XML parser library for C++
  35. URL:=http://xerces.apache.org/
  36. DEPENDS:=$(CXX_DEPENDS) $(ICONV_DEPENDS) +libc +libpthread
  37. endef
  38. define Package/libxerces-c-samples
  39. SECTION:=libs
  40. CATEGORY:=Libraries
  41. TITLE:=Validating XML parser library for C++ (samples)
  42. URL:=http://xerces.apache.org/
  43. DEPENDS:=+libxerces-c
  44. endef
  45. define Package/libxerces-c/description
  46. Xerces-C++ is a validating XML parser written in a portable subset of
  47. C++. Xerces-C++ makes it easy to give your application the ability
  48. to read and write XML data. A shared library is provided for parsing,
  49. generating, manipulating, and validating XML documents. Xerces-C++ is
  50. faithful to the XML 1.0 recommendation and associated standards (DOM
  51. 1.0, DOM 2.0, SAX 1.0, SAX 2.0, Namespaces, XML Schema Part 1 and
  52. Part 2). It also provides experimental implementations of XML 1.1
  53. and DOM Level 3.0. The parser provides high performance, modularity,
  54. and scalability.
  55. endef
  56. define Package/libxerces-c-samples/description
  57. Validating XML parser library for C++ (samples)
  58. endef
  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/{libxerces-c.a,libxerces-c-$(PKG_MAIN_VER).so,libxerces-c.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/{libxerces-c-$(PKG_MAIN_VER).so,libxerces-c.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))