# $Id: Portfile,v 1.1 2006/01/27 14:49:46 olegb Exp $

PortSystem 1.0

name                gtk-canvas
version             0.1.1
platforms           darwin
maintainers         erickt@dslextreme.com
categories          x11
description         Straight backport of the GNOME canvas
homepage            http://www.atai.org

long_description    This is a straight port of the GNOME Cavnas from the \
                    stable gnome-libs 1.2.4 back to gtk+.  Thw widget is \
                    called GtkCanvas.

depends_lib         lib:libgtk1:gtk1 \
                    lib:libgnome:gnome-libs \
                    lib:libart:libart_lgpl \
                    lib:libtiff:tiff \
                    lib:libpng:libpng \
                    lib:libungif:libungif

master_sites        http://www.atai.org/gtk-canvas
checksums           md5 6872220119a4a3c284fe54a186e2ed57

worksrcdir          ${name}-${version}/gtk-canvas

configure.dir       ${worksrcpath}/..
configure.pre_args  --prefix '${prefix}'

destroot.destdir    prefix=${destroot}${prefix}

variant darwin {
  patchfiles patch-gtk-canvas-load.c
}
