#-*- 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

PortSystem          1.0

name                tempo
version             1.1.4
revision            1
categories          science
maintainers         nomaintainer
license             GPL-2

description         TEMPO (Topographic Eeg Mapping PrOgram)
long_description    TEMPO (Topographic Eeg Mapping PrOgram) is open source \
    software for 3D visualization of brain electrical activity. \
    TEMPO accepts EEG file in standard EDF format and creates \
    animated sequence of topographic maps. Topographic maps are \
    generated over 3D head model and user is able to navigate \
    around head and examine maps from different viewpoints. \
            
homepage            http://tempo.sourceforge.net/
master_sites        sourceforge

checksums           md5     56778b4b5b8c3df809bd6c7b0022a518 \
                    rmd160  5f2191235195f9867c4e34793d781cc63a3f1245 \
                    sha256  33beabff1ef5923f6505f64cabec6656441cddb1ee67074f422ffb66bfedcf25 \
                    size    1132826

depends_build       port:pkgconfig
depends_lib         lib:libgtkglext-x11-1.0:gtkglext \
                    lib:libgnome-2:libgnome \
                    bin:scrollkeeper-config:rarian

patchfiles          patch-tempo.c.diff

# The configure script reruns itself in the build phase because of inconsistent
# file modification dates so we might as well regenerate the build system so
# configure only runs once. This also updates config.guess and config.sub to
# support Apple Silicon and fixes implicit declaration of exit.
use_autoreconf      yes
autoreconf.args     -fvi

configure.args      --with-x

post-destroot   {
    file mkdir ${destroot}${prefix}/share/doc/${name}
    xinstall -v -W ${worksrcpath} \
        ChangeLog INSTALL README TODO THANKS AUTHORS \
        ${destroot}${prefix}/share/doc/${name}
}
