Ticket #38953: Portfile

File Portfile, 1.9 KB (added by dstrubbe (David Strubbe), 11 years ago)
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                wannier90
7version             1.2
8categories          science
9platforms           darwin
10license             GPL-2+
11maintainers         gmail.com:dstrubbe
12description         A Tool for Obtaining Maximally-Localised Wannier Functions
13long_description    Wannier90 uses inputs from an electronic-structure code to transform the Bloch orbitals of a crystal into \
14                    maximally-localised Wannier functions. Interfaces exist for various density-functional theory codes.
15homepage            http://www.wannier.org
16master_sites        http://wannier.org/code
17
18checksums           rmd160  4a8035ed4faf5256ad66aa9fe23ac32a86b3abf4 \
19                    sha1    b4caaddb6e91afe673c122507e92c6b5fbc7689f
20
21depends_lib         port:atlas
22
23use_configure       no
24
25pre-build {
26    build.args      F90=${configure.f90} FCOPTS="-O3" LDOPTS="-O3"
27    if {[variant_isset threads]} {
28        build.args-append LIBS="-L${prefix}/lib -ltatlas"
29    } else {
30        build.args-append LIBS="-L${prefix}/lib -lsatlas"
31    }
32}
33
34use_parallel_build  no
35
36destroot {
37    xinstall ${worksrcpath}/wannier90.x  ${destroot}${prefix}/bin/
38    xinstall ${worksrcpath}/libwannier.a ${destroot}${prefix}/lib/
39}
40
41variant gcc46 conflicts gcc47 description {Build with GCC 4.6} {
42    configure.compiler  macports-gcc-4.6
43    depends_lib-append  port:gcc46
44}
45variant gcc47 conflicts gcc46 description {Build with GCC 4.7} {
46    configure.compiler  macports-gcc-4.7
47    depends_lib-append  port:gcc47
48}
49
50if {![variant_isset gcc46]} {
51    default_variants    +gcc47
52}
53
54variant threads description {Build with threaded ATLAS} { }
55
56livecheck.url       ${master_sites}
57livecheck.type      regex
58livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}