From d33e07e28c57fdef036d6759f6703856575be2d7 Mon Sep 17 00:00:00 2001 From: shawnlaffan Date: Mon, 25 Sep 2023 07:50:24 +1000 Subject: [PATCH] GIS::Proj - Use Alien::proj And add its bin dirs to the path on Windows so it can function. Done using pp_addbegin as pp_addpm happens after the dynaload call, which is too late. --- Libtmp/GIS/Proj/Proj.pd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Libtmp/GIS/Proj/Proj.pd b/Libtmp/GIS/Proj/Proj.pd index 35cd9bd0b..54496bd07 100644 --- a/Libtmp/GIS/Proj/Proj.pd +++ b/Libtmp/GIS/Proj/Proj.pd @@ -16,6 +16,13 @@ use warnings; our $VERSION = "1.32"; +pp_addbegin (<<'EOAP'); + use Alien::proj; + if ($^O =~ /MSWin32/ and $Alien::proj::VERSION le '1.25') { + $ENV{PATH} = join ';', (Alien::proj->bin_dirs, $ENV{PATH}); + } +EOAP + pp_addpm({At=>'Top'},<<'EODOC'); use strict; use warnings;