Files
haikuports/app-arch/libdeflate/libdeflate-1.18.recipe
2023-08-02 18:39:23 +00:00

83 lines
1.9 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-2023 Eric Biggers
2017 Jun He"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="225d982bcaf553221c76726358d2ea139bb34913180b20823c782cede060affd"
SOURCE_FILENAME="libdeflate-v$portVersion.tar.gz"
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:cmake
cmd:make
cmd:gcc$secondaryArchSuffix
"
TEST_REQUIRES="
cmd:ctest
devel:libz$secondaryArchSuffix
"
BUILD()
{
cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DLIBDEFLATE_BUILD_STATIC_LIB=OFF
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib libdeflate
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake
}
TEST()
{
ctest --test-dir build
}