mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
69 lines
1.7 KiB
Bash
69 lines
1.7 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://code.google.com/p/lz4/"
|
|
COPYRIGHT="2011-2014, Yann Collet"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/Cyan4973/lz4/archive/$portVersion.tar.gz"
|
|
SOURCE_FILENAME="lz4-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="9d4d00614d6b9dec3114b33d1224b6262b99ace24434c53487a0c8fd0b18cfed"
|
|
PATCHES="lz4-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86 x86_gcc2"
|
|
|
|
PROVIDES="
|
|
lz4${secondaryArchSuffix} = $portVersion
|
|
lib:liblz4${secondaryArchSuffix} = 1.7.0 compat >= 1
|
|
"
|
|
|
|
if [ -z "$secondaryArchSuffix" ]; then
|
|
PROVIDES="$PROVIDES
|
|
cmd:lz4 = $portVersion
|
|
cmd:lz4c = $portVersion
|
|
cmd:lz4cat = $portVersion
|
|
cmd:unlz4 = $portVersion
|
|
"
|
|
fi
|
|
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix >= $haikuVersion
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
lz4${secondaryArchSuffix}_devel = $portVersion
|
|
devel:liblz4$secondaryArchSuffix = 1.7.0 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
lz4${secondaryArchSuffix} == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:ar
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs all
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install LIBDIR=$libDir INCLUDEDIR=$includeDir \
|
|
BINDIR=$binDir MANDIR=$manDir/man1
|
|
prepareInstalledDevelLibs liblz4
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|