/usr/local/CPAN/Tk-ContextHelp/Makefile.PL
use ExtUtils::MakeMaker;
if ($^O eq 'MSWin32') {
die <<EOF;
No support for OS.
Tk::InputO is not available for $^O
EOF
}
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile
(
'NAME' => 'Tk::ContextHelp',
'VERSION_FROM' => 'ContextHelp.pm', # finds $VERSION
'PM' =>
{'ContextHelp.pm' => '$(INST_LIBDIR)/ContextHelp.pm',
'context_help.xbm' => '$(INST_LIBDIR)/context_help.xbm',
'context_help_mask.xbm' => '$(INST_LIBDIR)/context_help_mask.xbm',
'context_nohelp.xbm' => '$(INST_LIBDIR)/context_nohelp.xbm',
'context_nohelp_mask.xbm' => '$(INST_LIBDIR)/context_nohelp_mask.xbm',
},
'PREREQ_PM' => {'Tk' => 402.002,
'Tk::Pod' => 4, # really only optional
'Tk::InputO' => 0,
},
);
sub MY::postamble {
my $postamble = "";
if (defined $ENV{USER} && $ENV{USER} eq 'eserte' && $^O =~ /bsd/i && -f "../../perl.release.mk") {
$postamble .= <<'EOF';
.include "../../perl.release.mk"
.include "../../perl.cvs.mk"
EOF
}
$postamble;
}