File: Makefile.PL

package info (click to toggle)
libimage-rsvg-perl 0.05-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 496 kB
  • ctags: 117
  • sloc: perl: 81; makefile: 49
file content (18 lines) | stat: -rw-r--r-- 575 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use ExtUtils::MakeMaker;

my %config;

$config{INC} = ' ' . `pkg-config --cflags librsvg-2.0`;
$config{LIBS} = ' ' . `pkg-config --libs-only-l librsvg-2.0`;
$config{DEFINE} = ' -DHAVE_SVGZ=1';
$config{PM} = { 'lib/Image/LibRSVG.pm' => '$(INST_LIBDIR)/LibRSVG.pm'
              };

# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
    'NAME'		=> 'Image::LibRSVG',
    'VERSION_FROM'	=> 'lib/Image/LibRSVG.pm', # finds $VERSION
    'PREREQ_PM'		=> {}, # e.g., Module::Name => 1.1
       %config,
);