# $Id: Portfile 84832 2011-10-02 21:42:58Z afb@macports.org $

PortSystem              1.0

name                    mtpaint
version                 3.31
revision                1
categories              graphics
maintainers             afb openmaintainer
description             Mark Tyler's Painting Program
long_description        mtPaint is a painting program which Mark Tyler developed \
                        from scratch so he could easily create pixel art and \
                        manipulate digital photos.
homepage                http://mtpaint.sourceforge.net/
platforms               darwin
master_sites            sourceforge:mtpaint
use_bzip2               yes
checksums               md5 fbe34eb25f96b6092403115f1f6ab387 \
                        sha1 19396c905a227ab66b804dafd6fe76ecda519282 \
                        rmd160 94243d246cef12e09c33b728ef37b16594d40813

depends_build           port:pkgconfig
depends_lib             port:libpng port:gtk2 port:freetype

patchfiles              patch-configure.diff \
                        patch-png.c.diff

configure.args          --mandir=${prefix}/share/man/man1 \
                        gtk2 man cflags ldflags

variant gtk1 description "use GTK+1 instead of GTK+2" {
    depends_lib-delete port:gtk2
    depends_lib-append port:gtk1
    configure.args-delete gtk2
    configure.args-append gtk1
}
