From 93f8afdf52f12c82b159bca72d4ec402cc97f0da Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Tue, 15 Apr 2014 18:11:14 +0000 Subject: [PATCH] libpng: added recipe for version 1.6.10 --- media-libs/libpng/libpng-1.6.10.recipe | 83 ++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 media-libs/libpng/libpng-1.6.10.recipe diff --git a/media-libs/libpng/libpng-1.6.10.recipe b/media-libs/libpng/libpng-1.6.10.recipe new file mode 100644 index 000000000..94575fe22 --- /dev/null +++ b/media-libs/libpng/libpng-1.6.10.recipe @@ -0,0 +1,83 @@ +SUMMARY="Portable Network Graphics library" +DESCRIPTION=" +libpng is the official PNG reference library. It supports almost all PNG \ +features, is extensible, and has been extensively tested for over 17 years +" +HOMEPAGE="http://www.libpng.org" +COPYRIGHT=" + 1998-2013 Glenn Randers-Pehrson + 1996-1997 Andreas Dilger + 1995-1996 Guy Eric Schalnat, Group 42, Inc. + " +LICENSE="LibPNG" +SRC_URI="http://prdownloads.sourceforge.net/libpng/libpng-$portVersion.tar.gz" +CHECKSUM_SIZE="1355498" +CHECKSUM_RMD160="f8ac24ed499846a69b241c182efb8e73bc72bc77" +CHECKSUM_SHA512="e473e3ea436b55da2e0d68ea58fe4356127a7edb93f28de68ff18efe6aa4a346d7f1a50a1c6dd0fb32500cf0e00f122d82ab710f7484cbe465faebefcf6bf018" +REVISION="1" +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + libpng$secondaryArchSuffix = $portVersion compat >= 1.6 + lib:libpng$secondaryArchSuffix = 16.10.0 compat >= 16 + lib:libpng16$secondaryArchSuffix = 16.10.0 compat >= 16 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libz$secondaryArchSuffix + " +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + devel:libz$secondaryArchSuffix >= 1.0.4 + " +BUILD_PREREQUIRES=" + cmd:aclocal + cmd:autoconf + cmd:automake + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:libtool >= 2.4.2 + cmd:make + " + +BUILD() +{ + aclocal + libtoolize --force --copy --install + aclocal + autoconf + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libpng libpng16 + fixPkgconfig + + # devel package + packageEntries devel \ + $binDir \ + $developDir \ + $manDir/man3 +} + +# ----- devel package ------------------------------------------------------- + +PROVIDES_devel=" + libpng${secondaryArchSuffix}_devel = $portVersion compat >= 1.6 + cmd:libpng_config$secondaryArchSuffix = $portVersion compat >= 1.6 + cmd:libpng16_config$secondaryArchSuffix = $portVersion compat >= 1.6 + cmd:pngfix$secondaryArchSuffix = $portVersion compat >= 1.6 + cmd:png_fix_itxt$secondaryArchSuffix = $portVersion compat >= 1.6 + devel:libpng$secondaryArchSuffix = 16.10.0 compat >= 16 + devel:libpng16$secondaryArchSuffix = 16.10.0 compat >= 16 + " +REQUIRES_devel=" + libpng$secondaryArchSuffix == $portVersion base + haiku$secondaryArchSuffix >= $haikuVersion + lib:libz$secondaryArchSuffix + "