crash preventing loading of later fonts.
https://rt.cpan.org/Ticket/Display.html?id=62855
+ - parse defines from the options returned by pkg-config --cflags
+ https://rt.cpan.org/Ticket/Display.html?id=63223
+
+
Imager 0.78 - 4 Oct 2010
===========
ALTCHECK:
my $index = 1;
for my $alt (@{$req->{alternatives}}) {
- $req->{altname} ||= "alt $index";
+ $req->{altname} = $alt->{altname} || "alt $index";
$req->{verbose}
and print "$req->{name}: Trying alternative $index\n";
my %work = %$req;
my $lflags = `pkg-config $pkg --libs`
and !$? or return;
+ my $defines = '';
+ $cflags =~ s/(-D\S+)/$defines .= " $1"; ''/ge;
+
chomp $cflags;
chomp $lflags;
print "$req->{name}: Found via pkg-config $pkg\n";
{
INC => $cflags,
LIBS => $lflags,
+ DEFINES => $defines,
};
}
}
}
my $alt = "";
- if ($req->{alternatives}) {
+ if ($req->{altname}) {
$alt = " $req->{altname}:";
}
print "$req->{name}:$alt includes ", $found_incpath ? "" : "not ",
push @libs, "-l$libbase";
}
else {
- die "$req->{name}: inccheck but no libbase or libopts";
+ die "$req->{altname}: inccheck but no libbase or libopts";
}
return
{
INC => "",
LIBS => $lopts,
+ DEFINES => "",
};
}
else {