mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-14 15:50:07 +02:00
70 lines
1.7 KiB
Bash
70 lines
1.7 KiB
Bash
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="http://www.zezula.net/en/mpq/stormlib.html"
|
|
COPYRIGHT="2003-2024 Ladislav Zezula"
|
|
LICENSE="MIT"
|
|
REVISION="2"
|
|
SOURCE_URI="https://github.com/ladislav-zezula/StormLib/archive/refs/tags/v$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="a709a6b034d206404f5297d85e474371203ff5483639955195d99b737bbf7dfe"
|
|
SOURCE_DIR="StormLib-$portVersion"
|
|
|
|
ARCHITECTURES="all"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="9.22"
|
|
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
|
|
}
|