# -*- 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
PortSystem 1.0
PortGroup python 1.0
name py-PyQGLViewer
version 0.11
revision 2
categories-append graphics
platforms darwin
maintainers inria.fr:christophe.pradal openmaintainer
license {GPL-2+ Commercial}
description PyQGLViewer is a set of Python bindings for libQGLViewer
long_description PyQGLViewer is a set of Python bindings for the libQGLViewer C++ class library which ease \
the creation of OpenGL 3D viewers. It provides some of the typical \
3D viewer functionalities, such as the possibility to move the \
camera using the mouse, which lacks in most of the other APIs. \
Other features include mouse manipulated frames, interpolated \
keyFrames, object selection, stereo display, screenshot saving \
and much more. It can be used by OpenGL beginners as well as \
to create complex applications, being fully customizable and \
easy to extend.
homepage http://pyqglviewer.gforge.inria.fr/
master_sites https://gforge.inria.fr/frs/download.php/30908
worksrcdir PyQGLViewer
distname ${worksrcdir}-${version}
use_zip yes
checksums rmd160 b7538e06c47370f9c9f2df70fc41932145621281 \
sha256 7f37a2d073816966c076c718af3cd2af3a934e0a812d6ca9703dc595edba59bc
# Note that python 3.1 is not supported
python.versions 27
if {${name} ne ${subport}} {
depends_build-append port:mesa
depends_lib-append port:py${python.version}-pyqt4 \
port:libQGLViewer \
port:py${python.version}-sip
use_configure yes
configure.cmd ${python.bin} configure.py
configure.pre_args
configure.args -Q ${prefix}/include \
-I ${prefix}/include \
-I ${python.include} \
-L ${prefix}/lib
configure.universal_args
build.cmd make
build.target all
destroot.cmd make
destroot.target install
destroot.destdir DESTDIR=${destroot}
}
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex "PyQGLViewer sources (\[0-9\.\]+)"