# $Id: Portfile 87313 2011-11-16 23:30:38Z mww@macports.org $

PortSystem 1.0

name                xdialog
version             2.3.1
revision            2
categories          x11
platforms           darwin
maintainers         mww openmaintainer
license             GPL-2
description         X11 drop in replacement for dialog or cdialog
long_description    Xdialog is designed to be a drop in replacement for the \
                    dialog or cdialog programs. It converts any terminal based \
                    program into a program with an X-windows interface.

homepage            http://xdialog.dyns.net/
master_sites        http://xdialog.free.fr/
distname            Xdialog-${version}
checksums           rmd160  12085dfddc9217fe5f07510c76755eb75446e658 \
                    sha256  1d446899697145fc36623d8afdd274066177da9383a6b619c18e8eb1b2ba589a
use_bzip2           yes

depends_build       port:pkgconfig
depends_lib         port:gtk2 port:libiconv port:libpng

configure.cflags-append "-no-cpp-precomp -flat_namespace -undefined suppress"
configure.args      --mandir=${prefix}/share/man \
                    --with-gtk2 \
                    --with-libiconv-prefix=${prefix}

