-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.PL
86 lines (82 loc) · 1.46 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
#!perl -w
use strict;
use ExtUtils::MakeMaker;
my %opts =
(
NAME => 'Imager::File::APNG',
VERSION_FROM => 'lib/Imager/File/APNG.pm',
clean => { FILES => 'testout' },
);
if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
$opts{LICENSE} = "perl_5";
$opts{AUTHOR} = 'Tony Cook <[email protected]>';
$opts{ABSTRACT} = 'APNG image file support for Imager';
$opts{META_MERGE} =
{
'meta-spec' =>
{
version => "2",
url => "https://metacpan.org/pod/CPAN::Meta::Spec",
},
resources =>
{
homepage => "http://imager.perl.org/",
repository =>
{
type => "git",
url => "https://github.com/tonycoz/imager-file-apng.git",
web => "https://github.com/tonycoz/imager-file-apng",
},
bugtracker =>
{
web => "https://github.com/tonycoz/imager-file-apng/issues",
},
},
};
}
# Imager required configure through use
my @req =
(
Imager => "1.013",
"Imager::File::PNG" => "0.99",
);
if (eval { ExtUtils::MakeMaker->VERSION('6.46'); 1 }) {
$opts{META_MERGE}{prereqs} =
{
configure =>
{
requires =>
{
@req,
},
},
build =>
{
requires =>
{
@req,
"Test::More" => "0.47",
}
},
runtime =>
{
requires =>
{
@req,
}
},
test =>
{
requires =>
{
"Test::More" => "0.47",
"File::Spec" => 0,
}
},
};
$opts{PREREQ_PM} =
{
@req,
};
}
WriteMakefile(%opts);