1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name raxml |
---|
7 | version 7.2.9 |
---|
8 | description Estimation of phylogenetic trees. |
---|
9 | long_description RAxML is a program for sequential and parallel estimation of\ |
---|
10 | phylogenetic trees written by Alexandros Stamatakis. By default the Pthreads\ |
---|
11 | implementation will be installed, use -pthreads +mpi for the MPI variant. |
---|
12 | license GPL-2 |
---|
13 | maintainers gmail.com:mattoates |
---|
14 | categories science |
---|
15 | homepage http://sco.h-its.org/exelixis |
---|
16 | platforms darwin |
---|
17 | master_sites ${homepage}/software/ |
---|
18 | distfiles RAxML-${version}.tar.bz2 |
---|
19 | checksums md5 028b70c7c96900e1f70cdc2c2acab449 \ |
---|
20 | sha1 a038b72e197434d7fa8a7c35687b70adb4b0750b |
---|
21 | use_bzip2 yes |
---|
22 | use_configure no |
---|
23 | |
---|
24 | #Strings used by the variant options |
---|
25 | set HPCm "" |
---|
26 | set HPCb "" |
---|
27 | set SSEm "" |
---|
28 | set SSEb "" |
---|
29 | |
---|
30 | #Use the MPI implementation |
---|
31 | variant mpi conflicts pthreads description {MPI implementation} { |
---|
32 | depends_lib port:openmpi |
---|
33 | set HPCm ".MPI" |
---|
34 | set HPCb "-MPI" |
---|
35 | } |
---|
36 | |
---|
37 | #Use the pthreads implementation (default) |
---|
38 | variant pthreads conflicts mpi description {Pthreads implementation} { |
---|
39 | set HPCm ".PTHREADS" |
---|
40 | set HPCb "-PTHREADS" |
---|
41 | } |
---|
42 | |
---|
43 | #For Intel machines add SSE as a variant and use it by default with pthreads |
---|
44 | if {$build_arch == "i386" || $build_arch == "x86_64"} { |
---|
45 | |
---|
46 | variant sse3 description {Use the SSE3 extended instruction set from Intel since 2004} { |
---|
47 | set SSEm ".SSE3" |
---|
48 | set SSEb "-SSE3" |
---|
49 | } |
---|
50 | |
---|
51 | default_variants +pthreads +sse3 |
---|
52 | |
---|
53 | #Otherwise just use pthreads as default |
---|
54 | } else { |
---|
55 | default_variants +pthreads |
---|
56 | } |
---|
57 | |
---|
58 | #Pass in architecture information |
---|
59 | build.args CFLAGS="${configure.cflags} ${configure.cc_archflags}" |
---|
60 | |
---|
61 | #Makesure we are using the correct Makefile for this variant combo |
---|
62 | pre-build { |
---|
63 | build.pre_args -f Makefile${SSEm}${HPCm}.gcc |
---|
64 | } |
---|
65 | |
---|
66 | #We only need the single raxml binary |
---|
67 | destroot { |
---|
68 | file copy ${worksrcpath}/raxmlHPC${HPCb}${SSEb} ${destroot}${prefix}/bin/raxml |
---|
69 | } |
---|