Alien-pkgconf
view release on metacpan or search on metacpan
script/build.pl view on Meta::CPAN
'--enable-static';
}
elsif($type eq 'dll')
{
unshift @configure_flags,
'--libdir=' . _catdir(_rootdir, @prefix, 'dll'),
'--enable-shared',
'--disable-static';
}
if(-e 'Makefile')
{
run 'make', 'distclean';
}
if($^O eq 'solaris')
{
outer:
foreach my $dir (@PATH, '/usr/gnu/bin')
{
foreach my $try (map { File::Spec->catfile($dir, $_) } qw( gnm nm ))
{
if(-x $try)
{
my($line) = `$try --version`;
if($? == 0 && $line =~ /GNU nm/)
{
print "+setenv+ NM = $try\n";
$ENV{NM} = $try;
last outer;
}
}
}
}
}
run 'sh', 'configure', @configure_flags;
run 'make', 'V=1';
run 'make', 'install';
my @cleanup = (
['share'],
);
if($type eq 'dll')
{
unshift @cleanup, ['bin'];
unshift @cleanup, ['dll', 'pkgconfig'];
unshift @cleanup, ['include'];
}
foreach my $cleanup (@cleanup)
{
rmtree(_catdir($ENV{DESTDIR}, @prefix, @$cleanup), 0, 0);
}
chdir(_catdir(File::Spec->updir, File::Spec->updir, File::Spec->updir));
my $fh;
open($fh, '>', $status_filename) || die "unable to write $status_filename $!";
print $fh JSON::PP->new->utf8->canonical->encode({ destdir => $ENV{DESTDIR}, prefix => \@prefix, skip => 0 });
close $fh;
( run in 0.468 second using v1.01-cache-2.11-cpan-119454b85a5 )