# -*- 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 104541 2013-03-27 09:12:30Z larryv@macports.org $

PortSystem          1.0

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

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           rmd160  0ee44b1e37def7a75288937cab334198ee84faff \
                    sha256  c5e5a09b0096b7881aa4f76ec60210c2fe3db195295b0f3bc9c6df7a540dbee7

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
}
