#! perl
use strict;
exit 0 if $ENV{AUTOMATED_TESTING} && $] < 5.026000;
use ExtUtils::MakeMaker 7.24; # comes with 5.26
my $version = MM->parse_version("lib/SVGPDF.pm");
# For binaries/scripts.
my @bins; # = qw( prog );
my @pdfapi = ( 'PDF::API2' => 2.043 ); # default
if ( my $a = $ENV{SVGPDF_API} ) {
if ( $a =~ /PDF::Builder/ ) {
@pdfapi = ( 'PDF::Builder' => 3.025 );
}
elsif ( $a =~ /PDF::API2/ ) {
}
else {
@pdfapi = ( $a => 0 );
}
}
WriteMakefile(
NAME => 'SVGPDF',
AUTHOR => 'Johan Vromans <jvromans@squirrel.nl>',
VERSION => $version,
ABSTRACT => 'SVG renderer for PDF::API2',
LICENSE => 'freebsd',
PL_FILES => {},
MIN_PERL_VERSION => 5.026000,
@bins == 0 ? () : (
EXE_FILES => [ map { "script/$_" } @bins ],
PL_FILES => {
'script/pp.PL' => [ map { "script/$_" } @bins ]
},
),
PREREQ_PM => {
@pdfapi,
'File::LoadLines' => 1.044,
'Image::Info' => 1.42,
'Object::Pad' => 0.78,
},
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 7.24,
},
META_MERGE => {
resources => {
},
provides => {
SVGPDF => { file => "lib/SVGPDF.pm",
version => $version,
},
},
no_index => {
directory => [
"lib/SVGPDF",
],
},
},
);