File: Makefile.PL

package info (click to toggle)
psortb 3.0.4+dfsg-2~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports-sloppy
  • size: 121,004 kB
  • sloc: perl: 3,627; ansic: 698; cpp: 338; sh: 27; makefile: 23
file content (39 lines) | stat: -rw-r--r-- 1,229 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use ExtUtils::MakeMaker;
use lib '../lib';
use Bio::Tools::PSort::Install;

my $CC = 'g++';

@libs = qw/hmmer squid/;
%paths = ();
$libpath = '-lm -lpthread -lstdc++';

$defaults_file = '../psortb.defaults';
if( -f $defaults_file ) {
    unless ($return = do $defaults_file) {
        warn "couldn't parse $file: $@" if $@;
        warn "couldn't do $file: $!"    unless defined $return;
        warn "couldn't run $file"       unless $return;
    }
    do $defaults_file;
} 

if($additional_libpath) {
    $libpath .= ' ' . $additional_libpath . ' ' . join(' ', map { '-l' . $_ } @libs);
} else {
    $libpath .= Bio::Tools::PSort::Install->makeLibPath(@libs);
}

WriteMakefile('NAME'          => 'Algorithm::HMM',
	      'VERSION_FROM'  => 'lib/Algorithm/HMM.pm',
	      'PREREQ_PM'     => {},
	      ($] >= 5.005 ?
	       (ABSTRACT_FROM => 'lib/Algorithm/HMM.pm',
		AUTHOR        => 'Cory Spencer <cspencer@sfu.ca>') : ()),
	      'LIBS'          => $libpath,
	      'CC'            => $CC,
	      'LD'            => '$(CC)',
	      'INC'           => '-Isrc/include `pkg-config --cflags libsquid` `pkg-config --cflags libhmmer2`',
	      'OBJECT'        => "HMM.o hmm-binding.o",
	      'XSOPT'         => '-C++',
	      );