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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libPyQGLViewer |
---|
7 | version 2.3.17 |
---|
8 | platforms darwin |
---|
9 | maintainers pradal openmaintainer |
---|
10 | license {GPL-2+ Commercial} |
---|
11 | categories graphics |
---|
12 | description A friendly fork of a C++ library based on Qt that eases the creation of OpenGL \ |
---|
13 | 3D viewers |
---|
14 | homepage http://www.libqglviewer.com/ |
---|
15 | long_description libQGLViewer is a C++ library based on Qt that eases the \ |
---|
16 | creation of OpenGL 3D viewers. It provides some of the typical \ |
---|
17 | 3D viewer functionalities, such as the possibility to move the \ |
---|
18 | camera using the mouse, which lacks in most of the other APIs. \ |
---|
19 | Other features include mouse manipulated frames, interpolated \ |
---|
20 | keyFrames, object selection, stereo display, screenshot saving \ |
---|
21 | and much more. It can be used by OpenGL beginners as well as \ |
---|
22 | to create complex applications, being fully customizable and \ |
---|
23 | easy to extend. \ |
---|
24 | It as been forked to allow running sip on it to create Python wrappers. |
---|
25 | |
---|
26 | conflicts libQGLViewer |
---|
27 | |
---|
28 | master_sites https://gforge.inria.fr/frs/download.php/32979 |
---|
29 | |
---|
30 | |
---|
31 | distname libPyQGLViewer |
---|
32 | worksrcdir ${distname}-${version} |
---|
33 | |
---|
34 | checksums rmd160 6451253bd9d6f347d1af73e7a48bc9d2d5cf48db \ |
---|
35 | sha256 94860a337879f63ad7598192f0d31da1d275af7bff8c910a0c0abd5b902887fb |
---|
36 | |
---|
37 | patchfiles patch-QGLViewer.pro.diff \ |
---|
38 | patch-designerPlugin.pro.diff |
---|
39 | # the terrain example does not compile on Lion; see #30886 |
---|
40 | platform darwin 11 { |
---|
41 | patchfiles-append patch-contribs.pro.diff |
---|
42 | } |
---|
43 | |
---|
44 | variant universal {} |
---|
45 | |
---|
46 | variant x11 {} |
---|
47 | |
---|
48 | if {![variant_isset x11]} { |
---|
49 | PortGroup qmake 1.0 |
---|
50 | } else { |
---|
51 | depends_lib-append port:qt4-x11 |
---|
52 | configure.cmd ${prefix}/libexec/qt4-x11/bin/qmake |
---|
53 | configure.pre_args PREFIX=${prefix} |
---|
54 | configure.universal_args |
---|
55 | set qt_plugins_dir ${prefix}/libexec/qt4-x11/plugins/designer |
---|
56 | } |
---|
57 | |
---|
58 | post-patch { |
---|
59 | reinplace "s|@@QT_PLUGINS_DIR@@|${qt_plugins_dir}|g" ${worksrcpath}/designerPlugin/designerPlugin.pro |
---|
60 | |
---|
61 | if {[variant_isset universal]} { |
---|
62 | file copy ${filespath}/universal.sh ${worksrcpath} |
---|
63 | reinplace "s|@@@WRKSRCPATH@@@|${worksrcpath}|" ${worksrcpath}/universal.sh |
---|
64 | reinplace "s|@@@ARCHS@@@|${configure.universal_cxxflags}|" ${worksrcpath}/universal.sh |
---|
65 | system "chmod +x ${worksrcpath}/universal.sh && ${worksrcpath}/universal.sh" |
---|
66 | } |
---|
67 | } |
---|
68 | |
---|
69 | configure.pre_args-append DOC_DIR=${prefix}/share/doc/${name} |
---|
70 | configure.post_args-append -after QMAKE_POST_LINK=\"\" |
---|
71 | |
---|
72 | use_parallel_build no |
---|
73 | |
---|
74 | post-destroot { |
---|
75 | system -W ${worksrcpath}/examples "make clean" |
---|
76 | copy ${worksrcpath}/examples ${destroot}${applications_dir}/libQGLViewer\ Examples |
---|
77 | xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} |
---|
78 | xinstall -m 644 -W ${worksrcpath} \ |
---|
79 | changelog.txt \ |
---|
80 | GPL_exception.txt \ |
---|
81 | licence.txt \ |
---|
82 | readMe.txt \ |
---|
83 | ${destroot}${prefix}/share/doc/${name} |
---|
84 | } |
---|
85 | |
---|
86 | livecheck.type regex |
---|
87 | livecheck.regex "Version (\\d+(?:\\.\\d+)*)" |
---|