Alien-gdal
view release on metacpan or search on metacpan
covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
c) For a Combined Work that displays copyright notices during
else {
$have_spatialite = undef;
}
# configure script does not seem to detect the proj lib distributed with Strawberry perl
#use FFI::CheckLib;
#my $proj_lib = FFI::CheckLib::find_lib (lib => 'proj');
Alien::Build->log ('$ENV{PROJ_LIB} IS ' . ($ENV{PROJ_LIB} // ''));
# make libtool noisy for debug purposes
#$ENV{LTFLAGS} = "--debug --verbose" if $on_windows;
use Cwd;
my $base_dir = getcwd();
my $min_target_version = '3.1.0';
plugin 'PkgConfig' => (
pkg_name => 'gdal',
minimum_version => $min_target_version,
if not Alien::proj->atleast_version ('6.0.0');
plugin 'Build::SearchDep' => (
aliens => [grep {$_->install_type eq 'share'} @alien_deps],
public_I => 1,
public_l => 1,
);
start_url 'https://download.osgeo.org/gdal/CURRENT';
#start_url 'https://download.osgeo.org/gdal/3.6.0';
#start_url "file://$base_dir"; # debug
# Handle release candidates in the regex.
# These are checked occasionally for debug purposes.
my $RE_filter_version = qr/^gdal-([0-9\.]+)(?:rc\d\d)?\.tar\.gz$/;
plugin Download => (
filter => $RE_filter_version,
version => $RE_filter_version,
);
plugin Extract => (format => 'tar.gz');
#plugin 'Build::Autoconf' => ();
plugin 'Build::CMake' => ();
$build->log ("Updating rpath for $so_file");
my ($otool_text, $old_rpath, $result, $stderr, @errors);
$build ->log ("Calling: $otool, '-l', $so_file");
#eval {
($otool_text, $stderr, @errors)
= capture {system $otool, '-l', $so_file};
#};
#$build->log ($@) if $@;
#$build->log (@errors) if @errors;
$build->log ($stderr) if $stderr;
#$build->log($otool_text); # debug
# now we need to extract the rpaths
my @lines = split "\n", $otool_text;
my @existing_paths;
while (defined (my $line = shift @lines)) {
if ($line =~ /RPATH/) {
shift @lines;
$line = shift @lines;
$line =~ s/^\s+path\s//;
$line =~ s/\s\(offset.+$//;
my $removed = $count - @PATH;
if ($removed) {
$build->log ("$removed additional .../usr/bin dirs were removed from the path for compilation");
}
$orig->($build, @args);
}
sub pause {
return; # re-enable in case of debug
# return if $on_automated_rig;
# return if !$on_windows;
say "CONTINUE?";
my $response = <>;
while (not $response =~ /yes/) {
$response = <>;
}
}
( run in 1.154 second using v1.01-cache-2.11-cpan-49f99fa48dc )