1 ################################################################################
5 # $Date: 2008/11/26 23:12:58 +0100 $
7 ################################################################################
9 # Version 2.x, Copyright (C) 2007, Marcus Holland-Moritz <mhx@cpan.org>.
10 # Version 1.x, Copyright (C) 1999, Graham Barr <gbarr@pobox.com>.
12 # This program is free software; you can redistribute it and/or
13 # modify it under the same terms as Perl itself.
15 ################################################################################
20 use ExtUtils::MakeMaker;
22 unless ($ENV{'PERL_CORE'}) {
23 $ENV{'PERL_CORE'} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV;
26 if ($^O eq 'MSWin32') {
27 die "OS unsupported\n";
32 VERSION_FROM => 'lib/IPC/SysV.pm',
36 CONFIGURE => \&configure,
44 if (eval $ExtUtils::MakeMaker::VERSION >= 6) {
45 push @moreopts, AUTHOR => 'Marcus Holland-Moritz <mhx@cpan.org>',
46 ABSTRACT_FROM => 'lib/IPC/SysV.pm';
49 if (eval $ExtUtils::MakeMaker::VERSION >= 6.30_01) {
50 print "Setting license tag...\n";
51 push @moreopts, LICENSE => 'perl';
54 if ($ENV{'PERL_CORE'}) {
55 # Pods will be built by installman.
56 push @moreopts, MAN3PODS => {},
57 realclean => { FILES => "const-c.inc const-xs.inc" };
60 # IPC::SysV is in the core since 5.005
61 push @moreopts, INSTALLDIRS => ($] >= 5.005 ? 'perl' : 'site');
64 $depend{'SysV.xs'} = 'const-c.inc const-xs.inc';
78 my($self, $path) = @_;
79 return $path if $self->SUPER::libscan($path) and
81 | \.(cache\.cm|swp|orig|rej)$
90 my $post = shift->SUPER::postamble(@_);
91 $post .= <<'POSTAMBLE';
94 @$(RM_F) const-c.inc const-xs.inc
97 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) regen.pl
99 const-c.inc: lib/IPC/SysV.pm regen.pl
102 const-xs.inc: lib/IPC/SysV.pm regen.pl