Commit based upon d6442850bde61f0c3e7e2ae3247b4a856073c5e0
[librecmc/package-feed.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.1.4
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=@APACHE/xerces/c/3/sources
16 PKG_MD5SUM:=9973cc79481803f8b6652c52faf5195d963f50d209d4f681ec97e2aa014b6241
17 PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
18
19 PKG_LICENSE:=Apache-2.0
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_BUILD_PARALLEL:=1
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/uclibc++.mk
27 include $(INCLUDE_DIR)/nls.mk
28 include $(INCLUDE_DIR)/package.mk
29
30 CONFIGURE_ARGS += \
31         --disable-pretty-make \
32         --enable-transcoder-iconv \
33         --enable-netaccessor-socket \
34         --enable-msgloader-inmemory
35
36 TARGET_LDFLAGS += \
37         -lm
38
39 define Package/libxerces-c
40   SECTION:=libs
41   CATEGORY:=Libraries
42   TITLE:=Validating XML parser library for C++
43   URL:=http://xerces.apache.org/
44   DEPENDS:=$(CXX_DEPENDS) $(ICONV_DEPENDS) +libc +libpthread
45 endef
46
47 define Package/libxerces-c-samples
48   SECTION:=libs
49   CATEGORY:=Libraries
50   TITLE:=Validating XML parser library for C++ (samples)
51   URL:=http://xerces.apache.org/
52   DEPENDS:=+libxerces-c
53 endef
54
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
67 define Package/libxerces-c-samples/description
68   Validating XML parser library for C++ (samples)
69 endef
70
71 define Build/InstallDev
72         $(INSTALL_DIR) $(1)/usr/include/xercesc/
73         $(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/
74         $(INSTALL_DIR) $(1)/usr/lib
75         $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c.a,libxerces-c-3.1.so,libxerces-c.so} $(1)/usr/lib/
76         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/
77         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
78 endef
79
80 define Package/libxerces-c/install
81         $(INSTALL_DIR) $(1)/usr/lib
82         $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libxerces-c-3.1.so,libxerces-c.so} $(1)/usr/lib/
83 endef
84
85 define Package/libxerces-c-samples/install
86         $(INSTALL_DIR) $(1)/usr/bin
87         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
88 endef
89
90 $(eval $(call BuildPackage,libxerces-c))
91 $(eval $(call BuildPackage,libxerces-c-samples))