1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
use strict;
use warnings;
use ExtUtils::MakeMaker;
use PDL::Core::Dev;
my @pd_srcs;
undef &MY::init_PM; # suppress warning
*MY::init_PM = sub {
package MY; # so that "SUPER" works right
my ($self) = @_;
$self->SUPER::init_PM;
@pd_srcs = ::pdlpp_eumm_update_deep($self);
};
sub MY::postamble { pdlpp_postamble(@pd_srcs) }
WriteMakefile(
NAME => 'PDL::Transform::Proj4',
VERSION_FROM => 'lib/PDL/Transform/Proj4.pd',
MIN_PERL_VERSION => '5.016',
AUTHOR => 'PerlDL Developers <pdl-general@lists.sourceforge.net>',
LICENSE=> "perl",
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
'PDL' => '2.096',
'Alien::proj' => '1.29', # guarantee minimum PROJ 7.1 as need degree_output
},
PREREQ_PM => {
'PDL' => '2.096',
},
TEST_REQUIRES => {
'Test::More' => '0.88',
},
LIBS => [ '-lproj' ],
clean => { FILES => join ' ', qw(MANIFEST.bak) },
NO_MYMETA => 1,
);
|