Alien-HDF4
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
die <<EOF unless defined $incpath;
Cannot find hdf header file, hdf.h.
Please add the correct library path to Makefile.PL or install HDF
EOF
my $defs = finddefs();
print <<EOF unless length $defs;
WARNING: Unknown cpu type $Config{archname}! Not setting \$hdf_defs.
(This may not be a bad thing)
EOF
print "Final \$hdf_defs flags: '$defs'\n";
my ($szlibs) = findsz();
print "Warning: Did not find libsz, necessary for HDF >= 4.2r0\n"
unless $szlibs;
my $version = get_version();
my @pms = qw(Alien/HDF4.pm Alien/HDF4/Install/Files.pm);
WriteMakefile(
NAME => 'Alien::HDF4',
}
return ''; # not a failure
}
sub get_build {
my ($libpath, $libs) = findlibs();
my ($incpath) = findinc();
my $defs = finddefs();
my ($szlibs) = findsz();
{
cflags => qq{$defs "-I$incpath"},
libs => qq{"-L$libpath" $libs -ljpeg -lz $szlibs},
}
}
1;
lib/Alien/HDF4/Install/Files.pm.PL view on Meta::CPAN
use strict;
use warnings;
use ExtUtils::Depends;
require './common.pl';
my $build_hash = get_build();
my $pkg = ExtUtils::Depends->new('Alien::HDF4');
my $eud_files = shift;
$pkg->set_inc($build_hash->{cflags});
$pkg->set_libs($build_hash->{libs});
$pkg->save_config($eud_files);
( run in 0.284 second using v1.01-cache-2.11-cpan-94b05bcf43c )