# -*- 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 91470 2012-04-02 20:11:32Z jmr@macports.org $

PortSystem          1.0

name                libctl
version             3.1
categories          science
platforms           darwin
license				GPL-2+

maintainers         ece.pdx.edu:higginja

description         Scheme/Guile-based scripting of scientific code.
long_description    \
	Libctl is a free Guile-based library implementing flexible control files \
	for scientific simulations. It was written to support the MIT Photonic \
	Bands and Meep software, but has proven useful in other programs too.

homepage            http://ab-initio.mit.edu/wiki/index.php/Libctl
master_sites        http://ab-initio.mit.edu/libctl/

checksums           sha1    1b2fd33a4aac7e759fee5ce501d846753f4d93de \
                    rmd160  b60182dcaab3abfa3b47eb67ace826c4d672e0c6

depends_lib			port:guile16

variant gcc43 conflicts gcc44 gcc45 gcc46 description {Compile with gcc 4.3} {
    configure.compiler	macports-gcc-4.3
    depends_lib-append	port:gcc43
}

variant gcc44 conflicts gcc43 gcc45 gcc46 description {Compile with gcc 4.4} {
    configure.compiler	macports-gcc-4.4
    depends_lib-append	port:gcc44
}

variant gcc45 conflicts gcc43 gcc44 gcc46 description {Compile with gcc 4.5} {
    configure.compiler	macports-gcc-4.5
    depends_lib-append	port:gcc45
}

variant gcc46 conflicts gcc43 gcc44 gcc45 description {Compile with gcc 4.6} {
    configure.compiler	macports-gcc-4.6
    depends_lib-append	port:gcc46
}

if {![variant_isset gcc43] && ![variant_isset gcc44] && ![variant_isset gcc46]} {
    default_variants +gcc45
}

patchfiles			guile16.diff

use_autoreconf		yes
autoreconf.args		-fvi
