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 compilers 1.0 |
---|
6 | |
---|
7 | name atompaw |
---|
8 | version 4.0.0.13 |
---|
9 | categories science |
---|
10 | platforms darwin |
---|
11 | license GPL-3 |
---|
12 | maintainers gmail.com:cram5431 \ |
---|
13 | openmaintainer |
---|
14 | |
---|
15 | description Software for generating PAW atomic datasets to be used by first-principle simulation codes |
---|
16 | |
---|
17 | long_description ATOMPAW is a program to be used for the generation of atomic datasets \ |
---|
18 | needed by first-principles simulation software based on the \ |
---|
19 | "Projector Augmented-Wave" (PAW) approach, which computes \ |
---|
20 | the electronic structure of materials within the Density-Functional theory. \ |
---|
21 | ATOMPAW produces, for a given atomic species, a set of basis and projectors \ |
---|
22 | functions, as well as some additional atomic data stored in a PAW dataset \ |
---|
23 | (text file). PAW datasets can be written in a XML file (conforming to XML-PAW \ |
---|
24 | standard) or in several proprietary formats (ABINIT, SOCORRO, Quantum Espresso, ...). |
---|
25 | |
---|
26 | master_sites http://users.wfu.edu/natalie/papers/pwpaw |
---|
27 | homepage ${master_sites}/man.html |
---|
28 | |
---|
29 | checksums rmd160 e048e8b6aba42b302448d9a39e779bc9c1868695 \ |
---|
30 | sha256 cbd73f11f3e9cc3ff2e5f3ec87498aeaf439555903d0b95a72f3b0a021902020 |
---|
31 | |
---|
32 | compilers.choose fc |
---|
33 | compilers.setup require_fortran |
---|
34 | configure.optflags -O3 |
---|
35 | if {[fortran_variant_name] eq "g95"} { |
---|
36 | configure.fcflags-append -ffree-line-length-huge |
---|
37 | } else { |
---|
38 | configure.fcflags-append -ffree-line-length-none |
---|
39 | } |
---|
40 | |
---|
41 | #apparently, parallel build does not work |
---|
42 | #not an issue; this is a small code |
---|
43 | use_parallel_build no |
---|
44 | |
---|
45 | default_variants +libxc |
---|
46 | |
---|
47 | if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset openblas]} { |
---|
48 | default_variants-append +accelerate |
---|
49 | } |
---|
50 | |
---|
51 | variant accelerate conflicts atlas openblas description {Build with linear algebra from built-in Accelerate framework} { |
---|
52 | depends_lib-append port:veclibfort |
---|
53 | configure.args-append --with-linalg-libs=-lveclibfort |
---|
54 | } |
---|
55 | |
---|
56 | variant atlas conflicts accelerate openblas description {Build with linear algebra from ATLAS} { |
---|
57 | depends_lib-append port:atlas |
---|
58 | configure.args-append --with-linalg-libs=-lsatlas |
---|
59 | } |
---|
60 | |
---|
61 | variant openblas conflicts accelerate atlas description {Build with linear algebra from OpenBLAS} { |
---|
62 | # allow OpenBLAS-devel too |
---|
63 | depends_lib-append path:lib/libopenblas.dylib:OpenBLAS |
---|
64 | require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack |
---|
65 | configure.args-append --with-linalg-libs=-lopenblas |
---|
66 | } |
---|
67 | |
---|
68 | variant libxc description {Build with support for libXC exchange-correlation library} { |
---|
69 | depends_lib-append port:libxc |
---|
70 | compilers.enforce_fortran libxc |
---|
71 | configure.args-append --enable-libxc --with-libxc-libs="-L${prefix}/lib -lxc" |
---|
72 | # style for libxc 2.2.x: |
---|
73 | # configure.args-append --with-libxc-libs="-L${prefix}/lib -lxc -lxcf90" |
---|
74 | configure.args-append --with-libxc-incs="-I${prefix}/include" |
---|
75 | } |
---|
76 | |
---|
77 | #universal variant not allowed for libxc |
---|
78 | universal_variant no |
---|
79 | |
---|
80 | #there is no check yet that results are correct |
---|
81 | test.run yes |
---|
82 | test.cmd src/atompaw |
---|
83 | test.target < example/F/lda/F.input |
---|
84 | |
---|
85 | pre-configure { |
---|
86 | configure.args-append FCCPP="${configure.cc} -E -ansi" |
---|
87 | } |
---|
88 | |
---|
89 | livecheck.type regex |
---|
90 | livecheck.url ${master_sites} |
---|
91 | livecheck.regex atompaw-(\[0-9.\]+).tar.gz |
---|