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 berkeleygw |
---|
7 | version 1.0.5 |
---|
8 | categories science |
---|
9 | platforms darwin |
---|
10 | license BSD |
---|
11 | maintainers gmail.com:dstrubbe |
---|
12 | |
---|
13 | description GW/Bethe-Salpeter equation |
---|
14 | long_description BerkeleyGW is a set of computer codes that calculate the quasiparticle properties \ |
---|
15 | and the optical responses of a large variety of materials from bulk periodic crystals \ |
---|
16 | to nanostructures such as slabs, wires and molecules, using many-body perturbation theory. |
---|
17 | homepage http://www.berkeleygw.org |
---|
18 | master_sites http://www.berkeleygw.org/releases |
---|
19 | |
---|
20 | checksums rmd160 308826cb7157d368f4d113ae694a9fbc8c46044e \ |
---|
21 | sha256 f5706b2daab66bdc22328695c0fb71f6e62577947db1f7d5706e4e9fd64bf9de |
---|
22 | |
---|
23 | depends_lib port:fftw \ |
---|
24 | port:atlas |
---|
25 | |
---|
26 | distfiles BGW-${version}.tar.gz |
---|
27 | |
---|
28 | configure { |
---|
29 | file copy ${worksrcpath}/config/generic.serial.macos.mk ${worksrcpath}/arch.mk |
---|
30 | } |
---|
31 | |
---|
32 | build.target all-flavors |
---|
33 | use_parallel_build yes |
---|
34 | |
---|
35 | destroot.post_args INSTDIR=${destroot}${prefix} |
---|
36 | |
---|
37 | test.run yes |
---|
38 | test.cmd make |
---|
39 | test.target check |
---|
40 | |
---|
41 | # more options that could be added: threads, openmpi, mpich |
---|
42 | |
---|
43 | variant gcc46 conflicts gcc47 gcc48 description {Build with GCC 4.6} { |
---|
44 | build.args VERSION=-mp-4.6 |
---|
45 | depends_lib-append port:gcc46 |
---|
46 | } |
---|
47 | |
---|
48 | variant gcc47 conflicts gcc46 gcc48 description {Build with GCC 4.7} { |
---|
49 | build.args VERSION=-mp-4.7 |
---|
50 | depends_lib-append port:gcc47 |
---|
51 | } |
---|
52 | |
---|
53 | variant gcc48 conflicts gcc46 gcc47 description {Build with GCC 4.8} { |
---|
54 | build.args VERSION=-mp-4.8 |
---|
55 | depends_lib-append port:gcc48 |
---|
56 | } |
---|
57 | |
---|
58 | if {![variant_isset gcc46] && ![variant_isset gcc47]} { |
---|
59 | default_variants +gcc48 |
---|
60 | } |
---|
61 | |
---|
62 | livecheck.type regex |
---|
63 | livecheck.url ${master_sites} |
---|
64 | livecheck.regex BGW-(\[0-9.\]+).tar |
---|