Ticket #40309: Portfile

File Portfile, 2.0 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                berkeleygw
7version             1.0.5
8categories          science
9platforms           darwin
10license             BSD
11maintainers         gmail.com:dstrubbe
12
13description         GW/Bethe-Salpeter equation
14long_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.
17homepage            http://www.berkeleygw.org
18master_sites        http://www.berkeleygw.org/releases
19
20checksums           rmd160  308826cb7157d368f4d113ae694a9fbc8c46044e \
21                    sha256  f5706b2daab66bdc22328695c0fb71f6e62577947db1f7d5706e4e9fd64bf9de
22
23depends_lib         port:fftw \
24                    port:atlas
25
26distfiles           BGW-${version}.tar.gz
27
28configure {
29        file copy ${worksrcpath}/config/generic.serial.macos.mk ${worksrcpath}/arch.mk
30}
31
32build.target        all-flavors
33use_parallel_build  yes
34
35destroot.post_args  INSTDIR=${destroot}${prefix}
36
37test.run            yes
38test.cmd            make
39test.target         check
40
41# more options that could be added: threads, openmpi, mpich
42
43variant 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
48variant 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
53variant 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
58if {![variant_isset gcc46] && ![variant_isset gcc47]} {
59    default_variants    +gcc48
60}
61
62livecheck.type      regex
63livecheck.url       ${master_sites}
64livecheck.regex     BGW-(\[0-9.\]+).tar