mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
SMPQ & Stormlib (#12237)
This commit is contained in:
54
app-arch/smpq/smpq-1.6.recipe
Normal file
54
app-arch/smpq/smpq-1.6.recipe
Normal file
@@ -0,0 +1,54 @@
|
||||
SUMMARY="StormLib MPQ archiving utility"
|
||||
DESCRIPTION="SMPQ is StormLib MPQ archiving utility. This utility is designed for full \
|
||||
manipulation of Blizzard MPQ archives."
|
||||
HOMEPAGE="https://launchpad.net/smpq"
|
||||
COPYRIGHT="2010-2016 Pali"
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://launchpad.net/smpq/trunk/$portVersion/+download/smpq_$portVersion.orig.tar.gz"
|
||||
CHECKSUM_SHA256="b5d2dc8a5de8629b71ee5d3612b6e84d88418b86c5cd39ba315e9eb0462f18cb"
|
||||
SOURCE_DIR="smpq-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
smpq$secondaryArchSuffix = $portVersion
|
||||
cmd:smpq = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libbz2$secondaryArchSuffix
|
||||
lib:libstorm$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libbz2$secondaryArchSuffix
|
||||
devel:libstorm$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libzip$secondaryArchSuffix
|
||||
lib:libstorm$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release -DWITH_KDE=OFF
|
||||
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $prefix/bin && cp -t $prefix/bin build/smpq
|
||||
|
||||
# Pack docs
|
||||
mkdir -p $manDir/man1 && cp -t $manDir/man1 build/smpq.1
|
||||
mkdir -p $docDir && cp -rt $docDir AUTHORS CHANGELOG README
|
||||
}
|
||||
65
dev-libs/stormlib/stormlib-9.30.recipe
Normal file
65
dev-libs/stormlib/stormlib-9.30.recipe
Normal file
@@ -0,0 +1,65 @@
|
||||
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="1"
|
||||
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
|
||||
"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user