Alien-gdal
view release on metacpan or search on metacpan
if (Alien::proj->install_type eq 'share') {
push @cmake_prefix_path, path('Alien::proj'->dist_dir);
push @with_args, '-DPROJ_INCLUDE_DIR=' . path (Alien::proj->dist_dir . '/include')->stringify;
my $libfile = find_lib_file (
lib => 'proj',
alien => 'Alien::proj',
);
# windows proj has non-conformant lib name, libproj_9_0.dll
# and this fails the checks in FFI::CheckLib < 0.29
if ($on_windows && !$libfile) {
my @files = grep {/libproj/} glob (Alien::proj->bin_dir . '/*.dll');
$libfile = shift @files;
Alien::Build->log ("Secondary search for proj dynamic lib found $libfile");
}
push @with_args, '-DPROJ_LIBRARY_RELEASE=' . $libfile;
my $proj_lib = Alien::proj->dist_dir . '/share/proj';
warn "======\nno proj lib\n=====" if !-e $proj_lib;
if (!grep {($_ // '')=~ /^$proj_lib$/} @PROJ_LIB) {
Alien::Build->log ("Appending $proj_lib to \$ENV{PROJ_LIB}");
push @PROJ_LIB, $proj_lib;
( run in 0.602 second using v1.01-cache-2.11-cpan-49f99fa48dc )