Image-Thumbnail

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

{
	last;
	use ExtUtils::Manifest ;
	ExtUtils::Manifest::mkmanifest();
	exit;
}

use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

my @m = qw( Imager GD Image::Magick Image::Epeg);

print "This module requires at least one of: ", join(",",@m),"...\n";

foreach (@m){
	print "Looking for $_ ... ";
	eval "require "."$_";
	if ($@){
		print "not found\n";
	} else {
		print "ok\n";
		$ok = 1;
		last;
	}
}


if (not $ok){
	print <<_STOP_

This module requires you have installed on your system
one of either the GD, Imager, or Image::Magick Perl modules.

It appears you have none of these.

If you feel this message to be in error, please contact
Lee, at LGoddard-at-CPAN-dot-org.

_STOP_

} else {
	WriteMakefile(
		( MM->can( 'signature_target' ) ? ( SIGN => 1 ) : () ),
		license( 'perl' ),
		'NAME'		=> 'Image::Thumbnail',
		'VERSION_FROM'	=> 'lib/Image/Thumbnail.pm', # finds $VERSION
		'PREREQ_PM'		=> {Test::Harness=>0.1,Test::More=>0,},
		($] >= 5.005 ?    ## Add these new keywords supported since 5.005
		  (ABSTRACT_FROM => 'lib/Image/Thumbnail.pm', # retrieve abstract from module
		   AUTHOR     => 'Lee Goddard <lgoddard -at- cpan -dot- org>') : ()),
	);
}


sub license {
  my $lic = shift;
  local $^W = 0;    # Silence warning about non-numeric version
  return
   unless $ExtUtils::MakeMaker::VERSION >= '6.31';
  return ( LICENSE => $lic );
}




( run in 2.130 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )