diff --git a/media-libs/libwebp/libwebp-0.3.1.recipe b/media-libs/libwebp/libwebp-0.3.1.recipe new file mode 100644 index 000000000..675253702 --- /dev/null +++ b/media-libs/libwebp/libwebp-0.3.1.recipe @@ -0,0 +1,72 @@ +DESCRIPTION="library for encoding and decoding WebP image files" +SUMMARY="library for encoding and decoding WebP image files" +HOMEPAGE="http://code.google.com/p/webp" +SRC_URI="http://webp.googlecode.com/files/libwebp-0.3.1.tar.gz" +CHECKSUM_MD5="dc862bb4006d819b7587767a9e83d31f" +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 + lib:libwebp$secondaryArchSuffix = $portVersion + cmd:cwebp + cmd:dwebp + " + +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 + " + +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.3 + devel:libwebp$secondaryArchSuffix = 4.0.3 compat >= 4 + " + +REQUIRES_devel=" + libwebp$secondaryArchSuffix == $portVersion base + "