# -*- 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
# $Id: Portfile 118829 2014-04-11 14:47:01Z macsforever2000@macports.org $

PortSystem          1.0

name                libxc
version             2.0.3
categories          science
platforms           darwin
license             LGPL-3+
maintainers         gmail.com:dstrubbe

description         exchange-correlation functionals for DFT

long_description    Libxc is a library of exchange-correlation functionals \
                    for density-functional theory. The aim is to provide a \
                    portable, well tested and reliable set of exchange and \
                    correlation functionals that can be used by all the \
                    ETSF codes and also other codes.

homepage            http://www.tddft.org/programs/octopus/wiki/index.php/Libxc
master_sites        http://www.tddft.org/programs/octopus/download/libxc

checksums           rmd160  d378244a8b0c0ad23eef96ffbcab2520f9069bef \
                    sha256  7f193adbbc4efec95ae9d6354eb5d82b49bf6645c6b590a8ac149ea8d253fdf8

pre-configure {
    configure.args  FCCPP=${configure.cpp}
}

use_parallel_build  no

universal_variant   no

variant gcc45 conflicts gcc46 gcc47 gcc48 description {Build with GCC 4.5} {
    configure.compiler  macports-gcc-4.5
}
variant gcc46 conflicts gcc45 gcc47 gcc48 description {Build with GCC 4.6} {
    configure.compiler  macports-gcc-4.6
}
variant gcc47 conflicts gcc45 gcc46 gcc48 description {Build with GCC 4.7} {
    configure.compiler  macports-gcc-4.7
}
variant gcc48 conflicts gcc45 gcc46 gcc47 description {Build with GCC 4.8} {
    configure.compiler  macports-gcc-4.8
}

if {![variant_isset gcc45] && ![variant_isset gcc46] && ![variant_isset gcc47]} {
    default_variants    +gcc48
}

livecheck.url       ${master_sites}
livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
