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.7 KiB

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