1 ## --Makefile.PL for Bioperl core module distribution--##
2 ## ----------------------------------------------------##
4 ##----------------------------------------------------
6 # Basically this is a standard Makefile with a hash of
7 # needed packages which are tested at the start
9 # If you want help with this Makefile get in touch with
10 # the developers by sending a message to bioperl-l@bioperl.org.
12 # All Bioperl-db dependencies on external modules are defined here
14 'DBI' => '0.0/Database Access/this entire package/',
15 'Bio::Root::Version' => '0.0/Bioperl//',
20 my($ver,$desc,$expl,@modules);
22 ($ver,$desc,$expl,$module) = split( /\// , $str);
23 if( !eval "require $name") {
24 if ($name eq 'Bio::Root::Version') {
25 print "Bioperl-db absolutely needs Bioperl to work - It makes no sense without it\n";
28 print "External Module $name, $desc,\n is not installed on this computer.\n The $module in Bioperl-db needs it for $expl\n\n";
36 # Generate sub testing package system
40 # make mini test targets for playing around with
43 opendir(DIR,"t") || warn "No test directory. Weird!";
44 @files = readdir(DIR);
47 foreach my $file (@files) {
48 $file =~ /(\w+)\.t/ || next;
50 $line = "test_$file :: pure_all\n\tPERL_DL_NONLAZY=1 \$(FULLPERL) -I\$(INST_ARCHLIB) -I\$(INST_LIB) -I\$(PERL_ARCHLIB) -I\$(PERL_LIB) -e \'use Test::Harness qw(&runtests \$\$verbose); \$\$verbose=\$(TEST_VERBOSE); runtests \@ARGV;\' t/$file.t\n";
53 $tset .= "$file \\\n";
56 $tline = join('',@tline);
57 $tline = "show_tests :\n\t\@echo \'type make test_<subtest> to run\'\n\t\@echo '$tset'\n$tline\n";
59 print STDERR "Generated sub tests. go make show_tests to see available subtests\n";
67 use ExtUtils::MakeMaker;
70 $DISTNAME = "bioperl-db";
74 foreach $name ( keys %packages ) {
75 if( &check_package($name,$packages{$name}) == 1 ) {
85 There are some external packages, listed above, which bioperl
86 uses. This only effects the functionality which is listed above:
87 the rest of bioperl will work fine.
89 The installation of these external packages is very simple. You
90 can read more about the external packages at
92 http://bio.perl.org/Core/external.shtml
96 ftp://bio.perl.org/pub/external/
98 has all the external packages for easy retrieval, or you can use CPAN
100 Enjoy the rest of bioperl, which you can use after going 'make install'
107 # generate hash for prerequisites
108 # for use in WriteMakefile
110 while (my ($key, $value) = each %packages) {
111 my ($version,$desc,$expl,$module) = split( /\// , $value);
112 $prereq{$key} = $version;
117 DISTNAME => $DISTNAME,
119 dist => { COMPRESS => 'gzip -9f',
121 DIST_DEFAULT => 'all tardist',
124 'AUTHOR' => 'Bioperl Team (bioperl-l@bioperl.org)',
125 'ABSTRACT' => 'Bioperl DB',
127 realclean => { FILES => join(' ', @BACKUP_FILES) },
128 DIR => [ ], # directories with other Makefile.PL's in them
129 PREREQ_PM => \%prereq,