mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
tinyxml2, bump version (#11569)
This commit is contained in:
72
dev-libs/tinyxml2/tinyxml2-10.0.0.recipe
Normal file
72
dev-libs/tinyxml2/tinyxml2-10.0.0.recipe
Normal file
@@ -0,0 +1,72 @@
|
||||
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="3bdf15128ba16686e69bce256cc468e76c7b94ff2c7f391cc5ec09e40bff3839"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user