# $Id: Portfile 81213 2011-07-27 03:10:50Z ryandesign@macports.org $

PortSystem 1.0

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

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

depends_lib         port:gtk1 \
                    port:gnome-libs \
                    port:libart_lgpl \
                    port:tiff \
                    port:libpng \
                    port:giflib

# gnome-libs is not universal
universal_variant   no

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

configure.pre_args  --prefix '${prefix}'

build.dir           ${worksrcpath}/gtk-canvas

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

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