This repository has been archived by the owner on Mar 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
56 lines (49 loc) · 1.44 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
56
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('mysubs', keys(%XS_PREREQUISITES))->get_makefile_vars();
WriteMakefile(
NAME => 'mysubs',
VERSION_FROM => 'lib/mysubs.pm',
PREREQ_PM => {
'B::Hooks::EndOfScope' => '0.09',
'Devel::Pragma' => '0.54',
%XS_PREREQUISITES
},
ABSTRACT_FROM => 'lib/mysubs.pm',
AUTHOR => 'chocolateboy <[email protected]>',
LIBS => [''],
DEFINE => '',
INC => '-I.',
OPTIMIZE => $OPTIMIZE,
(eval($ExtUtils::MakeMaker::VERSION) >= '6.46' ?
(META_MERGE => {
configure_requires => {
'ExtUtils::Depends' => '0.304',
%XS_PREREQUISITES
},
resources => {
repository => 'http://github.com/chocolateboy/mysubs'
},
})
: ()
),
(eval($ExtUtils::MakeMaker::VERSION) >= '6.31' ? (LICENSE => 'perl') : ()),
%XS_DEPENDENCIES,
);