File: Makefile.PL

package info (click to toggle)
libxml-parser-perl 2.47-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,268 kB
  • sloc: xml: 3,937; perl: 2,026; makefile: 38; ansic: 27
file content (29 lines) | stat: -rw-r--r-- 712 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
use ExtUtils::MakeMaker;
use Config;
use English;

my $libs = "-lexpat";
my @extras = ();

push(@extras, INC => "-I$expat_incpath") if $expat_incpath;

$libs = "-L$expat_libpath $libs" if $expat_libpath;

push(@extras, CAPI => 'TRUE')
    if (($PERL_VERSION >= 5.005) and ($OSNAME eq 'MSWin32')
        and ($Config{archname} =~ /-object\b/i));

push(@extras,
    ABSTRACT => "Lowlevel access to James Clark's expat XML parser",
    AUTHOR   => 'Matt Sergeant (matt@sergeant.org)')
  if ($ExtUtils::MakeMaker::VERSION >= 5.4301);

WriteMakefile(
    NAME	=> 'XML::Parser::Expat',
    C         => ['Expat.c'],
    LIBS	=> $libs,
    XSPROTOARG => '-noprototypes',
    VERSION_FROM => 'Expat.pm',
    @extras
);