# -*- 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                xmedcon
version             0.16.3
revision            0
categories          science graphics
maintainers         nomaintainer
license             LGPL-2+

description         an open source toolkit for medical image conversion
long_description    xmedcon is a framework specifically designed to resolve the complexities involved with conversion of medical image formats. It offers a GUI, a CLI (medcon), and a library for writing custom applications licensed under the (L)GPL.

use_bzip2           yes
homepage            http://xmedcon.sourceforge.net/
platforms           darwin
master_sites        sourceforge:project/${name}/XMedCon-Source/${version}

checksums           rmd160  0db7ba0826bdd3814f4c968ebcdd5754b3025104 \
                    sha256  2aa4ef3da4c88d8bd011047e3550f6c86b203b773d90ddb9db7ec8b4d6aa0200 \
                    size    846299

use_parallel_build  yes

depends_lib         port:libpng \
                    path:lib/pkgconfig/glib-2.0.pc:glib2

depends_build       port:pkgconfig

configure.args      --disable-gui

default_variants    +gtk2

variant gtk2 description {Enable gtk2 gui front end} {
  configure.args-delete   --disable-gui
 
  depends_lib-append      path:lib/pkgconfig/gtk+-2.0.pc:gtk2
}
