Files
haikuports/app-arch/libdeflate/libdeflate-1.10.recipe
2022-03-26 13:56:26 +01:00

78 lines
1.8 KiB
Bash

SUMMARY="A library for fast, whole-buffer DEFLATE-based (de)compression"
DESCRIPTION="libdeflate is a library for fast, whole-buffer DEFLATE-based compression and \
decompression.
The supported formats are:
- DEFLATE (raw)
- zlib (a.k.a. DEFLATE with a zlib wrapper)
- gzip (a.k.a. DEFLATE with a gzip wrapper)
libdeflate is heavily optimized. It is significantly faster than the zlib library, both for \
compression and decompression, and especially on x86 processors.
In addition, libdeflate provides optional high compression modes that provide a better \
compression ratio than the zlib's level 9."
HOMEPAGE="https://github.com/ebiggers/libdeflate"
COPYRIGHT="2016-2022 Eric Biggers
2017 Jun He"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="5c1f75c285cd87202226f4de49985dcb75732f527eefba2b3ddd70a8865f2533"
SOURCE_FILENAME="libdeflate-v$portVersion"
PATCHES="libdeflate-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libdeflate$secondaryArchSuffix = $portVersion
cmd:libdeflate_gunzip = $portVersion
cmd:libdeflate_gzip = $portVersion
lib:libdeflate$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
libdeflate${secondaryArchSuffix}_devel = $portVersion
devel:libdeflate$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
libdeflate$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc$secondaryArchSuffix
"
TEST_REQUIRES="
devel:libz$secondaryArchSuffix
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
make PREFIX=$prefix INCDIR=$includeDir LIBDIR=$libDir install
prepareInstalledDevelLib libdeflate
fixPkgconfig
packageEntries devel \
$developDir
}
TEST()
{
make check
}