# -*- 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                ggobi
version             2.1.11
categories          science
# CPL conflicts with (L)GPL
license             CPL-1 LGPL-2.1+ GPL-3 Restrictive
maintainers         nomaintainer

description         An open source visualization program \
                    for exploring high-dimensional data.

long_description    GGobi is an open source visualization program for exploring \
                    high-dimensional data. It provides highly dynamic and interactive \
                    graphics such as tours, as well as familiar graphics such as the \
                    scatterplot, barchart and parallel coordinates plots. Plots are \
                    interactive and linked with brushing and identification.

homepage            http://www.ggobi.org/
master_sites        http://www.ggobi.org/downloads/

checksums           rmd160  c9b2486c172090ffe80bd448cd60ce7245baf3ea \
                    sha256  2c4ddc3ab71877ba184523e47b0637526e6f3701bd9afb6472e6dfc25646aed7 \
                    size    2787709

use_bzip2           yes

depends_build       port:pkgconfig
depends_lib         path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                    port:libxml2 \
                    port:gob2

# GraphLayout plugin is not compatible with current graphviz API, disabled (#43712).

configure.args      --with-dataviewer \
                    --with-describedisplay \
                    --with-ggvis \
                    --with-graphaction \
                    --with-varcloud

patchfiles          patch-src-texture.diff \
                    patch-src-barchart.diff

configure.ldflags-append \
                    -lgmodule-2.0

platform darwin 10 powerpc {
    # Use correct triple on Rosetta
    configure.args-append \
                    --build=powerpc-apple-darwin${os.major}
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"