]> git.imager.perl.org - imager.git/commitdiff
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 b610d96531023fe24db91c2fed87fee049459a4f..ec5cdb335cb071675db3d06e398ee5991ba2f61f 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",