source: trunk/dports/graphics/libQGLViewer/Portfile

Last change on this file was 142696, checked in by raphael@…, 20 months ago

libQGLViewer: update to version 2.6.3 (#49758)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
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: Portfile 142696 2015-11-20 16:25:09Z ryandesign@macports.org $
3
4PortSystem                      1.0
5PortGroup                       qmake 1.0
6
7name                            libQGLViewer
8version                         2.6.3
9platforms                       darwin
10maintainers                     raphael openmaintainer
11license                         {GPL-2+ Commercial}
12categories                      graphics
13description                     A C++ library based on Qt that eases the creation of OpenGL \
14                                3D viewers
15homepage                        http://www.libqglviewer.com/
16long_description                libQGLViewer is a C++ library based on Qt that eases the \
17                                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
26conflicts                       libPyQGLViewer
27
28master_sites                    ${homepage}src/
29
30checksums                       rmd160  ef4adb41c004f70a4a6d48c6607dac8de0dbbd9f \
31                                sha256  be611b87bdb8ba794a4d18eaed87f22491ebe198d664359829233c4ea69f4d02
32
33patchfiles                      patch-QGLViewer.pro.diff \
34                                patch-designerPlugin.pro.diff
35# the terrain example does not compile on Lion; see #30886
36platform darwin 11 {
37    patchfiles-append           patch-contribs.pro.diff
38}
39
40post-patch {
41    reinplace "s|@@QT_PLUGINS_DIR@@|${qt_plugins_dir}|g" ${worksrcpath}/designerPlugin/designerPlugin.pro
42
43    system -W ${worksrcpath} "sh ${filespath}/archflags.sh [get_canonical_archflags]"
44}
45
46# prevent the examples from linking with an already installed version of libQGLViewer (#41382)
47configure.cppflags-delete -I${prefix}/include
48configure.ldflags-delete -L${prefix}/lib
49
50# clear all arch-oriented flags since they mess up LDFLAGS in Makefiles (#41359)
51configure.ld_archflags
52configure.cc_archflags
53configure.cxx_archflags
54configure.universal_ldflags
55configure.universal_cflags
56configure.universal_cxxflags
57configure.universal_cppflags
58configure.march
59configure.mtune
60
61configure.pre_args-append       DOC_DIR=${prefix}/share/doc/${name}
62configure.post_args-append      -after QMAKE_POST_LINK=\"\"
63
64use_parallel_build              no
65
66post-destroot {
67    system -W ${worksrcpath}/examples "make clean"
68    copy ${worksrcpath}/examples ${destroot}${applications_dir}/libQGLViewer\ Examples
69    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
70    xinstall -m 644 -W ${worksrcpath} \
71        CHANGELOG \
72        GPL_EXCEPTION \
73        LICENCE \
74        README \
75        ${destroot}${prefix}/share/doc/${name}
76}
77
78livecheck.type                  regex
79livecheck.regex                 "Version (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.