# -*- 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 68016 2010-05-24 22:34:40Z ryandesign@macports.org $

PortSystem          1.0

name                sumo
conflicts           sumo-devel
version             0.11.1
categories          science devel
platforms           darwin
maintainers         me.com:jens.fahnenbruck \
                    herbiet.net:guillaume-jean
license             GPL-2

description         Simulation of Urban MObility (SUMO)
long_description \
    Simulation of Urban MObility (SUMO) is an open source, highly portable, \
    microscopic road traffic simulation package designed to handle large \
    road networks. It is mainly developed by employees of the Institute of \
    Transportation Systems at the German Aerospace Center.

homepage            http://sumo.sourceforge.net/
master_sites        sourceforge

distname            ${name}-src-${version}
worksrcdir          ${name}-${version}

checksums \
    md5             d3e8d29d74cf25d6cf2bb0c2a622ea49 \
    sha1            c33f451918c5cb15de5964eb9db3078e24b415a1 \
    rmd160          956495941b3e58ab42bba6f233678814cb269c2f

depends_lib-append \
    port:fox \
    port:gdal \
    port:libtool \
    port:proj \
    port:xercesc

# required for the gui to be enabled
configure.args-append \
    --with-fox=${prefix}

variant debug description {Enable SUMO debugging code} {
    configure.args-append \
        --enable-debug
}

variant double_precision description {Use "double" instead of "float" for calculations} {
    configure.args-append \
        --enable-double-precision
}

variant subseconds description {Enable subsecond timesteps} {
    configure.args-append \
        --enable-subsecond
}

variant messages description {Enable static and dynamic messages emitted by vehicles} {
    configure.args-append \
        --enable-messages
}

variant no_internal_lanes description {Disable junction internal lanes} {
    configure.args-append \
        --disable-internal-lanes
}

variant no_traci description {Disable Traffic Control Interface (TraCI) Server} {
    configure.args-append \
        --disable-traci
}
