# -*- 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 89650 2012-02-05 21:53:31Z jmr@macports.org $

PortSystem          1.0

name                xmedcon
version             0.10.6
revision            2
categories          science graphics
maintainers         jameskyle
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.

homepage            http://xmedcon.sourceforge.net/
platforms           darwin
master_sites        sourceforge:project/${name}/XMedCon-Source/${version}
checksums           md5     5d8b2c5fc7537b1c7c509a9732a0c3c7 \
                    sha1    d856d0d9a41f389cc9c4609379953f188262d0b9 \
                    rmd160  9a6b1359e7b7abdfebcb14ba458a10cea2fa966b

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      port:gtk2
}
