1 ## --Makefile.PL for Bioperl core module distribution--##
2 ## ----------------------------------------------------##
7 # Basically this is a standard makefile except
8 # that we are experimenting with an 'optional autoload'
11 # At the moment, (oct 1998) this don't work, so it
12 # is switched off, hence $do_autoload_finesse =0; [EB]
14 # If you want help with this Makefile get in touch with
15 # the bioperl core by sending a message to bioperl-bugs@bio.perl.org
16 # for real bugs or vsns-bcd-perl-guts@lists.uni-bielefeld.de
17 # to send a mail to all the bioperl core developpers.
21 # Talk to Ewan (<birney@sanger.ac.uk>) for more info.
24 # Let the code begin...
27 use ExtUtils::MakeMaker;
29 $do_autoload_finesse = 0;
31 $DISTNAME = "bioperl";
34 if( $do_autoload_finesse == 1 ) {
35 fatal("Autoload finessing does not work at the moment!");
38 # don't catch signals - it is very boring!
41 ##Catch signals and invoke a cleanup function
42 #$SIG{__WARN__} = $SIG{INT} = $SIG{QUIT} =\&cleanup;
45 @BACKUP_FILES = qw(./Seq.pm.bak);
48 # This does an inplace edit on Seq.pm
51 if( $do_autoload_finesse ) {
53 print "Bioperl module installation\nPreparing modules for AUTOLOADing...";
54 `perl -p -i.bak -e 's/#__END__/__END__/' Seq.pm`;
58 # Check for LWP and warn that Webblast requires it.
60 unless( eval "require HTTP::Request::Common" and
61 eval "require LWP::UserAgent") {
63 print STDERR <<QQ_MISSING_LWP_QQ;
65 ======================================================
66 WARNING: LWP IS NOT INSTALLED.
68 Webblast.pm now requires the LWP (libwww-perl) modules.
69 To launch remote BLASTs, you will need to install
70 these most-excellent modules which can be readily
71 obtained from your local CPAN site:
72 http://www.perl.com/CPAN/
74 But don't worry, the rest of bioperl will work fine
75 ======================================================
80 # Check for Ace and warn that Bio::DB::Ace
82 unless( eval "require Ace" ) {
84 print STDERR <<QQ_MISSING_ACE_QQ;
86 ======================================================
87 WARNING: Ace IS NOT INSTALLED.
89 Ace.pm (AcePerl) is not installed. Bio::DB::Ace
90 requires it for access to acedb databases. You can
91 download this sweet module from
92 http://stein.cshl.org/AcePerl
94 But don't worry, the rest of bioperl will work fine
95 ======================================================
102 DISTNAME => $DISTNAME,
104 'dist' => { COMPRESS => 'gzip -9f',
106 DIST_DEFAULT => 'all tardist',
109 'realclean' => { FILES => join(' ',@BACKUP_FILES) }
115 print "\n** [$0] Caught a SIG$sig -- cleaning up and shutting down.\n";
117 ## Try to keep module pristine & recover from any inplace edits
118 if(-e "./Seq.pm.bak") { `cp ./Seq.pm.bak ./Seq.pm.dist`; `mv ./Seq.pm.bak ./Seq.pm`; }