Ticket #40742: Portfile.2

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

New Portfile replacing the old one

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         inria.fr:christophe.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
37python.default_version  27
38
39if {$subport ne $name} {
40
41    use_configure      yes
42
43    depends_lib-append port:py${python.version}-pyqt4 \
44                       port:libPyQGLViewer \
45                       port:py${python.version}-sip
46   
47    configure.cmd      ${prefix}/bin/python${python.branch} configure.py
48    configure.pre_args 
49    configure.args     -Q ${prefix}/include -I ${prefix}/include -I ${python.include} -L ${prefix}/lib
50   
51    build.cmd          make
52    destroot.cmd       make install
53    destroot.destdir   DESTDIR=${destroot}
54}
55
56livecheck.type  regex
57livecheck.url   ${homepage}
58livecheck.regex PyQGLViewer-(\[0-9\.\]+)\.zip