Update StormLib to 9.31 (#13882)

This commit is contained in:
Peppersawce
2026-04-03 17:36:16 +02:00
committed by GitHub
parent 4ccb6337aa
commit f091ed0608

View File

@@ -0,0 +1,70 @@
SUMMARY="A C++ library for reading, creating, and modifying Blizzard MPQ archives"
DESCRIPTION="The StormLib library is a pack of modules, written in C++, \
which are able to read and also to write files from/to the MPQ archives."
HOMEPAGE="https://github.com/ladislav-zezula/StormLib"
COPYRIGHT="2003-2025 Ladislav Zezula"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/ladislav-zezula/StormLib/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="c8d77e626cc907c8f2d00bb5c48f9d6c70344848d49cab4468f6234afaf815c1"
SOURCE_DIR="StormLib-$portVersion"
#This (probably) compiles on x86_gcc2 but nothing uses it there
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="9.30"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
stormlib$secondaryArchSuffix = $portVersion
lib:libstorm$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libbz2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
stormlib${secondaryArchSuffix}_devel = $portVersion
devel:libstorm$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
haiku${secondaryArchSuffix}_devel
stormlib$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libbz2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
devel:libzip$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:make
"
BUILD()
{
cmake -Bbuild -S. $cmakeDirArgs \
-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON
make -C build $jobArgs
}
INSTALL()
{
make -C build install
# Pack docs
mkdir -p $docDir && cp -rt $docDir doc/* README.md
prepareInstalledDevelLib libstorm
# devel package
packageEntries devel \
$developDir
}