forked from chocolateboy/true
/
Makefile.PL
55 lines (48 loc) · 1.37 KB
/
Makefile.PL
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
53
54
55
use 5.008001;
use strict;
use warnings;
use ExtUtils::MakeMaker;
use ExtUtils::Depends;
use Config;
our $OPTIMIZE;
if ($Config{gccversion}) {
$OPTIMIZE = '-O3 -Wall -W';
$OPTIMIZE .= ' -g -Wextra -Wdeclaration-after-statement' if (-d 'dev');
} elsif ($Config{osname} eq 'MSWin32') {
$OPTIMIZE = '-O2 -W4';
} else {
$OPTIMIZE = $Config{optimize};
}
our %XS_PREREQUISITES = (
'B::Hooks::OP::Annotation' => '0.43',
'B::Hooks::OP::Check' => '0.18',
);
our %XS_DEPENDENCIES = ExtUtils::Depends->new('true', keys(%XS_PREREQUISITES))->get_makefile_vars();
WriteMakefile(
NAME => 'true',
VERSION_FROM => 'lib/true.pm',
PREREQ_PM => {
%XS_PREREQUISITES,
'Devel::StackTrace' => '1.27',
},
ABSTRACT_FROM => 'lib/true.pm',
AUTHOR => 'chocolateboy <chocolate@cpan.org>',
LIBS => [''],
DEFINE => '',
INC => '-I.',
OPTIMIZE => $OPTIMIZE,
($ExtUtils::MakeMaker::VERSION ge 6.46 ?
(META_MERGE => {
configure_requires => {
'ExtUtils::Depends' => '0.304',
%XS_PREREQUISITES
},
resources => {
repository => 'http://github.com/chocolateboy/true',
},
})
: ()
),
($ExtUtils::MakeMaker::VERSION ge 6.31 ? (LICENSE => 'perl') : ()),
%XS_DEPENDENCIES,
);