Files
haikuports/dev-libs/tinyxml2/tinyxml2-9.0.0.recipe
2022-07-11 14:28:12 +02:00

73 lines
1.7 KiB
Bash

SUMMARY="A small C++ XML Parser"
DESCRIPTION="Tinyxml is a simple, OS independent XML parser for the C++ \
language.
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/tinyxml2/"
COPYRIGHT="2011-2021 Lee Thomason"
LICENSE="Zlib"
REVISION="1"
SOURCE_URI="https://github.com/leethomason/tinyxml2/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="cc2f1417c308b1f6acc54f88eb70771a0bf65f76282ce5c40e54cfe52952702c"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
tinyxml2$secondaryArchSuffix = $portVersion
lib:libtinyxml2$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
tinyxml2${secondaryArchSuffix}_devel = $portVersion
devel:libtinyxml2$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
tinyxml2$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DBUILD_SHARED_LIBS=ON \
-Dtinyxml2_INSTALL_CMAKEDIR=$developLibDir/cmake
make -C build $jobArgs
}
INSTALL()
{
make -C build install
# prepare development lib links
prepareInstalledDevelLib libtinyxml2
fixPkgconfig
# devel package
packageEntries devel $developDir
}
TEST()
{
make -C build test
}