File: Makefile.PL

package info (click to toggle)
libnet-nis-perl 0.44-4
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 196 kB
  • sloc: perl: 232; makefile: 3; ansic: 1
file content (33 lines) | stat: -rw-r--r-- 881 bytes parent folder | download | duplicates (2)
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',
    },

);