File: Makefile.PL

package info (click to toggle)
perl 5.40.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 126,156 kB
  • sloc: ansic: 668,539; perl: 525,522; sh: 72,038; pascal: 6,925; xml: 2,428; yacc: 1,410; makefile: 1,191; cpp: 208; lisp: 1
file content (52 lines) | stat: -rw-r--r-- 1,542 bytes parent folder | download | duplicates (4)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
# This -*- perl -*- script makes the Makefile

BEGIN { require 5.008_001 }
use ExtUtils::MakeMaker;
use Config qw(%Config);
my $PERL_CORE = grep { $_ eq 'PERL_CORE=1' } @ARGV;

#--- Attempt to find <poll.h>

my $define = "";

unless ( $PERL_CORE or exists $Config{'i_poll'} ) {
    my @inc = split( /\s+/, join( " ", $Config{'usrinc'}, $Config{'incpth'}, $Config{'locincpth'} ) );
    foreach my $path (@inc) {
        if ( -f $path . "/poll.h" ) {
            $define .= "-DI_POLL ";
            last;
        }
    }
}

#--- Write the Makefile

WriteMakefile(
    VERSION_FROM => "IO.pm",
    NAME         => "IO",
    OBJECT       => '$(O_FILES)',
    ABSTRACT     => 'Perl core IO modules',
    AUTHOR       => 'Perl5 Porters <perl5-porters@perl.org>',
    PREREQ_PM    => {
        'Test::More' => 0,
        'File::Temp' => '0.15',
    },
    (
        $PERL_CORE
        ? ()
        : (
            INSTALLDIRS => ( $] < 5.011 ? 'perl' : 'site' ),
            clean       => { FILES => 'typemap' },
        )
    ),
    ( $define                                      ? ( DEFINE    => $define ) : () ),
    ( ( ExtUtils::MakeMaker->VERSION() gt '6.30' ) ? ( 'LICENSE' => 'perl' )  : () ),
    META_MERGE => {
        resources => {
            license     => 'http://dev.perl.org/licenses/',
            bugtracker  => 'https://github.com/perl/perl5/issues',
            repository  => 'https://github.com/Perl/perl5/tree/blead/dist/IO',
            MailingList => 'http://lists.perl.org/list/perl5-porters.html',
        },
    },
);