File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,11 @@ use strict;
22use warnings;
33use ExtUtils::MakeMaker;
44use PDL::Core::Dev;
5+ use Alien::proj;
56
67my $package_name = " PDL::Transform::Proj4" ;
78my $lib_name = " Proj4" ;
89
9- eval { require Alien::proj };
10- if ($@ ) {
11- write_dummy_make(" Will skip build of $package_name on this system - no Alien::proj" );
12- return ;
13- }
14-
1510my $ppfile = " proj4.pd" ;
1611my $package = [$ppfile , ' Proj4' , $package_name ];
1712my %hash = pdlpp_stdargs($package );
@@ -21,6 +16,18 @@ $hash{INC} .= ' ' . Alien::proj->cflags;
2116$hash {realclean } ||= { FILES => ' Proj4.xs' };
2217$hash {realclean }{FILES } .= ' _Inline' ;
2318$hash {PM }{' Demo.pm' } = ' $(INST_LIB)/PDL/Demos/Proj4_demo.pm' ;
19+ $hash {CONFIGURE_REQUIRES } = {
20+ ' ExtUtils::MakeMaker' => 0,
21+ ' PDL' => ' 2.094' ,
22+ ' Alien::proj' => ' 1.29' , # guarantee minimum PROJ 7.1 as need degree_output
23+ };
24+ $hash {PREREQ_PM } = {
25+ ' PDL' => ' 2.094' ,
26+ };
27+ $hash {TEST_REQUIRES } = {
28+ ' Test::More' => ' 0.88' ,
29+ };
30+ $hash {
AUTHOR } =
' PerlDL Developers <[email protected] >' ;
2431
2532undef &MY::postamble; # suppress warning
2633*MY::postamble = sub { pdlpp_postamble( $package ); };
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ use File::Spec;
99use Alien::proj;
1010
1111our $VERSION = "2.096";
12+ pp_setversion($VERSION);
1213
1314pp_add_isa( 'PDL::Transform' );
1415
You can’t perform that action at this time.
0 commit comments