libv4l: update to 1.22.1
[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.4
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:=075bc57940da0f9be6dd183c550c8ce0b9833e4550dc382048377a1a5e3b2bd9
17
18 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
19 PKG_LICENSE:=Apache-2.0
20 PKG_LICENSE_FILES:=LICENSE
21
22 include $(INCLUDE_DIR)/nls.mk
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/cmake.mk
25
26 define Package/libxerces-c/Default
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=Validating XML parser library for C++
30 URL:=https://xerces.apache.org/
31 endef
32
33 define Package/libxerces-c
34 $(call Package/libxerces-c/Default)
35 DEPENDS:=$(ICONV_DEPENDS) +libstdcpp
36 endef
37
38 define Package/libxerces-c-samples
39 $(call Package/libxerces-c/Default)
40 TITLE+= (samples)
41 DEPENDS+=+libxerces-c
42 endef
43
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
56 define Package/libxerces-c-samples/description
57 Validating XML parser library for C++ (samples)
58 endef
59
60 CMAKE_OPTIONS += \
61 -DCMAKE_DISABLE_FIND_PACKAGE_ICU=ON \
62 -Dmessage-loader=inmemory \
63 -Dnetwork-accessor=socket \
64 -Dtranscoder=iconv
65
66 define Build/InstallDev
67 $(INSTALL_DIR) $(1)/usr/include/xercesc
68 $(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/
69 $(INSTALL_DIR) $(1)/usr/lib
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib/
71 $(INSTALL_DIR) $(1)/usr/lib/cmake/XercesC
72 $(CP) $(PKG_INSTALL_DIR)/usr/lib/cmake/XercesC/* $(1)/usr/lib/cmake/XercesC
73 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
75 $(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/xerces-c.pc
76 $(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/xerces-c.pc
77 endef
78
79 define Package/libxerces-c/install
80 $(INSTALL_DIR) $(1)/usr/lib
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib/
82 endef
83
84 define Package/libxerces-c-samples/install
85 $(INSTALL_DIR) $(1)/usr/bin
86 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
87 endef
88
89 $(eval $(call BuildPackage,libxerces-c))
90 $(eval $(call BuildPackage,libxerces-c-samples))