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 wannier90 |
---|
7 | version 1.2 |
---|
8 | categories science |
---|
9 | platforms darwin |
---|
10 | license GPL-2+ |
---|
11 | maintainers gmail.com:dstrubbe |
---|
12 | description A Tool for Obtaining Maximally-Localised Wannier Functions |
---|
13 | long_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. |
---|
15 | homepage http://www.wannier.org |
---|
16 | master_sites http://wannier.org/code |
---|
17 | |
---|
18 | checksums rmd160 4a8035ed4faf5256ad66aa9fe23ac32a86b3abf4 \ |
---|
19 | sha1 b4caaddb6e91afe673c122507e92c6b5fbc7689f |
---|
20 | |
---|
21 | depends_lib port:atlas |
---|
22 | |
---|
23 | use_configure no |
---|
24 | |
---|
25 | pre-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 | |
---|
34 | use_parallel_build no |
---|
35 | |
---|
36 | destroot { |
---|
37 | xinstall ${worksrcpath}/wannier90.x ${destroot}${prefix}/bin/ |
---|
38 | xinstall ${worksrcpath}/libwannier.a ${destroot}${prefix}/lib/ |
---|
39 | } |
---|
40 | |
---|
41 | variant gcc46 conflicts gcc47 description {Build with GCC 4.6} { |
---|
42 | configure.compiler macports-gcc-4.6 |
---|
43 | depends_lib-append port:gcc46 |
---|
44 | } |
---|
45 | variant gcc47 conflicts gcc46 description {Build with GCC 4.7} { |
---|
46 | configure.compiler macports-gcc-4.7 |
---|
47 | depends_lib-append port:gcc47 |
---|
48 | } |
---|
49 | |
---|
50 | if {![variant_isset gcc46]} { |
---|
51 | default_variants +gcc47 |
---|
52 | } |
---|
53 | |
---|
54 | variant threads description {Build with threaded ATLAS} { } |
---|
55 | |
---|
56 | livecheck.url ${master_sites} |
---|
57 | livecheck.type regex |
---|
58 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
---|