]> git.ipfire.org Git - thirdparty/git.git/blame - perl/Makefile.PL
Git.pm: Remove PerlIO usage from Git.xs
[thirdparty/git.git] / perl / Makefile.PL
CommitLineData
b1edc53d
PB
1use ExtUtils::MakeMaker;
2
3sub MY::postamble {
4 return <<'MAKE_FRAG';
5instlibdir:
893973a6 6 @echo '$(INSTALLSITEARCH)'
b1edc53d
PB
7
8MAKE_FRAG
9}
10
5c4082fd
PB
11my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm');
12
13# We come with our own bundled Error.pm. It's not in the set of default
14# Perl modules so install it if it's not available on the system yet.
1d8c9dc4 15eval { require Error };
5c4082fd 16if ($@) {
1d8c9dc4 17 $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
5c4082fd
PB
18}
19
b1edc53d
PB
20WriteMakefile(
21 NAME => 'Git',
22 VERSION_FROM => 'Git.pm',
5c4082fd 23 PM => \%pm,
b1edc53d
PB
24 MYEXTLIB => '../libgit.a',
25 INC => '-I. -I..',
26);
27
28
29use Devel::PPPort;
30
31-s 'ppport.h' or Devel::PPPort::WriteFile();