PNG re-work: handle libpng 1.5 correctly
authorTony Cook <tony@develop-help.com>
Tue, 14 Jun 2011 13:32:59 +0000 (23:32 +1000)
committerTony Cook <tony@develop-help.com>
Wed, 25 Apr 2012 03:22:13 +0000 (13:22 +1000)
PNG/Makefile.PL

index b610d96..ec5cdb3 100644 (file)
@@ -72,7 +72,7 @@ my %probe =
   (
    name => "PNG",
    altname => "Generic",
-   pkg => [ qw/libpng14 libpng12 libpng10 libpng/ ],
+   pkg => [ qw/libpng15 libpng14 libpng12 libpng10 libpng/ ],
    inccheck => sub { -e File::Spec->catfile($_[0], "png.h") },
    libbase => "png",
    testcode => _png_test_code(),
@@ -81,6 +81,11 @@ my %probe =
    libpath => \@libpaths,
    alternatives =>
    [
+    {
+     altname => "v1.5",
+     incsuffix => "libpng14",
+     libbase => "png14",
+    },
     {
      altname => "v1.4",
      incsuffix => "libpng14",