PortSystem          1.0
PortGroup           python 1.0

name                py-opengl
version             3.1.10
categories-append   graphics
platforms           {darwin any}
supported_archs     noarch
license             BSD
maintainers         {jmr @jmroot} 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/

python.rootname     pyopengl

checksums           md5    703b05e9b17c8ce2f2879f437c3decbb \
                    rmd160 c4bb295d3304c21fed2d9b8254b6ab61610e15ed \
                    sha256 c4a02d6866b54eb119c8e9b3fb04fa835a95ab802dd96607ab4cdb0012df8335

python.versions     27 310 311 312 313 314

if {$subport ne $name} {
    depends_lib     port:py${python.version}-opengl-accelerate \
                    port:py${python.version}-tkinter
    if {${python.version} >= 30} {
        depends_lib-append port:py${python.version}-Pillow
    } else {
        depends_lib-append path:${python.pkgd}/PIL:py${python.version}-Pillow
    }
    patchfiles      pillow-compat.diff
    test.run        yes
}
