diff --git a/media-libs/libpng/libpng12-1.2.56.recipe b/media-libs/libpng/libpng12-1.2.57.recipe similarity index 76% rename from media-libs/libpng/libpng12-1.2.56.recipe rename to media-libs/libpng/libpng12-1.2.57.recipe index bb2cd72c2..676ca28e2 100644 --- a/media-libs/libpng/libpng12-1.2.56.recipe +++ b/media-libs/libpng/libpng12-1.2.57.recipe @@ -7,22 +7,25 @@ This is libpng 1.2, an older version which may be needed for compatibility \ with BeOS application. For new developments please use the current libpng \ package." HOMEPAGE="http://www.libpng.org/" -COPYRIGHT="1998-2015 Glenn Randers-Pehrson +COPYRIGHT="1998-2016 Glenn Randers-Pehrson 1996-1997 Andreas Dilger 1995-1996 Guy Eric Schalnat, Group 42 Inc." LICENSE="LibPNG" -REVISION="3" -SOURCE_URI="http://prdownloads.sourceforge.net/libpng/libpng-$portVersion.tar.gz" -CHECKSUM_SHA256="0366f932883084a6972efa8eadfaa5584e94a7c9c8682a49590759951518801f" +REVISION="1" +SOURCE_URI="http://downloads.sourceforge.net/libpng/libpng-$portVersion.tar.gz" +CHECKSUM_SHA256="09ec37869fc5b130f5eb06ffb9bf949796e8d2d78e0788f78ab1c78624c6e9da" SOURCE_DIR="libpng-$portVersion" ARCHITECTURES="x86_gcc2" SECONDARY_ARCHITECTURES="x86_gcc2" +# define libVersion as 3.z.0 when portVersion is 1.2.z. +libVersion="3.${portVersion#1\.2\.}.0" + PROVIDES=" libpng12$secondaryArchSuffix = $portVersion compat >= 1.2 - lib:libpng$secondaryArchSuffix = 3.56.0 compat >= 3 - lib:libpng12$secondaryArchSuffix = 3.56.0 compat >= 3 + lib:libpng$secondaryArchSuffix = $libVersion compat >= 3 + lib:libpng12$secondaryArchSuffix = $libVersion compat >= 3 " REQUIRES=" haiku$secondaryArchSuffix @@ -33,8 +36,8 @@ PROVIDES_devel=" libpng12${secondaryArchSuffix}_devel = $portVersion compat >= 1.2 cmd:libpng_config$secondaryArchSuffix = $portVersion compat >= 1.2 cmd:libpng12_config$secondaryArchSuffix = $portVersion compat >= 1.2 - devel:libpng$secondaryArchSuffix = 3.56.0 compat >= 3 - devel:libpng12$secondaryArchSuffix = 3.56.0 compat >= 3 + devel:libpng$secondaryArchSuffix = $libVersion compat >= 3 + devel:libpng12$secondaryArchSuffix = $libVersion compat >= 3 " REQUIRES_devel=" libpng12$secondaryArchSuffix == $portVersion base @@ -71,6 +74,8 @@ INSTALL() { make install + rm $libDir/libpng*.la + prepareInstalledDevelLibs libpng libpng12 fixPkgconfig