Skip to content

Commit 1dc2dd8

Browse files
committed
basics to compile
1 parent 8844200 commit 1dc2dd8

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

Makefile.PL

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
use strict;
22
use warnings;
33
use ExtUtils::MakeMaker;
4-
5-
# Make sure everything we wanted is found:
6-
if (!eval { require ExtUtils::Depends; ExtUtils::Depends->new(qw(PDL::IO::HDF Alien::HDF4)) }) {
7-
my $msg = "Error loading Alien::HDF4: '$@'\n";
8-
$msg .= "Skipping build of PDL::IO::HDF.\n";
9-
write_dummy_make( $msg );
10-
return;
11-
}
4+
use PDL::Core::Dev;
5+
require ExtUtils::Depends;
6+
require File::Spec::Functions;
127

138
WriteMakefile(
14-
NAME => 'PDL::IO::HDF',
15-
VERSION_FROM => 'HDF.pm',
16-
PM => {
17-
'HDF.pm' => '$(INST_LIBDIR)/HDF.pm',
18-
},
19-
dist => {
20-
COMPRESS => 'gzip',
21-
SUFFIX => 'gz',
22-
},
23-
NO_MYMETA => 1,
9+
NAME => 'PDL::IO::HDF',
10+
AUTHOR => 'PerlDL Developers <pdl-general@lists.sourceforge.net>',
11+
VERSION_FROM => 'HDF.pm',
12+
CONFIGURE_REQUIRES => {
13+
'ExtUtils::MakeMaker' => 0,
14+
'PDL' => '2.094',
15+
'ExtUtils::Depends' => '0.402',
16+
'Alien::HDF4' => 0,
17+
},
18+
PREREQ_PM => {
19+
'PDL' => '2.094',
20+
},
21+
TEST_REQUIRES => {
22+
'Test::More' => '0.88',
23+
},
24+
PM => { 'HDF.pm' => '$(INST_LIBDIR)/HDF.pm' },
25+
dist => { COMPRESS => 'gzip', SUFFIX => 'gz' },
2426
);

SD/Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $pkg->add_pm(
1212
);
1313

1414
undef &MY::postamble; # suppress warning
15-
*MY::postamble = sub { pdlpp_postamble_int($package); };
15+
*MY::postamble = sub { pdlpp_postamble($package); };
1616

1717
WriteMakefile(
1818
NAME => 'PDL::IO::HDF::SD',

VS/Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use Config;
66
my $package = [ qw(VS.pd VS PDL::IO::HDF::VS) ];
77

88
undef &MY::postamble; # suppress warning
9-
*MY::postamble = sub { pdlpp_postamble_int($package); };
9+
*MY::postamble = sub { pdlpp_postamble($package); };
1010

1111
my $pkg = ExtUtils::Depends->new(qw(PDL::IO::HDF::VS Alien::HDF4));
1212
$pkg->set_inc(&PDL_INCLUDE());

0 commit comments

Comments
 (0)