Commit 8a33bc3a authored by Jonathan Ben Avraham's avatar Jonathan Ben Avraham Committed by Thomas Petazzoni
Browse files

rapidxml: new package



[Thomas:
  - Rewrap Config.in help text
  - Indicate that the SHA256 hash has been locally calculated, and add
    the MD5 and SHA1 hashes from SourceForge.
  - Use downloads.sourceforge.net as the download site instead of
    garr.dl.sourceforge.net, in order to use the SourceForge mirrors
    properly, and be consistent with all other Buildroot packages
    downloading stuff from SourceForge.
  - Change the license from "MIT" to "Boost Software License 1.0 or
    MIT" as indicated by the license.txt file.
  - Change the <pkg>_EXTRACT_CMDS to remove the sub-directory created
    by the .zip file extraction, and simplify the staging installation
    step accordingly.]

Signed-off-by: default avatarJonathan Ben Avraham <yba@tkos.co.il>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent fa50d6c1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -918,6 +918,7 @@ menu "JSON/XML"
	source "package/libyaml/Config.in"
	source "package/mxml/Config.in"
	source "package/rapidjson/Config.in"
	source "package/rapidxml/Config.in"
	source "package/tinyxml/Config.in"
	source "package/tinyxml2/Config.in"
	source "package/xerces/Config.in"
+11 −0
Original line number Diff line number Diff line
config BR2_PACKAGE_RAPIDXML
	bool "rapidxml"
	help
	  RapidXml is an attempt to create the fastest XML parser
	  possible, while retaining useability, portability and
	  reasonable W3C compatibility. It is an in-situ parser with
	  parsing speed approaching speed of strlen function executed
	  on the same data.

	  http://sourceforge.net/projects/rapidxml/
	  https://en.wikipedia.org/wiki/RapidXml
+6 −0
Original line number Diff line number Diff line
# From https://sourceforge.net/projects/rapidxml/files/rapidxml/rapidxml%201.13/
sha1 f5fd4fbc5ad7e96045313697811d65ea8089a950 rapidxml-1.13.zip
md5 7b4b42c9331c90aded23bb55dc725d6a rapidxml-1.13.zip

# Locally calculated
sha256	c3f0b886374981bb20fabcf323d755db4be6dba42064599481da64a85f5b3571  rapidxml-1.13.zip
+27 −0
Original line number Diff line number Diff line
################################################################################
#
# rapidxml
#
################################################################################

RAPIDXML_VERSION = 1.13
RAPIDXML_SOURCE = rapidxml-$(RAPIDXML_VERSION).zip
RAPIDXML_SITE = http://downloads.sourceforge.net/project/rapidxml/rapidxml/rapidxml%20$(RAPIDXML_VERSION)/
RAPIDXML_LICENSE = Boost Software License 1.0 or MIT
RAPIDXML_LICENSE_FILES = license.txt

# C++ headers only
RAPIDXML_INSTALL_TARGET = NO
RAPIDXML_INSTALL_STAGING = YES

define RAPIDXML_EXTRACT_CMDS
	$(UNZIP) -d $(@D) $(DL_DIR)/$(RAPIDXML_SOURCE)
	mv $(@D)/rapidxml-$(RAPIDXML_VERSION)/* $(@D)/
	rmdir $(@D)/rapidxml-$(RAPIDXML_VERSION)
endef

define RAPIDXML_INSTALL_STAGING_CMDS
	cp -dpfr $(@D)/*hpp $(STAGING_DIR)/usr/include
endef

$(eval $(generic-package))