File: Makefile.PL

package info (click to toggle)
libxml-parser-perl 2.41-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,240 kB
  • ctags: 184
  • sloc: xml: 3,937; perl: 1,678; ansic: 27; makefile: 26
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
);