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 | PortGroup active_variants 1.1 |
---|
6 | |
---|
7 | name octopus |
---|
8 | version 4.1.0 |
---|
9 | categories science |
---|
10 | platforms darwin |
---|
11 | license GPL-2+ |
---|
12 | maintainers gmail.com:dstrubbe |
---|
13 | |
---|
14 | description A real-space (time-dependent) density-functional theory code. |
---|
15 | long_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. |
---|
21 | homepage http://www.tddft.org/programs/octopus |
---|
22 | master_sites ${homepage}/down.php?file=${version} |
---|
23 | |
---|
24 | checksums rmd160 cc365798de110e278227be31ad9ddf6c47768d1b \ |
---|
25 | sha1 c54593f34f85671864b461ad2a460669c9891e71 |
---|
26 | |
---|
27 | depends_lib port:atlas port:libxc |
---|
28 | |
---|
29 | distfiles octopus-${version}.tar.gz |
---|
30 | extract.suffix .tar.gz |
---|
31 | extract.cmd tar |
---|
32 | extract.pre_args -xzf |
---|
33 | |
---|
34 | pre-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 | |
---|
44 | build.target all |
---|
45 | use_parallel_build yes |
---|
46 | |
---|
47 | test.run yes |
---|
48 | test.cmd make |
---|
49 | test.target check-full |
---|
50 | |
---|
51 | variant 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 | |
---|
57 | variant 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 | |
---|
63 | if {![variant_isset gcc46]} { |
---|
64 | default_variants +gcc47 |
---|
65 | } |
---|
66 | |
---|
67 | livecheck.type regex |
---|
68 | livecheck.url ${homepage}/wiki/index.php/Main_Page |
---|
69 | livecheck.regex ${name} (\[0-9.\]+) |
---|