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
:=075bc57940da0f9be6dd183c550c8ce0b9833e4550dc382048377a1a5e3b2bd9
18 PKG_MAINTAINER
:=Álvaro Fernández Rojas
<noltari@gmail.com
>
19 PKG_LICENSE
:=Apache-2.0
20 PKG_LICENSE_FILES
:=LICENSE
22 include $(INCLUDE_DIR
)/nls.mk
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/cmake.mk
26 define Package
/libxerces-c
/Default
29 TITLE
:=Validating XML parser library for C
++
30 URL
:=https
://xerces.apache.org
/
33 define Package
/libxerces-c
34 $(call Package
/libxerces-c
/Default
)
35 DEPENDS
:=$(ICONV_DEPENDS
) +libstdcpp
38 define Package
/libxerces-c-samples
39 $(call Package
/libxerces-c
/Default
)
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
,
56 define Package
/libxerces-c-samples
/description
57 Validating XML parser library for C
++ (samples
)
61 -DCMAKE_DISABLE_FIND_PACKAGE_ICU
=ON \
62 -Dmessage-loader
=inmemory \
63 -Dnetwork-accessor
=socket \
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
79 define Package
/libxerces-c
/install
80 $(INSTALL_DIR
) $(1)/usr
/lib
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
$(1)/usr
/lib
/
84 define Package
/libxerces-c-samples
/install
85 $(INSTALL_DIR
) $(1)/usr
/bin
86 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
89 $(eval
$(call BuildPackage
,libxerces-c
))
90 $(eval
$(call BuildPackage
,libxerces-c-samples
))