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.

95 lines
2.8 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.1
  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_1
  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:=libtool
  21. PKG_INSTALL:=1
  22. include $(INCLUDE_DIR)/uclibc++.mk
  23. include $(INCLUDE_DIR)/package.mk
  24. CONFIGURE_ARGS += --disable-pretty-make
  25. TARGET_LDFLAGS += -lm
  26. define Package/libxerces-c
  27. SECTION:=libs
  28. CATEGORY:=Libraries
  29. TITLE:=Validating XML parser library for C++
  30. URL:=http://xerces.apache.org/
  31. DEPENDS:=$(CXX_DEPENDS) +libc +libpthread
  32. endef
  33. define Package/libxerces-c-samples
  34. SECTION:=libs
  35. CATEGORY:=Libraries
  36. TITLE:=Validating XML parser library for C++ (samples)
  37. URL:=http://xerces.apache.org/
  38. DEPENDS:=+libxerces-c
  39. endef
  40. define Build/Configure
  41. (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
  42. ./reconf;)
  43. $(call Build/Configure/Default)
  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 $(1)/usr/lib/
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c-3.1.so $(1)/usr/lib/
  65. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c.so $(1)/usr/lib/
  66. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
  68. endef
  69. define Package/libxerces-c/install
  70. $(INSTALL_DIR) $(1)/usr/lib
  71. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c-3.1.so $(1)/usr/lib/
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c.so $(1)/usr/lib/
  73. endef
  74. define Package/libxerces-c-samples/install
  75. $(INSTALL_DIR) $(1)/usr/bin
  76. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  77. endef
  78. $(eval $(call BuildPackage,libxerces-c))
  79. $(eval $(call BuildPackage,libxerces-c-samples))