mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
bzip3: new recipe
This commit is contained in:
83
app-arch/bzip3/bzip3-1.5.1.recipe
Normal file
83
app-arch/bzip3/bzip3-1.5.1.recipe
Normal file
@@ -0,0 +1,83 @@
|
|||||||
|
SUMMARY="Data compression utilities and libraries"
|
||||||
|
DESCRIPTION="A better, faster and stronger spiritual successor to BZip2. \
|
||||||
|
Features higher compression ratios and better performance thanks to a order-0 \
|
||||||
|
context mixing entropy coder, a fast Burrows-Wheeler transform code making \
|
||||||
|
use of suffix arrays and a RLE with Lempel Ziv+Prediction pass based on \
|
||||||
|
LZ77-style string matching and PPM-style context modeling."
|
||||||
|
HOMEPAGE="https://github.com/kspalaiologos/bzip3/"
|
||||||
|
COPYRIGHT="2022-2023 Kamila Szewczyk
|
||||||
|
2021-2022 Ilya Grebnov
|
||||||
|
2003 Thomas Klausner"
|
||||||
|
LICENSE="GNU LGPL v3
|
||||||
|
Apache v2
|
||||||
|
BSD (2-clause)"
|
||||||
|
REVISION="1"
|
||||||
|
SOURCE_URI="$HOMEPAGE/releases/download/$portVersion/bzip3-$portVersion.tar.xz"
|
||||||
|
CHECKSUM_SHA256="53b844f9d9fb1d75faa4d3a9d9026017caaf50bb200b320d1685c6506b8f3b37"
|
||||||
|
|
||||||
|
ARCHITECTURES="all !x86_gcc2"
|
||||||
|
SECONDARY_ARCHITECTURES="x86"
|
||||||
|
|
||||||
|
PROVIDES="
|
||||||
|
bzip3$secondaryArchSuffix = $portVersion
|
||||||
|
lib:libbzip3$secondaryArchSuffix = 1.0.0 compat >= 1
|
||||||
|
cmd:bunzip3 = $portVersion compat >= 1
|
||||||
|
cmd:bz3cat = $portVersion compat >= 1
|
||||||
|
cmd:bz3grep = $portVersion compat >= 1
|
||||||
|
cmd:bz3less = $portVersion compat >= 1
|
||||||
|
cmd:bz3more = $portVersion compat >= 1
|
||||||
|
cmd:bz3most = $portVersion compat >= 1
|
||||||
|
cmd:bzip3 = $portVersion compat >= 1
|
||||||
|
"
|
||||||
|
REQUIRES="
|
||||||
|
haiku$secondaryArchSuffix
|
||||||
|
"
|
||||||
|
|
||||||
|
PROVIDES_devel="
|
||||||
|
bzip3${secondaryArchSuffix}_devel = $portVersion
|
||||||
|
devel:libbzip3$secondaryArchSuffix = 1.0.0 compat >= 1
|
||||||
|
"
|
||||||
|
REQUIRES_devel="
|
||||||
|
bzip3$secondaryArchSuffix == $portVersion base
|
||||||
|
"
|
||||||
|
|
||||||
|
BUILD_REQUIRES="
|
||||||
|
haiku${secondaryArchSuffix}_devel
|
||||||
|
"
|
||||||
|
BUILD_PREREQUIRES="
|
||||||
|
cmd:cmp
|
||||||
|
cmd:awk
|
||||||
|
cmd:diff
|
||||||
|
cmd:gcc$secondaryArchSuffix
|
||||||
|
cmd:ld$secondaryArchSuffix
|
||||||
|
cmd:make
|
||||||
|
"
|
||||||
|
|
||||||
|
debugList=("$libDir"/libbzip3.so.1.0.0)
|
||||||
|
debugList+=("$prefix"/bin/bzip3)
|
||||||
|
defineDebugInfoPackage bzip3$secondaryArchSuffix "${debugList[@]}"
|
||||||
|
|
||||||
|
BUILD()
|
||||||
|
{
|
||||||
|
AUTOCONF=: AUTOHEADER=: AUTOMAKE=: ACLOCAL=: \
|
||||||
|
runConfigure --omit-dirs binDir ./configure --bindir=$prefix/bin
|
||||||
|
make $jobArgs
|
||||||
|
}
|
||||||
|
|
||||||
|
INSTALL()
|
||||||
|
{
|
||||||
|
make install
|
||||||
|
|
||||||
|
rm -f $libDir/libbzip3.a $libDir/libbzip3.la
|
||||||
|
prepareInstalledDevelLib libbzip3
|
||||||
|
fixPkgconfig
|
||||||
|
|
||||||
|
# devel package
|
||||||
|
packageEntries devel \
|
||||||
|
$developDir
|
||||||
|
}
|
||||||
|
|
||||||
|
TEST()
|
||||||
|
{
|
||||||
|
make check
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user