# $Id: Portfile 85352 2011-10-13 00:35:41Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-opengl
version             3.0.1
categories          python graphics
platforms           darwin
supported_archs     noarch
license             BSD
maintainers         jmr openmaintainer

description         Python binding to OpenGL
long_description    PyOpenGL is the cross platform Python binding to OpenGL \
                    and related APIs. The binding is created using the \
                    standard ctypes library and is provided under an \
                    extremely liberal BSD-style Open-Source licenses.

homepage            http://pyopengl.sourceforge.net/

master_sites        http://pypi.python.org/packages/source/P/PyOpenGL/
distname            PyOpenGL-${version}

checksums           md5     cdf03284f24279b8d9914bb680a37b5e \
                    sha1    3a5b4888b0c9f73513c9e41629c32e1279907524 \
                    rmd160  cd9c3f20ae7154cc4fcb810dea3a24bd469d3c05

python.versions     24 25 26 27

if {$subport != $name} {
    depends_build   port:py${python.version}-distribute
    depends_lib     port:py${python.version}-pil \
                    port:py${python.version}-opengl-accelerate \
                    port:py${python.version}-tkinter
    if {${python.version} == 24} {
        depends_lib-append port:py-ctypes
    }
    test.run        yes
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   http://pypi.python.org/pypi/PyOpenGL
    livecheck.regex {PyOpenGL/([0-9.]+)"}
}
