This repository has been archived by the owner on Mar 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Makefile.PL
99 lines (87 loc) · 2.57 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
use strict;
use warnings;
use Config;
use ExtUtils::MakeMaker;
my %make_args = (
NAME => 'Alien::Base',
DISTNAME => 'Alien-Base',
LICENSE => 'perl',
MIN_PERL_VERSION => '5.008001',
VERSION_FROM => 'lib/Alien/Base.pm',
AUTHOR => [
'Graham Ollis <[email protected]>',
'Joel A. Berger <[email protected]>',
],
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 0,
},
PREREQ_PM => {
'Capture::Tiny' => 0.17,
'File::ShareDir' => 0,
'Text::ParseWords' => '3.26',
'FFI::CheckLib' => 0.11,
'JSON::PP' => 0,
'Alien::Base::ModuleBuild' => '0.040',
},
BUILD_REQUIRES => {},
TEST_REQUIRES => {
'Test2::V0' => '0.000071',
'Test2::Suite' => '0.000071',
'Test2' => '1.302015',
'File::chdir' => 0.1005,
},
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => "http://github.com/Perl5-Alien/Alien-Base.git",
web => "http://github.com/Perl5-Alien/Alien-Base",
},
bugtracker => {
web => "http://github.com/Perl5-Alien/Alien-Base/issues",
},
homepage => "https://metacpan.org/pod/Alien::Base",
x_MailingList => "https://groups.google.com/forum/#!forum/perl5-alien",
x_IRC => "irc://irc.perl.org/#native",
},
no_index => {
directory => [
"corpus",
"maint",
],
},
dynamic_config => 1,
},
clean => {
FILES => '_Inline Alien-Base-*',
},
);
if($ENV{ALIEN_BASE_NO_ABMB})
{
delete $make_args{'PREREQ_PM'}->{'Alien::Base::ModuleBuild'};
}
unless(`pkg-config --version` && $? == 0) {
$make_args{'PREREQ_PM'}->{'PkgConfig'} = '0.07520';
}
# For now we prefer PkgConfig.pm over pkg-config on
# Solaris 64 bit Perls. We may need to do this on
# other platforms, in which case this logic should
# be abstracted so that it can be shared here and
# in lib/Alien/Base.pm#pkg_config_command
if($^O eq 'solaris' && $Config{ptrsize} == 8) {
$make_args{'PREREQ_PM'}->{'PkgConfig'} = '0.08826';
}
my %fallback = (
%{ $make_args{TEST_REQUIRES} },
%{ $make_args{BUILD_REQUIRES} },
%{ $make_args{PREREQ_PM} },
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
$make_args{PREREQ_PM} = \%fallback;
delete $make_args{TEST_REQUIRES};
delete $make_args{BUILD_REQUIRES};
}
delete $make_args{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
WriteMakefile(%make_args);