Ticket #50844: Portfile

File Portfile, 3.5 KB (added by cram5431@…, 9 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           compilers 1.0
6
7name                atompaw
8version             4.0.0.13
9categories          science
10platforms           darwin
11license             GPL-3
12maintainers         gmail.com:cram5431 \
13                    openmaintainer
14
15description         Software for generating PAW atomic datasets to be used by first-principle simulation codes
16
17long_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
26master_sites        http://users.wfu.edu/natalie/papers/pwpaw
27homepage            ${master_sites}/man.html
28
29checksums           rmd160  e048e8b6aba42b302448d9a39e779bc9c1868695 \
30                    sha256  cbd73f11f3e9cc3ff2e5f3ec87498aeaf439555903d0b95a72f3b0a021902020
31
32compilers.choose    fc
33compilers.setup     require_fortran
34configure.optflags  -O3
35if {[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
43use_parallel_build  no
44
45default_variants +libxc
46
47if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset openblas]} {
48    default_variants-append +accelerate
49}
50
51variant 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
56variant 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
61variant 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
68variant 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
78universal_variant   no
79
80#there is no check yet that results are correct
81test.run            yes
82test.cmd            src/atompaw
83test.target         < example/F/lda/F.input
84
85pre-configure {
86    configure.args-append  FCCPP="${configure.cc} -E -ansi"
87}
88
89livecheck.type      regex
90livecheck.url       ${master_sites}
91livecheck.regex     atompaw-(\[0-9.\]+).tar.gz