Ticket #32050: Portfile

File Portfile, 1.9 KB (added by mattoates@…, 13 years ago)

RAxML 7.2.9 Portfile

Line 
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
4PortSystem      1.0
5
6name    raxml
7version 7.2.9
8description     Estimation of phylogenetic trees.
9long_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.
12license GPL-2
13maintainers     gmail.com:mattoates
14categories      science
15homepage        http://sco.h-its.org/exelixis
16platforms       darwin
17master_sites    ${homepage}/software/
18distfiles       RAxML-${version}.tar.bz2
19checksums       md5     028b70c7c96900e1f70cdc2c2acab449 \
20                sha1    a038b72e197434d7fa8a7c35687b70adb4b0750b
21use_bzip2       yes
22use_configure   no
23
24#Strings used by the variant options
25set HPCm ""
26set HPCb ""
27set SSEm ""
28set SSEb ""
29
30#Use the MPI implementation
31variant 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)
38variant 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
44if {$build_arch == "i386" || $build_arch == "x86_64"} {
45
46variant sse3 description {Use the SSE3 extended instruction set from Intel since 2004} {
47        set SSEm ".SSE3"
48        set SSEb "-SSE3"
49}
50
51default_variants        +pthreads +sse3
52
53#Otherwise just use pthreads as default
54} else {
55default_variants        +pthreads
56}
57
58#Pass in architecture information
59build.args CFLAGS="${configure.cflags} ${configure.cc_archflags}"
60
61#Makesure we are using the correct Makefile for this variant combo
62pre-build {
63        build.pre_args  -f Makefile${SSEm}${HPCm}.gcc
64}
65
66#We only need the single raxml binary
67destroot {
68        file copy ${worksrcpath}/raxmlHPC${HPCb}${SSEb} ${destroot}${prefix}/bin/raxml
69}