From ace3e2fc5ada53aac8296a75a364a92e371afc15 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 26 Aug 2014 16:31:26 +0000 Subject: [PATCH] libwebp: added a recipe for version 0.4.1 --- media-libs/libwebp/libwebp-0.4.1.recipe | 75 +++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 media-libs/libwebp/libwebp-0.4.1.recipe diff --git a/media-libs/libwebp/libwebp-0.4.1.recipe b/media-libs/libwebp/libwebp-0.4.1.recipe new file mode 100644 index 000000000..b6e87187b --- /dev/null +++ b/media-libs/libwebp/libwebp-0.4.1.recipe @@ -0,0 +1,75 @@ +SUMMARY="library for encoding and decoding WebP image files" +DESCRIPTION=" +A library for encoding and decoding WebP image files. +" +HOMEPAGE="https://developers.google.com/speed/webp" +SRC_URI="http://downloads.webmproject.org/releases/webp/libwebp-$portVersion.tar.gz" +CHECKSUM_SHA256="00b646e6f66550a8faa998711fe70aabee9ed3bc562a8437c89042901674d027" +LICENSE="BSD (3-clause)" +COPYRIGHT="2011 Google Inc." +REVISION="1" + +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + libwebp$secondaryArchSuffix = $portVersion compat >= 0.4 + lib:libwebp$secondaryArchSuffix = 5.0.1 compat >= 5 + cmd:cwebp$secondaryArchSuffix + cmd:dwebp$secondaryArchSuffix + " + +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libjpeg$secondaryArchSuffix + lib:libgif$secondaryArchSuffix + lib:libpng$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + devel:libjpeg$secondaryArchSuffix + devel:libgif$secondaryArchSuffix + devel:libpng$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " + +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:autoconf + cmd:libtool + cmd:aclocal + cmd:make + cmd:m4 + cmd:find + " + +BUILD() +{ + ./autogen.sh + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libwebp + fixPkgconfig + + #devel package + packageEntries devel \ + $developDir +} + +PROVIDES_devel=" + libwebp${secondaryArchSuffix}_devel = $portVersion compat >= 0.4 + devel:libwebp$secondaryArchSuffix = 5.0.1 compat >= 5 + " + +REQUIRES_devel=" + libwebp$secondaryArchSuffix == $portVersion base + "