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
|
# $Id$
use ExtUtils::MakeMaker;
use ExtUtils::PkgConfig;
use Config;
# It's 2007. Time to forget about 5.005.
use 5.006;
my %flags;
if (ExtUtils::PkgConfig->exists('libnsl')) {
%flags = ExtUtils::PkgConfig->find('libnsl');
} else {
$flags{cflags} = '';
$flags{libs} = '-lnsl';
}
WriteMakefile(
NAME => 'Net::NIS',
AUTHOR => 'Eduardo Santiago <[email protected]>',
VERSION_FROM => 'NIS.pm',
ABSTRACT_FROM => 'NIS.pod',
CCFLAGS => join(' ', $Config{ccflags}, $flags{cflags}),
LIBS => $flags{libs},
PREREQ_PM => { 'Config' => '0', 'ExtUtils::PkgConfig' => '0', 'Test::More' => 0 },
# The PREOP condition prevents me from doing incomplete releases :-)
dist => {
COMPRESS => 'gzip -9f',
SUFFIX => 'gz',
PREOP => 'fgrep \?\? Changes && exit 1 || true',
},
);
|