# -*- 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 98168 2012-09-27 01:28:45Z ryandesign@macports.org $

PortSystem          1.0

name                xmedcon
version             0.11.1
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.

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

checksums           rmd160  cbc4b182bf5ec11d98b49edf3b15b4beac3e1ccb \
                    sha256  db597526e6afdfa63daf558e1d941af2374c4377c4cdeac02ba378b2c768ce33

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
}
