# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem 1.0

name            py25-gtkglext
version         1.1.0
revision        1
categories      python gnome
license         LGPL-2.1+
maintainers     nomaintainer
platforms       darwin
description     Python bindings for GtkGLExt
long_description ${description}
homepage	http://sourceforge.net/projects/gtkglext/
master_sites	sourceforge:gtkglext
distname        pygtkglext-${version}
checksums	md5 dfbe2ceb05db9265a7d94b209fa8ad97
depends_build   port:pkgconfig
depends_lib     port:gtkglext \
                port:py25-pygtk \
                port:py25-opengl
configure.python ${prefix}/bin/python2.5

platform darwin 9 {
    configure.ldflags-append "-L/usr/X11/lib -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"

    post-extract {
        reinplace "s| -export-symbols-regex.*||g" \
            ${worksrcpath}/gtk/gdkgl/Makefile.in \
            ${worksrcpath}/gtk/gtkgl/Makefile.in
    }
}