Files
haikuports/app-arch/snappy/snappy-1.1.3.recipe
2015-10-07 22:22:05 +00:00

64 lines
1.5 KiB
Bash

SUMMARY="A fast compressor/decompressor"
DESCRIPTION="Snappy is a compression/decompression library. It does not aim \
for maximum compression, or compatibility with any other compression library;\
instead, it aims for very high speeds and reasonable compression. For instance,\
compared to the fastest mode of zlib, Snappy is an order of magnitude faster \
for most inputs, but the resulting compressed files are anywhere from 20% to \
100% bigger."
HOMEPAGE="https://code.google.com/p/snappy/"
COPYRIGHT="2005-2015 Google Inc"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/google/snappy/releases/download/$portVersion/snappy-$portVersion.tar.gz"
CHECKSUM_SHA256="2f1e82adf0868c9e26a5a7a3115111b6da7e432ddbac268a7ca2fae2a247eef3"
ARCHITECTURES="!x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
snappy$secondaryArchSuffix = $portVersion compat >= 1
lib:libsnappy$secondaryArchSuffix = 1.3.0 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
snappy${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libsnappy$secondaryArchSuffix = 1.3.0 compat >= 1
"
REQUIRES_devel="
snappy$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
BUILD()
{
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libsnappy
packageEntries devel \
$developDir
}
TEST()
{
make check
}