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 37 38 39
|
use ExtUtils::MakeMaker;
my (
$define,
$libs
);
# This may require some refinement
if ( $^O =~ /netbsd/i ) {
$defined = "";
}
elsif ( $^O =~ /bsd/i ) {
$define = '-DNOUTFUNCS';
}
else {
$define = '';
}
WriteMakefile(
NAME => 'Sys::Utmp',
VERSION_FROM => 'lib/Sys/Utmp.pm',
PREREQ_PM => {'Test::More' => 0 },
LICENSE => 'perl',
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => 'https://github.com/jonathanstowe/Sys-Utmp.git',
web => 'https://github.com/jonathanstowe/Sys-Utmp',
},
},
},
ABSTRACT_FROM => 'lib/Sys/Utmp.pm',
AUTHOR => 'Jonathan Stowe <jns@gellyfish.co.uk>',
LIBS => ['-lc'],
DEFINE => $define,
INC => ''
);
|