Makefile 2.7 KB

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