1 package ExtUtils
::MM_Cygwin
;
8 Exporter
::import
('ExtUtils::MakeMaker',
9 qw( $Verbose &neatvalue));
11 unshift @MM::ISA, 'ExtUtils::MM_Cygwin';
16 return $self->ExtUtils::MM_Unix::canonpath($path);
20 my($self,$libperl)=@_;
21 return $self->{CFLAGS} if $self->{CFLAGS};
22 my $base =$self->ExtUtils::MM_Unix::cflags($libperl);
23 foreach (split /\n/, $base) {
24 / *= */ and $self->{$`} = $';
26 $self->{CCFLAGS} .= " -DUSEIMPORTLIB" if ($Config{useshrplib} eq 'true');
28 return $self->{CFLAGS} = qq{
29 CCFLAGS = $self->{CCFLAGS}
30 OPTIMIZE = $self->{OPTIMIZE}
31 PERLTYPE = $self->{PERLTYPE}
32 LARGE = $self->{LARGE}
33 SPLIT = $self->{SPLIT}
39 my($self, %attribs) = @_;
40 return "\nmanifypods : pure_all\n\t$self->{NOECHO}\$(NOOP)\n" unless
41 %{$self->{MAN3PODS}} or %{$self->{MAN1PODS}};
44 if (defined $self->{PERL_SRC}) {
45 $pod2man_exe = $self->catfile($self->{PERL_SRC},'pod','pod2man');
47 $pod2man_exe = $self->catfile($Config{scriptdirexp},'pod2man');
49 unless ($self->perl_script($pod2man_exe)) {
50 # No pod2man but some MAN3PODS to be installed
53 Warning: I could not locate your pod2man program. Please make sure,
54 your pod2man program is in your PATH before you execute 'make'
57 $pod2man_exe = "-S pod2man";
61 qq[POD2MAN_EXE
= $pod2man_exe\n],
62 qq[POD2MAN
= \
$(PERL
) -we
'%m=\@ARGV;for (keys %m){' \\\n],
63 q
[-e
'next if -e $$m{$$_} && -M $$m{$$_} < -M $$_ && -M $$m{$$_} < -M "],
64 $self->{MAKEFILE}, q[";' \\
65 -e
'print "Manifying $$m{$$_}\n"; $$m{$$_} =~ s/::/./g;' \\
66 -e
'system(qq[$$^X ].q["-I$(PERL_ARCHLIB)" "-I$(PERL_LIB)" $(POD2MAN_EXE) ].qq[$$_>$$m{$$_}])==0 or warn "Couldn\\047t install $$m{$$_}\n";' \\
67 -e
'chmod(oct($(PERM_RW))), $$m{$$_} or warn "chmod $(PERM_RW) $$m{$$_}: $$!\n";}'
69 push @m, "\nmanifypods : pure_all ";
70 push @m, join " \\\n\t", keys %{$self->{MAN1PODS
}}, keys %{$self->{MAN3PODS
}};
73 if (%{$self->{MAN1PODS
}} || %{$self->{MAN3PODS
}}) {
74 grep { $self->{MAN1PODS
}{$_} =~ s/::/./g } keys %{$self->{MAN1PODS
}};
75 grep { $self->{MAN3PODS
}{$_} =~ s/::/./g } keys %{$self->{MAN3PODS
}};
76 push @m, "\t$self->{NOECHO}\$(POD2MAN) \\\n\t";
77 push @m, join " \\\n\t", %{$self->{MAN1PODS
}}, %{$self->{MAN3PODS
}};
84 return '$(PERL_INC)' .'/'. ("$Config{libperl}" or "libperl.a");
92 ExtUtils::MM_Cygwin - methods to override UN*X behaviour in ExtUtils::MakeMaker
96 use ExtUtils::MM_Cygwin; # Done internally by ExtUtils::MakeMaker if needed
100 See ExtUtils::MM_Unix for a documentation of the methods provided there.
106 replaces backslashes with forward ones. then acts as *nixish.
110 if configured for dynamic loading, triggers #define EXT in EXTERN.h
114 replaces strings '::' with '.' in man page names