PortGroup active_variants 1.1
set branch [join [lrange [split ${version} .] 0 1] .]
description PyGTK is the Python binding to GTK+ 2.x
PyGTK contains modules that allow you to use gtk in Python programs. \
At present, it is a fairly complete set of bindings.
homepage http://www.pygtk.org/
master_sites gnome:sources/${my_name}/${branch}/
distname ${my_name}-${version}
checksums rmd160 33f597def646261483cbbf5491aeb27bf0d22ea6 \
sha256 cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5363e0f82c896e649f206912
if {${name} ne ${subport}} {
port:py${python.version}-cairo \
port:py${python.version}-gobject \
port:py${python.version}-numpy
patchfiles patch-gtk-quartz.diff patch-new-automake.diff
autoreconf.post_args "-I m4"
configure.python ${python.bin}
configure.pre_args-delete --prefix=${prefix}
configure.pre_args-append --prefix=${python.prefix}
configure.cflags-append -I${python.prefix}/include
configure.ldflags-append -L${python.prefix}/lib
configure.pkg_config_path ${python.prefix}/lib/pkgconfig
reinplace "s| -export-symbols-regex.*||g" \