Ticket #39282: Portfile

File Portfile, 2.5 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
5PortGroup           active_variants 1.1
6
7name                octopus
8version             4.1.0
9categories          science
10platforms           darwin
11license             GPL-2+
12maintainers         gmail.com:dstrubbe
13
14description         A real-space (time-dependent) density-functional theory code.
15long_description    Octopus is a scientific program aimed at ab initio virtual experimentation \
16                    on a hopefully ever-increasing range of system types. \
17                    Electrons are described quantum-mechanically within density-functional \
18                    theory (DFT), in its time-dependent form (TDDFT) when doing simulations \
19                    in time. Nuclei are described classically as point particles. Electron-nucleus \
20                    interaction is described within the pseudopotential approximation.
21homepage            http://www.tddft.org/programs/octopus
22master_sites        ${homepage}/down.php?file=${version}
23
24checksums           rmd160  cc365798de110e278227be31ad9ddf6c47768d1b \
25                    sha1    c54593f34f85671864b461ad2a460669c9891e71
26
27depends_lib         port:atlas port:libxc
28
29distfiles           octopus-${version}.tar.gz
30extract.suffix      .tar.gz
31extract.cmd         tar
32extract.pre_args    -xzf
33
34pre-configure {
35    configure.args  FCCPP="${configure.cpp} -ansi" FCFLAGS=-O3 CFLAGS=-O3 \
36                    --with-libxc-prefix=${prefix} --with-blas=-lsatlas
37}
38
39# More options that could be added:
40# variants: netcdf, etsf_io, sparskit, berkeleygw, newuoa, zoltan, openmp, openmpi, mpich, threads (for fftw, atlas?), gdlib
41#--with-netcdf-module-path=${prefix}/include \
42#                    --with-netcdf-ldflags=-L${prefix}/lib \
43
44build.target        all
45use_parallel_build  yes
46
47test.run            yes
48test.cmd            make
49test.target         check-full
50
51variant gcc46 conflicts gcc47 description {Build with GCC 4.6} {
52    configure.compiler  macports-gcc-4.6
53    require_active_variants libxc gcc46
54    depends_lib-append  port:gcc46
55}
56
57variant gcc47 conflicts gcc46 description {Build with GCC 4.7} {
58    configure.compiler  macports-gcc-4.7
59    require_active_variants libxc gcc47
60    depends_lib-append  port:gcc47
61}
62
63if {![variant_isset gcc46]} {
64    default_variants    +gcc47
65}
66
67livecheck.type      regex
68livecheck.url       ${homepage}/wiki/index.php/Main_Page
69livecheck.regex     ${name} (\[0-9.\]+)