libwebp: bump version (#1875)

This commit is contained in:
Schrijvers Luc
2017-12-10 08:58:43 +01:00
committed by diversys
parent c5414e8be7
commit e608f7d42c

View File

@@ -0,0 +1,128 @@
SUMMARY="A library for encoding and decoding WebP image files"
DESCRIPTION="WebP is an image format that provides lossless and lossy \
compression for images on the web. WebP lossless images are 26% smaller \
in size compared to PNGs. WebP lossy images are 25-34% smaller in size \
compared to JPEG images at equivalent SSIM index.
WebP supports lossless transparency (also known as alpha channel) with \
just 22% additional bytes. Transparency is also supported with lossy \
compression and typically provides 3x smaller file sizes compared to \
PNG when lossy compression is acceptable for the red/green/blue color \
channels."
HOMEPAGE="https://developers.google.com/speed/webp"
COPYRIGHT="2011 Google Inc."
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://downloads.webmproject.org/releases/webp/libwebp-$portVersion.tar.gz"
CHECKSUM_SHA256="06503c782d9f151baa325591c3579c68ed700ffc62d4f5a32feead0ff017d8ab"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
libwebp$secondaryArchSuffix = $portVersion compat >= 0.6
lib:libwebp$secondaryArchSuffix = 7.0.1 compat >= 7
lib:libwebpdecoder$secondaryArchSuffix = 3.0.1 compat >= 3
lib:libwebpdemux$secondaryArchSuffix = 2.0.3 compat >= 2
lib:libwebpmux$secondaryArchSuffix = 3.0.1 compat >= 3
cmd:cwebp$secondaryArchSuffix
cmd:dwebp$secondaryArchSuffix
cmd:gif2webp$secondaryArchSuffix
cmd:img2webp$secondaryArchSuffix
cmd:vwebp$secondaryArchSuffix
cmd:webpmux$secondaryArchSuffix
cmd:webpinfo$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libgif$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libglu$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libSDL$secondaryArchSuffix
lib:libtiff$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
PROVIDES_devel="
libwebp${secondaryArchSuffix}_devel = $portVersion compat >= 0.6
devel:libwebp$secondaryArchSuffix = 7.0.1
devel:libwebpdecoder$secondaryArchSuffix = 3.0.1
devel:libwebpdemux$secondaryArchSuffix = 2.0.3
devel:libwebpmux$secondaryArchSuffix = 3.0.1
"
REQUIRES_devel="
libwebp$secondaryArchSuffix == $portVersion base
"
CONFLICTS_devel="
libwebp5${secondaryArchSuffix}_devel
libwebp6${secondaryArchSuffix}_devel
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjpeg$secondaryArchSuffix
devel:libgif$secondaryArchSuffix
devel:libGL$secondaryArchSuffix
devel:libglu$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libSDL$secondaryArchSuffix
devel:libtiff$secondaryArchSuffix >= 5
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:autoconf
cmd:libtool
cmd:aclocal
cmd:make
cmd:m4
cmd:find
"
defineDebugInfoPackage libwebp$secondaryArchSuffix \
$binDir/cwebp \
$binDir/dwebp \
$binDir/gif2webp \
$binDir/img2webp \
$binDir/vwebp \
$binDir/webpmux \
$binDir/webpinfo \
$libDir/libwebp.so.7.0.1 \
$libDir/libwebpdecoder.so.3.0.1 \
$libDir/libwebpdemux.so.2.0.3 \
$libDir/libwebpmux.so.3.0.1
BUILD()
{
./autogen.sh
runConfigure ./configure \
--enable-libwebpdemux --enable-libwebpmux --enable-libwebpdecoder \
--enable-swap-16bit-csp --disable-static
make $jobArgs
}
INSTALL()
{
make install
rm -f $libDir/*.la
prepareInstalledDevelLibs libwebp libwebpdecoder libwebpdemux \
libwebpmux
fixPkgconfig
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $manDir
maybe_manDir=
else
maybe_manDir=$manDir
fi
#devel package
packageEntries devel \
$developDir \
$maybe_manDir
rm -r $documentationDir
}