File: Makefile.PL

package info (click to toggle)
libsys-utmp-perl 1.8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 176 kB
  • sloc: perl: 226; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 902 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
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         => ''
);