-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.PL
53 lines (40 loc) · 1.25 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
# This -*- perl -*- script makes the Makefile
# $Id: Makefile.PL,v 1.6 2000-01-04 05:55:34 mgjv Exp $
#--- Distribution section ---
use ExtUtils::MakeMaker;
WriteMakefile(
'VERSION_FROM' => 'GIFgraph.pm',
'DISTNAME' => 'GIFgraph',
'NAME' => 'GIFgraph',
($] >= 5.005 ?
('ABSTRACT' => 'Produce GIF charts with GD',
'AUTHOR' => 'Martien Verbruggen ([email protected])',
) : ()
),
'PMLIBDIRS' => [ qw(Bundle GIFgraph) ],
'PREREQ_PM' => {
'GD::Graph' => '1.20',
'GD' => '1.14'
},
'dist' => {
'COMPRESS' => 'gzip -9f',
'SUFFIX' => 'gz',
},
'clean' => { 'FILES' => q(*% *.b[ac]k *.old tags) },
);
# GD has already been 'required' by the WriteMakeFile call, but it
# doesn't hurt to do it again.
require GD;
# REMOVE THE FOLLOWING CHECKS IF YOU DON'T USE Image::Magick AND YOU
# HAVE EDITED GIFgraph::Convert.
if (GD::Image->can('png'))
{
print "Checking for conversion of PNG to GIF\n";
require GIFgraph::Convert;
GIFgraph::Convert::checkImageMagick();
}
print <<END;
Please read the README. GIFgraph is now a wrapper around GD::Graph, and
requires GD::Graph and GDTextUtils to be installed. it also requires
some conversion software for use with GD >= 1.20.
END