pugixml: add
Needed for gerbera 1.5.0 Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
091de62e83
commit
8858aa2578
1 changed files with 53 additions and 0 deletions
53
libs/pugixml/Makefile
Normal file
53
libs/pugixml/Makefile
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
#
|
||||||
|
# This is free software, licensed under the GNU General Public License v2.
|
||||||
|
# See /LICENSE for more information.
|
||||||
|
#
|
||||||
|
|
||||||
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
|
PKG_NAME:=pugixml
|
||||||
|
PKG_VERSION:=1.10
|
||||||
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
PKG_SOURCE_URL:=https://github.com/zeux/pugixml/releases/download/v$(PKG_VERSION)
|
||||||
|
PKG_HASH:=55f399fbb470942410d348584dc953bcaec926415d3462f471ef350f29b5870a
|
||||||
|
|
||||||
|
PKG_MAINTAINER:=
|
||||||
|
PKG_LICENSE:=MIT
|
||||||
|
PKG_LICENSE_FILES:=LICENSE
|
||||||
|
|
||||||
|
CMAKE_INSTALL:=1
|
||||||
|
PKG_BUILD_PARALLEL:=1
|
||||||
|
|
||||||
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
include $(INCLUDE_DIR)/cmake.mk
|
||||||
|
|
||||||
|
define Package/pugixml
|
||||||
|
SECTION:=libs
|
||||||
|
CATEGORY:=Libraries
|
||||||
|
TITLE:=pugixml
|
||||||
|
URL:=https://github.com/zeux/pugixml
|
||||||
|
DEPENDS:=+libstdcpp
|
||||||
|
endef
|
||||||
|
|
||||||
|
define Package/pugixml/description
|
||||||
|
pugixml is a C++ XML processing library, which consists of a DOM-like interface
|
||||||
|
with rich traversal/modification capabilities, an extremely fast XML parser which
|
||||||
|
constructs the DOM tree from an XML file/buffer, and an XPath 1.0 implementation
|
||||||
|
for complex data-driven tree queries. Full Unicode support is also available,
|
||||||
|
with Unicode interface variants and conversions between different Unicode encodings
|
||||||
|
(which happen automatically during parsing/saving).
|
||||||
|
endef
|
||||||
|
|
||||||
|
CMAKE_OPTIONS += \
|
||||||
|
-DBUILD_SHARED_LIBS=ON
|
||||||
|
|
||||||
|
TARGET_CXXFLAGS += -flto
|
||||||
|
|
||||||
|
define Package/pugixml/install
|
||||||
|
$(INSTALL_DIR) $(1)/usr/lib/
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpugixml.so* $(1)/usr/lib/
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call BuildPackage,pugixml))
|
Loading…
Reference in a new issue