Ticket #40742: Portfile

File Portfile, 2.2 KB (added by christophe.pradal@…, 11 years ago)

pythonpy-PyQGLViewer

Line 
1# -*- 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
2# $Id: $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-PyQGLViewer
8version             0.11
9
10platforms           darwin
11categories-append   graphics
12maintainers         pradal openmaintainer
13license             {GPL-2+ Commercial}
14
15description         PyQGLViewer is a set of Python bindings for libQGLViewer
16long_description    PyQGLViewer is a set of Python bindings for the libQGLViewer C++ class library which ease \
17                    the creation of OpenGL 3D viewers. It provides some of the typical \
18                    3D viewer functionalities, such as the possibility to move the \
19                    camera using the mouse, which lacks in most of the other APIs. \
20                    Other features include mouse manipulated frames, interpolated \
21                    keyFrames, object selection, stereo display, screenshot saving \
22                    and much more. It can be used by OpenGL beginners as well as \
23                    to create complex applications, being fully customizable and \
24                    easy to extend.
25
26homepage            http://pyqglviewer.gforge.inria.fr
27master_sites        https://gforge.inria.fr/frs/download.php/30908/
28distname            PyQGLViewer
29
30use_zip             yes
31
32checksums           rmd160  b7538e06c47370f9c9f2df70fc41932145621281 \
33                    sha256  7f37a2d073816966c076c718af3cd2af3a934e0a812d6ca9703dc595edba59bc
34
35# Note that python 3.1 is not supported
36python.versions     27
37
38if {$subport != $name} {
39
40    use_configure      yes
41
42    depends_lib-append port:py${python.version}-pyqt4 \
43                       port:libPyQGLViewer \
44                       port:py${python.version}-sip
45   
46    configure.cmd      ${prefix}/bin/python${python.branch} configure.py
47    configure.pre_args  -Q ${prefix}/include -I ${prefix}/include -I ${prefix}/include/python${python.branch} -I /opt/X11/include -L ${prefix}/lib
48   
49    build.cmd          make
50    destroot.cmd       make install
51    destroot.destdir   DESTDIR=${destroot}
52
53
54livecheck.type  regex
55livecheck.url   ${homepage}
56livecheck.regex PyQGLViewer-(\[0-9\.\]+)\.zip