summaryrefslogtreecommitdiff
path: root/Expat/Makefile.PL
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2007-11-20 14:28:05 +0000
committer <>2013-08-08 17:01:04 +0000
commitc97631728ce7d6d3f4692a56c3cda7476b42a968 (patch)
tree8c00053771ccae41a737eecd072dbb3cd8b06fdd /Expat/Makefile.PL
downloadperl-xml-parser-master.tar.gz
Imported from /home/lorry/working-area/delta_perl-xml-parser/XML-Parser-2.36.tar.gz.HEADXML-Parser-2.36master
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
+);
+