From e5afac06fa075e044be1583646398be7cc480ae3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Sun, 25 Jan 2015 00:18:17 +0100 Subject: [PATCH] libxerces-c: add new package MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- libs/libxerces-c/Makefile | 95 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 libs/libxerces-c/Makefile diff --git a/libs/libxerces-c/Makefile b/libs/libxerces-c/Makefile new file mode 100644 index 0000000000..44885378f1 --- /dev/null +++ b/libs/libxerces-c/Makefile @@ -0,0 +1,95 @@ +# +# Copyright (C) 2015 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=libxerces-c +PKG_VERSION:=3.1.1 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=git://git.apache.org/xerces-c.git +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=Xerces-C_3_1_1 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_MAINTAINER:=Álvaro Fernández Rojas + +PKG_LICENSE:=Apache-2.0 +PKG_LICENSE_FILES:=LICENSE + +PKG_BUILD_PARALLEL:=1 +PKG_FIXUP:=libtool +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/uclibc++.mk +include $(INCLUDE_DIR)/package.mk + +CONFIGURE_ARGS += --disable-pretty-make +TARGET_LDFLAGS += -lm + +define Package/libxerces-c + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Validating XML parser library for C++ + URL:=http://xerces.apache.org/ + DEPENDS:=$(CXX_DEPENDS) +libc +libpthread +endef + +define Package/libxerces-c-samples + SECTION:=libs + CATEGORY:=Libraries + TITLE:=Validating XML parser library for C++ (samples) + URL:=http://xerces.apache.org/ + DEPENDS:=+libxerces-c +endef + +define Build/Configure + (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH); \ + ./reconf;) + $(call Build/Configure/Default) +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 + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/xercesc/ + $(CP) $(PKG_INSTALL_DIR)/usr/include/xercesc/* $(1)/usr/include/xercesc/ + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c.a $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c-3.1.so $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c.so $(1)/usr/lib/ + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/xerces-c.pc $(1)/usr/lib/pkgconfig/xerces-c.pc +endef + +define Package/libxerces-c/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c-3.1.so $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxerces-c.so $(1)/usr/lib/ +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)) -- 2.30.2