mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
78 lines
1.8 KiB
Bash
78 lines
1.8 KiB
Bash
SUMMARY="Data compression utilities and libraries"
|
|
DESCRIPTION="LZ4 is a very fast lossless compression algorithm, providing \
|
|
compression speed at 400 MB/s per core, scalable with multi-core CPUs. It \
|
|
also features an extremely fast decoder, with speed in multiple GB/s per \
|
|
core, typically reaching RAM speed limits on multi-core systems."
|
|
HOMEPAGE="https://github.com/lz4/lz4"
|
|
COPYRIGHT="2011-2014, Yann Collet"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="2"
|
|
SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz"
|
|
SOURCE_FILENAME="lz4-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="2ca482ea7a9bb103603108b5a7510b7592b90158c151ff50a28f1ca8389fccf6"
|
|
PATCHES="lz4-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
|
|
|
PROVIDES="
|
|
lz4${secondaryArchSuffix} = $portVersion
|
|
lib:liblz4${secondaryArchSuffix} = $portVersion compat >= 1
|
|
"
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
PROVIDES="$PROVIDES
|
|
cmd:lz4 = $portVersion
|
|
cmd:lz4c = $portVersion
|
|
cmd:lz4cat = $portVersion
|
|
cmd:unlz4 = $portVersion
|
|
"
|
|
fi
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
lz4${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liblz4$secondaryArchSuffix = $portVersion compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
lz4${secondaryArchSuffix} == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:ar
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make -C lib $jobArgs
|
|
make -C programs $jobArgs lz4 lz4c
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install LIBDIR=$libDir INCLUDEDIR=$includeDir \
|
|
BINDIR=$binDir MANDIR=$manDir/man1
|
|
|
|
if [ -n "$secondaryArchSuffix" ]; then
|
|
rm $binDir/lz4
|
|
rm $binDir/lz4c
|
|
rm $binDir/lz4cat
|
|
rm $binDir/unlz4
|
|
fi
|
|
|
|
prepareInstalledDevelLibs liblz4
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|