2 # Copyright (C) 2015-2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.xz
15 PKG_SOURCE_URL
:=@APACHE
/xerces
/c
/3/sources
16 PKG_HASH
:=12fc99a9fc1d1a79bd0e927b8b5637a576d6656f45b0d5e70ee3694d379cc149
18 PKG_MAINTAINER
:=Álvaro Fernández Rojas
<noltari@gmail.com
>
19 PKG_LICENSE
:=Apache-2.0
20 PKG_LICENSE_FILES
:=LICENSE
26 include $(INCLUDE_DIR
)/nls.mk
27 include $(INCLUDE_DIR
)/package.mk
29 define Package
/libxerces-c
/Default
32 TITLE
:=Validating XML parser library for C
++
33 URL
:=https
://xerces.apache.org
/
36 define Package
/libxerces-c
37 $(call Package
/libxerces-c
/Default
)
38 DEPENDS
:=$(ICONV_DEPENDS
) +libstdcpp
41 define Package
/libxerces-c-samples
42 $(call Package
/libxerces-c
/Default
)
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
,
59 define Package
/libxerces-c-samples
/description
60 Validating XML parser library for C
++ (samples
)
65 --enable-msgloader-inmemory \
66 --enable-netaccessor-socket \
67 --enable-transcoder-iconv \
70 TARGET_LDFLAGS
+= -Wl
,--gc-sections
,--as-needed
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
81 define Package
/libxerces-c
/install
82 $(INSTALL_DIR
) $(1)/usr
/lib
83 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
$(1)/usr
/lib
/
86 define Package
/libxerces-c-samples
/install
87 $(INSTALL_DIR
) $(1)/usr
/bin
88 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
91 $(eval
$(call BuildPackage
,libxerces-c
))
92 $(eval
$(call BuildPackage
,libxerces-c-samples
))