mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
tinyxml2: update to version 2.2.0
This commit is contained in:
71
dev-libs/tinyxml2/tinyxml2-2.2.0.recipe
Normal file
71
dev-libs/tinyxml2/tinyxml2-2.2.0.recipe
Normal file
@@ -0,0 +1,71 @@
|
||||
SUMMARY="A simple C++ XML parser"
|
||||
DESCRIPTION="
|
||||
TinyXML-2 is a simple, small, efficient, C++ XML parser that can be \
|
||||
easily integrated into other programs.
|
||||
"
|
||||
HOMEPAGE="http://www.grinninglizard.com/tinyxml2/"
|
||||
LICENSE="Zlib"
|
||||
COPYRIGHT="2011-2013 Lee Thomason"
|
||||
SRC_URI="https://github.com/leethomason/tinyxml2/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="f891224f32e7a06bf279290619cec80cc8ddc335c13696872195ffb87f5bce67"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86 x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
ARCHITECTURES="x86_gcc2 $ARCHITECTURES"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
tinyxml2$secondaryArchSuffix = $portVersion
|
||||
lib:libtinyxml2$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
g++ -fpic -c tinyxml2.cpp
|
||||
g++ -shared -Wl,-soname,libtinyxml2.so -o libtinyxml2.so tinyxml2.o
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $libDir
|
||||
# also install shared lib
|
||||
cp -a libtinyxml2.so $libDir
|
||||
|
||||
# move headers
|
||||
mkdir -p $includeDir
|
||||
mv tinyxml2.h $includeDir
|
||||
|
||||
# prepare development lib links
|
||||
prepareInstalledDevelLib libtinyxml2
|
||||
|
||||
# devel package
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make test
|
||||
}
|
||||
|
||||
# ----- devel package -------------------------------------------------------
|
||||
|
||||
PROVIDES_devel="
|
||||
tinyxml2${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libtinyxml2$secondaryArchSuffix = $portVersion
|
||||
"
|
||||
REQUIRES_devel="
|
||||
tinyxml2$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user