use Module::Build;

my $build = Module::Build->new(
    'module_name'   => 'Cipres',
    'license'       => 'perl',
    'dist_author'   => 'Rutger A. Vos <rvosa@sfu.ca>',
    'dist_abstract' => 'Perl bindings for the cyber-infrastructure for phylogenetic research.',
    'sign'          => 0,
    'create_readme' => 0,  
    'PL_files' => {
        'bin/regman.PL' => 'bin/regman',
        'bin/xixi.PL'   => 'bin/xixi',
    },  
    'requires' => {
        'COPE'             => 0.062,
        'Class::Inspector' => 1.12,  
        'Hash::Util'       => 0,
        'Bio::Phylo'       => 0.12, 
        'Module::Build'    => 0, 
        'vars'             => 0,
        'strict'           => 0,
        'IO::File'         => 0,
        'IO::Handle'       => 0,  
        'Data::Dumper'     => 0,
        'POSIX'            => 0,
        'Exporter'         => 0,   
        'Log::Log4perl'    => 0,    
        'Carp'             => 0,         
        'Exception::Class::TCF' => 0,            
        'Log::Log4perl::JavaMap::ConsoleAppender' => 0,        
    },
    'recommends' => {
        'Wx'                        => 0.56,
        'Wx::Perl::Packager'        => 0.03,
        'Wx::Perl::SplashFast'      => 0,        
        'Wx::Perl::VirtualTreeCtrl' => 0,
        'Bio::Tree::TreeI'          => 0,
        'Bio::Tree::NodeI'          => 0,
    },
    'auto_features' => {
        'HTML_support' => {
            'description' => 'Create HTML documentation',
            'requires'    => { 'Pod::Html' => 0 },
        },
    },
    'add_to_cleanup' => [ 'bin/regman', 'bin/xixi', 'pm_to_blib', 'Build', 'Makefile', '_build' ],
    'script_files'   => [ 'bin/regman', 'bin/xixi' ],
    'meta_merge'     => {
        'resources'  => {
            'homepage'    => 'http://www.phylo.org',
            'bugtracker'  => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Cipres',
            'MailingList' => 'mailto:cipres-dev@sdsc.edu',
            'repository'  => 'http://svn.perl.org/modules/Module-Build/'
        },
    },
);

$build->add_build_element('xpm');
$build->add_build_element('gif');
$build->add_build_element('png');
$build->create_build_script;
