mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
tinyxml2, bump version (#7047)
This commit is contained in:
@@ -6,11 +6,11 @@ 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-2018 Lee Thomason"
|
||||
COPYRIGHT="2011-2021 Lee Thomason"
|
||||
LICENSE="Zlib"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/leethomason/tinyxml2/archive/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a381729e32b6c2916a23544c04f342682d38b3f6e6c0cad3c25e900c3a7ef1a6"
|
||||
CHECKSUM_SHA256="cc2f1417c308b1f6acc54f88eb70771a0bf65f76282ce5c40e54cfe52952702c"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -46,22 +46,17 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake -DCMAKE_INSTALL_INCLUDEDIR=$includeDir \
|
||||
-DCMAKE_INSTALL_LIBDIR=$libDir ..
|
||||
|
||||
#this is needed to build xmltest on x86_64
|
||||
if [ $targetArchitecture != x86_gcc2 ]; then
|
||||
sed -i 's,-fPIE,-fPIC,g' CMakeFiles/xmltest.dir/flags.make
|
||||
fi
|
||||
|
||||
make $jobArgs
|
||||
cmake -B build -S . \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
$cmakeDirArgs \
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
-Dtinyxml2_INSTALL_CMAKEDIR=$developLibDir/cmake
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
make -C build install
|
||||
|
||||
# prepare development lib links
|
||||
prepareInstalledDevelLib libtinyxml2
|
||||
@@ -73,6 +68,5 @@ INSTALL()
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
./xmltest
|
||||
make -C build test
|
||||
}
|
||||
Reference in New Issue
Block a user