source: trunk/dports/graphics/libQGLViewer/Portfile @ 113513

Last change on this file since 113513 was 113513, checked in by raphael@…, 6 years ago

libQGLViewer: do not hardcode prefix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 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 113513 2013-11-18 20:54:09Z raphael@macports.org $
3
4PortSystem                      1.0
5PortGroup                       qmake 1.0
6
7# Please keep the libQGLViewer and libPyQGLViewer ports as similar as possible.
8
9name                            libQGLViewer
10version                         2.4.0
11revision                        1
12platforms                       darwin
13maintainers                     raphael openmaintainer
14license                         {GPL-2+ Commercial}
15categories                      graphics
16description                     A C++ library based on Qt that eases the creation of OpenGL \
17                                3D viewers
18homepage                        http://www.libqglviewer.com/
19long_description                libQGLViewer is a C++ library based on Qt that eases the \
20                                creation of OpenGL 3D viewers. It provides some of the typical \
21                                3D viewer functionalities, such as the possibility to move the \
22                                camera using the mouse, which lacks in most of the other APIs. \
23                                Other features include mouse manipulated frames, interpolated \
24                                keyFrames, object selection, stereo display, screenshot saving \
25                                and much more. It can be used by OpenGL beginners as well as \
26                                to create complex applications, being fully customizable and \
27                                easy to extend.
28
29conflicts                       libPyQGLViewer
30
31master_sites                    ${homepage}src/
32
33checksums                       rmd160  2283aefd96b8c20aa890899d19f869883fef612c \
34                                sha256  6135b97502bde59486e2398a6f0cedff6042dfcfd0e03892a471e85fc1fa362a
35
36patchfiles                      patch-QGLViewer.pro.diff \
37                                patch-designerPlugin.pro.diff
38# the terrain example does not compile on Lion; see #30886
39platform darwin 11 {
40    patchfiles-append           patch-contribs.pro.diff
41}
42
43post-patch {
44    reinplace "s|@@QT_PLUGINS_DIR@@|${qt_plugins_dir}|g" ${worksrcpath}/designerPlugin/designerPlugin.pro
45
46    system -W ${worksrcpath} "sh ${filespath}/archflags.sh [get_canonical_archflags]"
47}
48
49# prevent the examples from linking with an already installed version of libQGLViewer (#41382)
50configure.cppflags-delete -I${prefix}/include
51configure.ldflags-delete -L${prefix}/lib
52
53# clear all arch-oriented flags since they mess up LDFLAGS in Makefiles (#41359)
54configure.ld_archflags
55configure.cc_archflags
56configure.cxx_archflags
57configure.universal_ldflags
58configure.universal_cflags
59configure.universal_cxxflags
60configure.universal_cppflags
61configure.march
62configure.mtune
63
64configure.pre_args-append       DOC_DIR=${prefix}/share/doc/${name}
65configure.post_args-append      -after QMAKE_POST_LINK=\"\"
66
67use_parallel_build              no
68
69post-destroot {
70    system -W ${worksrcpath}/examples "make clean"
71    copy ${worksrcpath}/examples ${destroot}${applications_dir}/libQGLViewer\ Examples
72    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
73    xinstall -m 644 -W ${worksrcpath} \
74        CHANGELOG \
75        GPL_EXCEPTION \
76        LICENCE \
77        README \
78        ${destroot}${prefix}/share/doc/${name}
79}
80
81livecheck.type                  regex
82livecheck.regex                 "Version (\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.