Index: head/graphics/Makefile =================================================================== --- head/graphics/Makefile +++ head/graphics/Makefile @@ -483,6 +483,7 @@ SUBDIR += lib3ds SUBDIR += libGLU SUBDIR += libGLw + SUBDIR += libQGLViewer SUBDIR += libafterimage SUBDIR += libart_lgpl SUBDIR += libboard Index: head/graphics/libQGLViewer/Makefile =================================================================== --- head/graphics/libQGLViewer/Makefile +++ head/graphics/libQGLViewer/Makefile @@ -0,0 +1,26 @@ +# Created by: Yuri Victorovich +# $FreeBSD$ + +PORTNAME= libQGLViewer +DISTVERSION= 2.7.1 +CATEGORIES= graphics devel +MASTER_SITES= http://www.libqglviewer.com/src/ + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ library based on Qt5 that eases the creation of OpenGL 3D viewers + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENCE + +USES= qmake +USE_GL= gl glu +USE_QT5= core designer gui opengl widgets xml buildtools_build +USE_LDCONFIG= yes +PLIST_SUB= SHL3=${DISTVERSION} SHL2=${DISTVERSION:C/\.[0-9]$//} SHL1=${DISTVERSION:C/\.[0-9]\.[0-9]$//} + +OPTIONS_DEFINE= DOCS + +DOCSDIR= ${PREFIX}/share/doc/QGLViewer +PORTDOCS= * + +.include Index: head/graphics/libQGLViewer/distinfo =================================================================== --- head/graphics/libQGLViewer/distinfo +++ head/graphics/libQGLViewer/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1513584996 +SHA256 (libQGLViewer-2.7.1.tar.gz) = bfc7d97e3e8ec8d815e4150896c8a1b65ba4f01b063488f3d64d4e21a607c121 +SIZE (libQGLViewer-2.7.1.tar.gz) = 3078737 Index: head/graphics/libQGLViewer/files/patch-designerPlugin_designerPlugin.pro =================================================================== --- head/graphics/libQGLViewer/files/patch-designerPlugin_designerPlugin.pro +++ head/graphics/libQGLViewer/files/patch-designerPlugin_designerPlugin.pro @@ -0,0 +1,11 @@ +--- designerPlugin/designerPlugin.pro.orig 2017-12-18 16:48:34 UTC ++++ designerPlugin/designerPlugin.pro +@@ -20,7 +20,7 @@ QT_VERSION=$$[QT_VERSION] + } + } + +-target.path = $${PREFIX}/designer ++target.path = $${PREFIX}/lib/qt5/plugins/designer + INSTALLS += target + + HEADERS = qglviewerPlugin.h Index: head/graphics/libQGLViewer/pkg-descr =================================================================== --- head/graphics/libQGLViewer/pkg-descr +++ head/graphics/libQGLViewer/pkg-descr @@ -0,0 +1,11 @@ +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. + +WWW: http://libqglviewer.com/index.html Index: head/graphics/libQGLViewer/pkg-plist =================================================================== --- head/graphics/libQGLViewer/pkg-plist +++ head/graphics/libQGLViewer/pkg-plist @@ -0,0 +1,19 @@ +include/QGLViewer/camera.h +include/QGLViewer/config.h +include/QGLViewer/constraint.h +include/QGLViewer/domUtils.h +include/QGLViewer/frame.h +include/QGLViewer/keyFrameInterpolator.h +include/QGLViewer/manipulatedCameraFrame.h +include/QGLViewer/manipulatedFrame.h +include/QGLViewer/mouseGrabber.h +include/QGLViewer/qglviewer.h +include/QGLViewer/qglviewer_fr.qm +include/QGLViewer/quaternion.h +include/QGLViewer/vec.h +lib/libQGLViewer-qt5.prl +lib/libQGLViewer-qt5.so +lib/libQGLViewer-qt5.so.%%SHL1%% +lib/libQGLViewer-qt5.so.%%SHL2%% +lib/libQGLViewer-qt5.so.%%SHL3%% +lib/qt5/plugins/designer/libqglviewerplugin.so