[63464] trunk/dports/graphics
raphael at macports.org
raphael at macports.org
Fri Feb 5 11:20:03 PST 2010
Revision: 63464
http://trac.macports.org/changeset/63464
Author: raphael at macports.org
Date: 2010-02-05 11:20:00 -0800 (Fri, 05 Feb 2010)
Log Message:
-----------
libQGLViewer: new port
Added Paths:
-----------
trunk/dports/graphics/libQGLViewer/
trunk/dports/graphics/libQGLViewer/Portfile
trunk/dports/graphics/libQGLViewer/files/
trunk/dports/graphics/libQGLViewer/files/patch-QGLViewer.pro.diff
trunk/dports/graphics/libQGLViewer/files/patch-designerPlugin.pro.diff
Added: trunk/dports/graphics/libQGLViewer/Portfile
===================================================================
--- trunk/dports/graphics/libQGLViewer/Portfile (rev 0)
+++ trunk/dports/graphics/libQGLViewer/Portfile 2010-02-05 19:20:00 UTC (rev 63464)
@@ -0,0 +1,62 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name libQGLViewer
+version 2.3.4
+platforms darwin
+maintainers raphael openmaintainer
+license GPL-2+ Commercial
+categories graphics
+description A C++ library based on Qt that eases the creation of OpenGL \
+ 3D viewers
+homepage http://www.libqglviewer.com/
+long_description libQGLViewer is a C++ library based on Qt that eases the \
+ creation of OpenGL 3D viewers. It provides some of the typical \
+ 3D viewer functionalities, such as the possibility to move the \
+ camera using the mouse, which lacks in most of the other APIs. \
+ Other features include mouse manipulated frames, interpolated \
+ keyFrames, object selection, stereo display, screenshot saving \
+ and much more. It can be used by OpenGL beginners as well as \
+ to create complex applications, being fully customizable and \
+ easy to extend.
+
+master_sites ${homepage}src/
+checksums md5 0424149bafda8083d49632a3d59ba51e \
+ sha1 c55812adf4c41407cef649c589cec7dbce3c837f \
+ rmd160 29cb66fee423d106b19356b46096512dce5496e0
+depends_lib path:bin/qmake-mac:qt4-mac
+
+patchfiles patch-QGLViewer.pro.diff \
+ patch-designerPlugin.pro.diff
+post-patch { reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/QGLViewer/QGLViewer.pro
+ if {[variant_isset x11]} {
+ reinplace "s|qt4-mac|qt4-x11|g" ${worksrcpath}/designerPlugin/designerPlugin.pro
+ }
+}
+
+configure.cmd qmake-mac
+configure.pre_args PREFIX=${destroot}${prefix} \
+ DOC_DIR=${destroot}${prefix}/share/doc/${name}
+
+use_parallel_build no
+
+post-destroot { system "cd ${worksrcpath}/examples && make clean"
+ copy ${worksrcpath}/examples ${destroot}${applications_dir}/libQGLViewer\ Examples
+ xinstall -m 644 -W ${worksrcpath} \
+ CHANGELOG \
+ GPL_EXCEPTION \
+ LICENCE \
+ README \
+ ${destroot}${prefix}/share/doc/${name}
+}
+
+variant x11 description {Use X11 for visualization} {
+depends_lib-delete path:bin/qmake-mac:qt4-mac
+depends_lib-append port:qt4-x11
+configure.cmd qmake-x11
+}
+
+livecheck.type regex
+livecheck.regex "Version (\\d+(?:\\.\\d+)*)"
Property changes on: trunk/dports/graphics/libQGLViewer/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/libQGLViewer/files/patch-QGLViewer.pro.diff
===================================================================
--- trunk/dports/graphics/libQGLViewer/files/patch-QGLViewer.pro.diff (rev 0)
+++ trunk/dports/graphics/libQGLViewer/files/patch-QGLViewer.pro.diff 2010-02-05 19:20:00 UTC (rev 63464)
@@ -0,0 +1,18 @@
+--- QGLViewer/QGLViewer.pro.orig 2009-10-19 17:09:48.000000000 +0200
++++ QGLViewer/QGLViewer.pro 2009-10-19 17:10:49.000000000 +0200
+@@ -13,6 +13,7 @@
+ VERSION = 2.3.4
+ CONFIG -= debug debug_and_release
+ CONFIG *= release qt opengl warn_on shared thread create_prl rtti
++QMAKE_LFLAGS_SONAME = -Wl,-install_name,@@PREFIX@@/lib/
+
+ HEADERS = qglviewer.h \
+ camera.h \
+@@ -214,7 +215,6 @@
+
+ # -- M a c O S X --
+ macx|darwin-g++ {
+- CONFIG *= lib_bundle
+ # GLUT for Macintosh architecture
+ !isEmpty( USE_GLUT ) {
+ QMAKE_LIBS_OPENGL -= -lglut
Added: trunk/dports/graphics/libQGLViewer/files/patch-designerPlugin.pro.diff
===================================================================
--- trunk/dports/graphics/libQGLViewer/files/patch-designerPlugin.pro.diff (rev 0)
+++ trunk/dports/graphics/libQGLViewer/files/patch-designerPlugin.pro.diff 2010-02-05 19:20:00 UTC (rev 63464)
@@ -0,0 +1,11 @@
+--- designerPlugin/designerPlugin.pro.orig 2009-04-07 16:14:40.000000000 +0200
++++ designerPlugin/designerPlugin.pro 2009-04-07 16:15:37.000000000 +0200
+@@ -19,7 +19,7 @@
+ }
+ }
+
+-target.path = $${PREFIX}/designer
++target.path = $${PREFIX}/libexec/qt4-mac/designer
+ INSTALLS += target
+
+ contains( QT_VERSION, "^4.*" ) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100205/ab06ab77/attachment.html>
More information about the macports-changes
mailing list