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.

105 lines
3.0 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 += \
  25. --disable-pretty-make \
  26. --enable-transcoder-iconv \
  27. --enable-netaccessor-socket \
  28. --enable-msgloader-inmemory
  29. TARGET_CFLAGS += \
  30. -I$(STAGING_DIR)/usr/lib/libiconv-full/include
  31. TARGET_CPPFLAGS += \
  32. -I$(STAGING_DIR)/usr/lib/libiconv-full/include
  33. TARGET_LDFLAGS += \
  34. -L$(STAGING_DIR)/usr/lib/libiconv-full/lib \
  35. -lm
  36. define Package/libxerces-c
  37. SECTION:=libs
  38. CATEGORY:=Libraries
  39. TITLE:=Validating XML parser library for C++
  40. URL:=http://xerces.apache.org/
  41. DEPENDS:=$(CXX_DEPENDS) +libc +libiconv +libpthread
  42. endef
  43. define Package/libxerces-c-samples
  44. SECTION:=libs
  45. CATEGORY:=Libraries
  46. TITLE:=Validating XML parser library for C++ (samples)
  47. URL:=http://xerces.apache.org/
  48. DEPENDS:=+libxerces-c
  49. endef
  50. define Build/Configure
  51. (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \
  52. ./reconf;)
  53. $(call Build/Configure/Default)
  54. endef
  55. define Package/libxerces-c/description
  56. Xerces-C++ is a validating XML parser written in a portable subset of
  57. C++. Xerces-C++ makes it easy to give your application the ability
  58. to read and write XML data. A shared library is provided for parsing,
  59. generating, manipulating, and validating XML documents. Xerces-C++ is
  60. faithful to the XML 1.0 recommendation and associated standards (DOM
  61. 1.0, DOM 2.0, SAX 1.0, SAX 2.0, Namespaces, XML Schema Part 1 and
  62. Part 2). It also provides experimental implementations of XML 1.1
  63. and DOM Level 3.0. The parser provides high performance, modularity,
  64. and scalability.
  65. endef
  66. define Package/libxerces-c-samples/description
  67. Validating XML parser library for C++ (samples)
  68. endef
  69. define Build/InstallDev
  70. $(INSTALL_DIR) $(1)/usr/include/xercesc/
  71. $(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c.a,libxerces-c-3.1.so,libxerces-c.so} $(1)/usr/lib/
  74. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
  76. endef
  77. define Package/libxerces-c/install
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c-3.1.so,libxerces-c.so} $(1)/usr/lib/
  80. endef
  81. define Package/libxerces-c-samples/install
  82. $(INSTALL_DIR) $(1)/usr/bin
  83. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
  84. endef
  85. $(eval $(call BuildPackage,libxerces-c))
  86. $(eval $(call BuildPackage,libxerces-c-samples))