2015-01-24 23:18:17 +00:00
|
|
|
#
|
2016-03-14 16:36:50 +00:00
|
|
|
# Copyright (C) 2015-2016 OpenWrt.org
|
2015-01-24 23:18:17 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2016-10-12 11:47:13 +00:00
|
|
|
PKG_NAME:=xerces-c
|
2022-11-06 19:54:50 +00:00
|
|
|
PKG_VERSION:=3.2.4
|
|
|
|
PKG_RELEASE:=1
|
2015-01-24 23:18:17 +00:00
|
|
|
|
2016-10-12 11:47:13 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
|
|
|
PKG_SOURCE_URL:=@APACHE/xerces/c/3/sources
|
2022-11-06 19:54:50 +00:00
|
|
|
PKG_HASH:=075bc57940da0f9be6dd183c550c8ce0b9833e4550dc382048377a1a5e3b2bd9
|
2015-01-24 23:18:17 +00:00
|
|
|
|
2019-05-10 18:40:47 +00:00
|
|
|
PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
|
2015-01-24 23:18:17 +00:00
|
|
|
PKG_LICENSE:=Apache-2.0
|
|
|
|
PKG_LICENSE_FILES:=LICENSE
|
|
|
|
|
2015-03-31 17:27:16 +00:00
|
|
|
include $(INCLUDE_DIR)/nls.mk
|
2015-01-24 23:18:17 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2015-01-24 23:18:17 +00:00
|
|
|
|
2019-04-21 23:48:49 +00:00
|
|
|
define Package/libxerces-c/Default
|
2015-01-24 23:18:17 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=Validating XML parser library for C++
|
2019-04-21 23:48:49 +00:00
|
|
|
URL:=https://xerces.apache.org/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libxerces-c
|
|
|
|
$(call Package/libxerces-c/Default)
|
|
|
|
DEPENDS:=$(ICONV_DEPENDS) +libstdcpp
|
2015-01-24 23:18:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libxerces-c-samples
|
2019-04-21 23:48:49 +00:00
|
|
|
$(call Package/libxerces-c/Default)
|
|
|
|
TITLE+= (samples)
|
|
|
|
DEPENDS+=+libxerces-c
|
2015-01-24 23:18:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libxerces-c/description
|
|
|
|
Xerces-C++ is a validating XML parser written in a portable subset of
|
|
|
|
C++. Xerces-C++ makes it easy to give your application the ability
|
|
|
|
to read and write XML data. A shared library is provided for parsing,
|
|
|
|
generating, manipulating, and validating XML documents. Xerces-C++ is
|
|
|
|
faithful to the XML 1.0 recommendation and associated standards (DOM
|
|
|
|
1.0, DOM 2.0, SAX 1.0, SAX 2.0, Namespaces, XML Schema Part 1 and
|
|
|
|
Part 2). It also provides experimental implementations of XML 1.1
|
|
|
|
and DOM Level 3.0. The parser provides high performance, modularity,
|
|
|
|
and scalability.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libxerces-c-samples/description
|
|
|
|
Validating XML parser library for C++ (samples)
|
|
|
|
endef
|
|
|
|
|
2020-07-04 20:53:18 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_ICU=ON \
|
|
|
|
-Dmessage-loader=inmemory \
|
|
|
|
-Dnetwork-accessor=socket \
|
|
|
|
-Dtranscoder=iconv
|
2019-04-21 23:48:49 +00:00
|
|
|
|
2015-01-24 23:18:17 +00:00
|
|
|
define Build/InstallDev
|
2020-07-04 20:53:18 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/xercesc
|
2015-01-24 23:18:17 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2020-07-04 20:53:18 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/cmake/XercesC
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/cmake/XercesC/* $(1)/usr/lib/cmake/XercesC
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
2015-01-24 23:18:17 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc
|
2020-07-14 04:53:54 +00:00
|
|
|
$(SED) 's,/usr/include,$$$${prefix}/include,g' $(1)/usr/lib/pkgconfig/xerces-c.pc
|
|
|
|
$(SED) 's,/usr/lib,$$$${exec_prefix}/lib,g' $(1)/usr/lib/pkgconfig/xerces-c.pc
|
2015-01-24 23:18:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libxerces-c/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2019-04-21 23:48:49 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so $(1)/usr/lib/
|
2015-01-24 23:18:17 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libxerces-c-samples/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libxerces-c))
|
|
|
|
$(eval $(call BuildPackage,libxerces-c-samples))
|