summaryrefslogtreecommitdiff
path: root/Expat/Makefile.PL
diff options
context:
space:
mode:
Diffstat (limited to 'Expat/Makefile.PL')
-rw-r--r--Expat/Makefile.PL29
1 files changed, 29 insertions, 0 deletions
diff --git a/Expat/Makefile.PL b/Expat/Makefile.PL
new file mode 100644
index 0000000..6d5111c
--- /dev/null
+++ b/Expat/Makefile.PL
@@ -0,0 +1,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
+);
+