Merge pull request #12342 from PolynomialDivision/feature/add_dawn_node_exporter
[feed/packages.git] / libs / libxerces-c / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xerces-c
11 PKG_VERSION:=3.2.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@APACHE/xerces/c/3/sources
16 PKG_HASH:=12fc99a9fc1d1a79bd0e927b8b5637a576d6656f45b0d5e70ee3694d379cc149
17
18 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
19 PKG_LICENSE:=Apache-2.0
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25
26 include $(INCLUDE_DIR)/nls.mk
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libxerces-c/Default
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=Validating XML parser library for C++
33 URL:=https://xerces.apache.org/
34 endef
35
36 define Package/libxerces-c
37 $(call Package/libxerces-c/Default)
38 DEPENDS:=$(ICONV_DEPENDS) +libstdcpp
39 endef
40
41 define Package/libxerces-c-samples
42 $(call Package/libxerces-c/Default)
43 TITLE+= (samples)
44 DEPENDS+=+libxerces-c
45 endef
46
47 define Package/libxerces-c/description
48 Xerces-C++ is a validating XML parser written in a portable subset of
49 C++. Xerces-C++ makes it easy to give your application the ability
50 to read and write XML data. A shared library is provided for parsing,
51 generating, manipulating, and validating XML documents. Xerces-C++ is
52 faithful to the XML 1.0 recommendation and associated standards (DOM
53 1.0, DOM 2.0, SAX 1.0, SAX 2.0, Namespaces, XML Schema Part 1 and
54 Part 2). It also provides experimental implementations of XML 1.1
55 and DOM Level 3.0. The parser provides high performance, modularity,
56 and scalability.
57 endef
58
59 define Package/libxerces-c-samples/description
60 Validating XML parser library for C++ (samples)
61 endef
62
63 CONFIGURE_ARGS += \
64 --disable-rpath \
65 --enable-msgloader-inmemory \
66 --enable-netaccessor-socket \
67 --enable-transcoder-iconv \
68 --with-pic
69
70 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
71
72 define Build/InstallDev
73 $(INSTALL_DIR) $(1)/usr/include/xercesc/
74 $(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/
75 $(INSTALL_DIR) $(1)/usr/lib
76 $(CP) $(PKG_INSTALL_DIR)/usr/lib/{*.a,*.so} $(1)/usr/lib/
77 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
78 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
79 endef
80
81 define Package/libxerces-c/install
82 $(INSTALL_DIR) $(1)/usr/lib
83 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib/
84 endef
85
86 define Package/libxerces-c-samples/install
87 $(INSTALL_DIR) $(1)/usr/bin
88 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
89 endef
90
91 $(eval $(call BuildPackage,libxerces-c))
92 $(eval $(call BuildPackage,libxerces-c-samples))