Files
haikuports/dev-libs/tinyxml/tinyxml-2.6.2.recipe
Humdinger a38db25c39 Changes in SUMMARY, DESCRIPTION and whitespace.
Removed the full-stop and repeating package name in SUMMARY.
Removed hard line breaks, broke up some very long paragraphs and
use bullet lists where possible.
All done by browsing through HaikuDepot. There may be (many) more left
in the whole haikuports repo...

Included 10 extended desriptions done by soyoye14 for GCI 2014
(https://www.google-melange.com/gci/task/view/google/gci2014/5240373098053632)

Removed/insert whitespace where it seems to be the custom in recipes.
Sometimes rearranged elements of a recipe (moving license and copyright
up, for example).
2015-01-12 19:23:51 +01:00

81 lines
2.2 KiB
Plaintext

SUMMARY="Small C++ XML Parser"
DESCRIPTION="
Tinyxml is a small simple, OS independent XML parser for the C++ language. \
It is a free open source software. Timyxml was first created to solve the common \
text I/O file problem. It parses the XML into a DOM-like tree and is able to \
read and write XML files. It allows you to create your own document mark-ups \
or even construct an XML document from scratch with C++ objects."
HOMEPAGE="http://www.grinninglizard.com/tinyxml/index.html"
COPYRIGHT="2001-2010 Lee Thomason"
LICENSE="Zlib"
SRC_URI="http://sourceforge.net/projects/tinyxml/files/tinyxml/$portVersion/tinyxml_2_6_2.tar.gz"
CHECKSUM_SHA256="15bdfdcec58a7da30adc87ac2b078e4417dbe5392f3afb719f9ba6d062645593"
SRC_URI_2="http://libtinyxml.googlecode.com/svn/trunk/CMakeLists.txt#noarchive"
CHECKSUM_SHA256_2="12a412abedaf30fff9c75273c1ac7239a7b4b59dd34bdadedd913a9717a3a105"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
tinyxml$secondaryArchSuffix = $portVersion compat >= 2
lib:libtinyxml$secondaryArchSuffix = $portVersion compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
REQUIRES+="
lib:libgcc_s$secondaryArchSuffix
"
fi
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
"
SOURCE_DIR="tinyxml"
BUILD()
{
cp ../../sources-2/CMakeLists.txt ./
sed -i 's/GLOB_RECURSE/GLOB/' CMakeLists.txt
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix
make $jobArgs
}
INSTALL()
{
make install
# move headers to the correct location
mkdir -p $includeDir $libDir
mv $prefix/include/* $includeDir
[ "$prefix/lib" != "$libDir" ] && mv $prefix/lib/*.so $libDir
rmdir $prefix/include/
prepareInstalledDevelLibs libtinyxml
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
tinyxml${secondaryArchSuffix}_devel = $portVersion compat >= 2
devel:libtinyxml${secondaryArchSuffix} = $portVersion compat >= 2
"
REQUIRES_devel="
tinyxml${secondaryArchSuffix} == $portVersion base
"