libpng16: fix lib version and simplify future updates too.

This commit is contained in:
fbrosson
2017-01-01 09:32:32 +00:00
parent efe08d4651
commit 3bc1ca9552

View File

@@ -7,7 +7,7 @@ COPYRIGHT="1998-2016 Glenn Randers-Pehrson
1996-1997 Andreas Dilger
1995-1996 Guy Eric Schalnat, Group 42, Inc."
LICENSE="LibPNG"
REVISION="1"
REVISION="2"
SOURCE_URI="http://downloads.sf.net/libpng/libpng-$portVersion.tar.gz"
CHECKSUM_SHA256="c9d164ec247f426a525a7b89936694aefbc91fb7a50182b198898b8fc91174b4"
SOURCE_DIR="libpng-$portVersion"
@@ -15,10 +15,13 @@ SOURCE_DIR="libpng-$portVersion"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm ?ppc"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
# define libVersion as xy.z.0 when portVersion is x.y.z.
libVersion="${portVersion/\./}.0"
PROVIDES="
libpng16$secondaryArchSuffix = $portVersion compat >= 1.6
lib:libpng$secondaryArchSuffix = 16.26.0 compat >= 16
lib:libpng16$secondaryArchSuffix = 16.26.0 compat >= 16
lib:libpng$secondaryArchSuffix = $libVersion compat >= 16
lib:libpng16$secondaryArchSuffix = $libVersion compat >= 16
"
REQUIRES="
haiku$secondaryArchSuffix
@@ -32,8 +35,8 @@ PROVIDES_devel="
cmd:pngcp$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.26.0 compat >= 16
devel:libpng16$secondaryArchSuffix = 16.26.0 compat >= 16
devel:libpng$secondaryArchSuffix = $libVersion compat >= 16
devel:libpng16$secondaryArchSuffix = $libVersion compat >= 16
"
REQUIRES_devel="
libpng16$secondaryArchSuffix == $portVersion base