1# This -*- perl -*- script makes the Makefile
2# $Id: Makefile.PL,v 1.1.1.1.2.2.2.1 2000/04/05 02:45:37 sbonds Exp $
3
4#--- Distribution section ---
5
6use ExtUtils::MakeMaker;
7
8WriteMakefile(
9		'VERSION_FROM'		=> 'lib/Chart/PNGgraph.pm',	#finds $VERSION
10	      'DISTNAME'  		=> "Chart-PNGgraph",
11	      'NAME'      		=> "Chart::PNGgraph",
12
13		($] >= 5.005 ?
14			('ABSTRACT'		=> 'Produces PNG graph plots',
15			 'AUTHOR'		=> 'Martien Verbruggen (mgjv@comdyn.com.au)',
16			) : ()
17		),
18
19		'PREREQ_PM'			=> {
20			'GD::Graph'	=> '1.20',
21			'GD'		=> '1.14',
22		},
23
24        'dist'    			=> {
25			'COMPRESS' 		=> 'gzip -9f',
26			'SUFFIX'   		=> 'gz',
27		},
28
29        'clean'   	=> { 'FILES' => q(*% *.b[ac]k *.old tags) },
30);
31
32# GD has already been 'required' by the WriteMakeFile call, but it
33# doesn't hurt to do it again.
34require GD;
35
36# REMOVE THE FOLLOWING CHECKS IF YOU DON'T USE Image::Magick AND YOU
37# HAVE EDITED GIFgraph::Convert.
38#if (GD::Image->can('gif'))
39#{
40#	print "Checking for conversion of GIF to PNG\n";
41#	require GIFgraph::Convert;
42#	GIFgraph::Convert::checkImageMagick();
43#}
44
45print <<END;
46
47Please read the README. Chart::PNGgraph is now a wrapper around
48GD::Graph, and requires GD::Graph and GDTextUtils to be installed. it
49also requires some conversion software for use with GD < 1.20.
50
51END
52