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
:=9973cc79481803f8b6652c52faf5195d963f50d209d4f681ec97e2aa014b6241
17 PKG_MAINTAINER
:=Álvaro Fernández Rojas
<noltari@gmail.com
>
19 PKG_LICENSE
:=Apache-2.0
20 PKG_LICENSE_FILES
:=LICENSE
26 include $(INCLUDE_DIR
)/uclibc
++.mk
27 include $(INCLUDE_DIR
)/nls.mk
28 include $(INCLUDE_DIR
)/package.mk
31 --disable-pretty-make \
32 --enable-transcoder-iconv \
33 --enable-netaccessor-socket \
34 --enable-msgloader-inmemory
39 define Package
/libxerces-c
42 TITLE
:=Validating XML parser library for C
++
43 URL
:=http
://xerces.apache.org
/
44 DEPENDS
:=$(CXX_DEPENDS
) $(ICONV_DEPENDS
) +libc
+libpthread
47 define Package
/libxerces-c-samples
50 TITLE
:=Validating XML parser library for C
++ (samples
)
51 URL
:=http
://xerces.apache.org
/
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
,
67 define Package
/libxerces-c-samples
/description
68 Validating XML parser library for C
++ (samples
)
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
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
/
85 define Package
/libxerces-c-samples
/install
86 $(INSTALL_DIR
) $(1)/usr
/bin
87 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/* $(1)/usr
/bin
/
90 $(eval
$(call BuildPackage
,libxerces-c
))
91 $(eval
$(call BuildPackage
,libxerces-c-samples
))