# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 58271 2009-09-25 03:17:55Z ryandesign@macports.org $

PortSystem          1.0

name                xmedcon
version             0.10.4
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        http://prdownloads.sourceforge.net/xmedcon/
checksums           md5 45b6a305336b731ad216e09744bc946b \
                    sha1 d382ce055e1497d3cb66db649adcc107c5802aa3 \
                    rmd160 f7a691eca3f7c59230488a585e3c0a1e0cdc0567
use_parallel_build  yes

depends_lib         port:libpng
                  
configure.pre_args
configure.args      --prefix=${prefix} \
                    --disable-gui \
                    --with-png-prefix=${prefix}
              

default_variants    +gcc43

variant gtk2 conflicts gtk1 description {Enable gtk2 gui front end} {
  configure.args-delete   --disable-gui
 
  depends_lib-append      port:gtk2 \
                          path:lib/pkgconfig/glib-2.0.pc:glib2
}
variant gtk1 conflicts gtk2 description {Enable gtk1 legacy gui} {
  depends_lib-append    port:gtk1 \
                        port:gdk-pixbuf

  configure.args-delete --disable-gui
  configure.args-append --enable-gtk1
}

variant gcc43 description {Enable gcc43 compiler support} {
  depends_lib-append port:gcc43

  configure.compiler macports-gcc-4.3
}

