]> git.vpit.fr Git - perl/modules/indirect.git/blob - Makefile.PL
Introduce I_FORKSAFE
[perl/modules/indirect.git] / Makefile.PL
1 use 5.008;
2
3 use strict;
4 use warnings;
5 use ExtUtils::MakeMaker;
6
7 my @DEFINES;
8
9 # Threads, Windows and 5.8.x don't seem to be best friends
10 if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
11  push @DEFINES, '-DI_MULTIPLICITY=0';
12 }
13
14 # Fork emulation got "fixed" in 5.10.1
15 if ($^O eq 'MSWin32' && $^V lt v5.10.1) {
16  push @DEFINES, '-DI_FORKSAFE=0';
17 }
18
19 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
20
21 my $dist = 'indirect';
22
23 my %META = (
24  configure_requires => {
25   'ExtUtils::MakeMaker' => 0,
26  },
27  build_requires => {
28   'ExtUtils::MakeMaker' => 0,
29   'Test::More'          => 0,
30  },
31  resources => {
32   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
33   homepage   => "http://search.cpan.org/dist/$dist/",
34   license    => 'http://dev.perl.org/licenses/',
35   repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
36  },
37 );
38
39 WriteMakefile(
40     NAME             => 'indirect',
41     AUTHOR           => 'Vincent Pit <perl@profvince.com>',
42     LICENSE          => 'perl',
43     VERSION_FROM     => 'lib/indirect.pm',
44     ABSTRACT_FROM    => 'lib/indirect.pm',
45     PL_FILES         => {},
46     @DEFINES,
47     PREREQ_PM        => {
48         'XSLoader' => 0,
49     },
50     MIN_PERL_VERSION => 5.008,
51     META_MERGE       => \%META,
52     dist             => {
53         PREOP    => 'pod2text lib/indirect.pm > $(DISTVNAME)/README',
54         COMPRESS => 'gzip -9f', SUFFIX => 'gz'
55     },
56     clean            => {
57         FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"
58     },
59 );