Skip Menu |

This queue is for tickets about the Image-Scale CPAN distribution.

Report information
The Basics
Id: 61512
Status: resolved
Priority: 0/
Queue: Image-Scale

People
Owner: Nobody in particular
Requestors: MAXS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Detect whether libungif is installed instead of libgif
Hello, Image-Scale-0.06 on FreeBSD 8.1-RELEASE/amd64. On FreeBSD (at least), libungif is preferentially installed over libgif. So it could be good to detect whether libungif is available or not, in Makefile.PL. I did it in the attached patch, for example. With this patch, "make test" do not produce error anymore. Thank you for your time, Max.
Subject: Image-Scale-0.06.patch
--- Makefile.PL.orig 2010-09-21 08:37:33.000000000 +0200 +++ Makefile.PL 2010-09-21 09:05:45.000000000 +0200 @@ -157,7 +157,16 @@ } } else { - push @LIBS, '-lgif'; + my $gif_lib_name = 'gif'; + for my $libdir ( $gif_lib, map { (my $p = $_) =~ s,/include,/lib,; $p } @check ) + { + if (glob("$libdir/libungif*")) + { + $gif_lib_name = 'ungif'; + last; + } + } + push @LIBS, "-l$gif_lib_name"; } $GIF_VERSION = _re_find( catfile($incdir, 'gif_lib.h'), qr/GIF_LIB_VERSION\s+" Version ([\d\.]+)/ ) || 'unknown';
OK, good idea. Hopefully distros will soon switch to giflib now that the LZW patent has expired.
Fixed in 0.07.