1 ################################################################################
5 # $Date: 2008/01/05 16:41:20 +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 my $msg = "The IPC::SysV module cannot be built on the $^O platform.";
28 my $str = '*' x length $msg;
29 die "\n$str\n$msg\n$str\n\n";
34 VERSION_FROM => 'lib/IPC/SysV.pm',
38 CONFIGURE => \&configure,
46 if (eval $ExtUtils::MakeMaker::VERSION >= 6) {
47 push @moreopts, AUTHOR => 'Marcus Holland-Moritz <mhx@cpan.org>',
48 ABSTRACT_FROM => 'lib/IPC/SysV.pm';
51 if (eval $ExtUtils::MakeMaker::VERSION >= 6.30_01) {
52 print "Setting license tag...\n";
53 push @moreopts, LICENSE => 'perl';
56 if ($ENV{'PERL_CORE'}) {
57 # Pods will be built by installman.
58 push @moreopts, MAN3PODS => {},
59 realclean => { FILES => "const-c.inc const-xs.inc" };
62 # IPC::SysV is in the core since 5.005
63 push @moreopts, INSTALLDIRS => ($] >= 5.005 ? 'perl' : 'site');
66 $depend{'SysV.xs'} = 'const-c.inc const-xs.inc';
80 my($self, $path) = @_;
81 return $path if $self->SUPER::libscan($path) and
83 | \.(cache\.cm|swp|orig|rej)$
92 my $post = shift->SUPER::postamble(@_);
93 $post .= <<'POSTAMBLE';
96 @$(RM_F) const-c.inc const-xs.inc
99 $(PERL) -I$(PERL_ARCHLIB) -I$(PERL_LIB) regen.pl
101 const-c.inc: lib/IPC/SysV.pm regen.pl
104 const-xs.inc: lib/IPC/SysV.pm regen.pl