1use strict; 2use warnings; 3use ExtUtils::MakeMaker; 4use lib 'inc'; 5use CheckForLibPng; 6 7my $pm = 'lib/Image/PNG/QRCode.pm'; 8my $pod = 'lib/Image/PNG/QRCode.pod'; 9my $github = 'github.com/benkasminbullock/image-png-qrcode'; 10my $repo = "https://$github"; 11 12my $verbose;# = 1; 13 14my $vars = check_for_libpng ($verbose); 15 16if (! $vars) { 17 print STDERR "Could not find libpng, exiting.\n"; 18 exit; 19} 20 21WriteMakefile ( 22 NAME => 'Image::PNG::QRCode', 23 VERSION_FROM => $pm, 24 ABSTRACT_FROM => $pod, 25 AUTHOR => 'Ben Bullock <bkb@cpan.org>', 26 LICENSE => 'gpl_3', 27 PREREQ_PM => { 28 }, 29 LIBS => $vars->{libs}, 30 INC => "-I/usr/local/include", 31 META_MERGE => { 32 'meta-spec' => { 33 version => 2, 34 }, 35 resources => { 36 repository => { 37 type => 'git', 38 url => "git://$github.git", 39 web => $repo, 40 }, 41 bugtracker => { 42 web => "$repo/issues", 43 }, 44# homepage => 'http://', 45 }, 46 }, 47 MIN_PERL_VERSION => '5.006001', 48 OBJECT => 'QRCode.o qrencode.o qrpng.o', 49 # OPTIMIZE => '-Wall -g -O', 50 EXE_FILES => ['script/qrpng',], 51); 52