mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
48 lines
1004 B
Bash
48 lines
1004 B
Bash
SUMMARY="This is a compression library"
|
|
DESCRIPTION="Zopfli Compression Algorithm is a zlib (gzip, deflate) \
|
|
compatible compressor programmed in C"
|
|
HOMEPAGE="https://github.com/google/zopfli"
|
|
COPYRIGHT="2011-2018 Google Inc."
|
|
LICENSE="Apache v2"
|
|
REVISION="1"
|
|
SOURCE_URI="$HOMEPAGE/archive/zopfli-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4a570307c37172d894ec4ef93b6e8e3aacc401e78cbcc51cf85b212dbc379a55"
|
|
SOURCE_DIR="zopfli-zopfli-$portVersion"
|
|
|
|
ARCHITECTURES="!x86_gcc2 x86 x86_64 ?arm ?ppc"
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
fi
|
|
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
PROVIDES="
|
|
zopfli$secondaryArchSuffix = $portVersion
|
|
cmd:zopfli
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
install -d "$commandBinDir"
|
|
install -t "$commandBinDir" zopfli
|
|
}
|