Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2005 03:00:24 +0900
From:      KATO Tsuguru <tkato432@yahoo.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/84404: Update port: graphics/libqglviewer
Message-ID:  <20050801030024.1b5e2ad4.tkato432@yahoo.com>
Resent-Message-ID: <200507311810.j6VIAH6Z072902@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         84404
>Category:       ports
>Synopsis:       Update port: graphics/libqglviewer
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 31 18:10:16 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.11-RELEASE-p11 i386
>Organization:
>Environment:
>Description:
- Fix build on 4-stable

New file:
files/patch-VRender-BSPSortMethod.cpp
files/patch-VRender-Exporter.h
files/patch-VRender-Vector2.cpp
files/patch-VRender-Vector3.cpp
files/patch-vec.h

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/libqglviewer/Makefile graphics/libqglviewer/Makefile
--- /usr/ports/graphics/libqglviewer/Makefile	Fri Jul 15 21:35:29 2005
+++ graphics/libqglviewer/Makefile	Mon Aug  1 00:34:23 2005
@@ -17,27 +17,20 @@
 
 BUILD_DEPENDS=	${QMAKE}:${PORTSDIR}/devel/qmake
 
+WRKSRC=		${WRKDIR}/${DISTNAME}/QGLViewer
+
 USE_QT_VER=	3
-MAKE_ENV=	QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ \
-		QTDIR=${X11BASE}
-MAKE_ARGS=	PREFIX=${PREFIX}
-QMAKE=		${LOCALBASE}/bin/qmake
+MAKE_ENV=	QTDIR="${QT_PREFIX}"
 INSTALLS_SHLIB=	yes
+NO_FILTER_SHLIBS=	yes
 
 DOCSDIR=	${PREFIX}/share/doc/QGLViewer
-PORTDOCS=	*
-
-do-build:
-	@(cd ${WRKSRC}/QGLViewer && ${SETENV} ${MAKE_ENV} ${QMAKE} ${MAKE_ARGS} && \
-	  ${SETENV} ${MAKE_ENV} ${MAKE})
 
-do-install:
-	@(cd ${WRKSRC}/QGLViewer && ${SETENV} ${MAKE_ENV} ${MAKE} install)
+QMAKE?=		${LOCALBASE}/bin/qmake
+QMAKESPEC?=	${LOCALBASE}/share/qt/mkspecs/freebsd-g++
 
-post-install:
-	@${FIND} ${PREFIX}/include/QGLViewer ! -type d | \
-		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
-	@${FIND} ${PREFIX}/include/QGLViewer -type d | ${SORT} -r | \
-		${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+do-configure:
+	cd ${CONFIGURE_WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
+		-spec ${QMAKESPEC} QGLViewer.pro PREFIX="${PREFIX}"
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/libqglviewer/files/patch-VRender-BSPSortMethod.cpp graphics/libqglviewer/files/patch-VRender-BSPSortMethod.cpp
--- /usr/ports/graphics/libqglviewer/files/patch-VRender-BSPSortMethod.cpp	Thu Jan  1 09:00:00 1970
+++ graphics/libqglviewer/files/patch-VRender-BSPSortMethod.cpp	Tue Jul  5 12:42:57 2005
@@ -0,0 +1,11 @@
+--- VRender/BSPSortMethod.cpp.orig	Thu Jun 30 02:06:00 2005
++++ VRender/BSPSortMethod.cpp	Tue Jul  5 12:42:55 2005
+@@ -44,6 +44,8 @@
+ 
+ *****************************************************************************/
+ 
++#include <stdio.h>
++
+ #include "VRender.h"
+ #include "Primitive.h"
+ #include "SortMethod.h"
diff -urN /usr/ports/graphics/libqglviewer/files/patch-VRender-Exporter.h graphics/libqglviewer/files/patch-VRender-Exporter.h
--- /usr/ports/graphics/libqglviewer/files/patch-VRender-Exporter.h	Thu Jan  1 09:00:00 1970
+++ graphics/libqglviewer/files/patch-VRender-Exporter.h	Tue Jul  5 12:42:11 2005
@@ -0,0 +1,11 @@
+--- VRender/Exporter.h.orig	Thu Jun 30 02:06:00 2005
++++ VRender/Exporter.h	Tue Jul  5 12:41:58 2005
+@@ -49,6 +49,8 @@
+ 
+ // Set of classes for exporting in various formats, like EPS, XFig3.2, SVG.
+ 
++#include <stdio.h>
++
+ #include "Primitive.h"
+ 
+ namespace vrender
diff -urN /usr/ports/graphics/libqglviewer/files/patch-VRender-Vector2.cpp graphics/libqglviewer/files/patch-VRender-Vector2.cpp
--- /usr/ports/graphics/libqglviewer/files/patch-VRender-Vector2.cpp	Thu Jan  1 09:00:00 1970
+++ graphics/libqglviewer/files/patch-VRender-Vector2.cpp	Tue Jul  5 12:54:14 2005
@@ -0,0 +1,10 @@
+--- VRender/Vector2.cpp.orig	Thu Jun 30 02:06:00 2005
++++ VRender/Vector2.cpp	Tue Jul  5 12:53:56 2005
+@@ -44,6 +44,7 @@
+ 
+ *****************************************************************************/
+ 
++#include <vector>
+ #include "Vector2.h"
+ #include "Vector3.h"
+ #include "Functions.h"
diff -urN /usr/ports/graphics/libqglviewer/files/patch-VRender-Vector3.cpp graphics/libqglviewer/files/patch-VRender-Vector3.cpp
--- /usr/ports/graphics/libqglviewer/files/patch-VRender-Vector3.cpp	Thu Jan  1 09:00:00 1970
+++ graphics/libqglviewer/files/patch-VRender-Vector3.cpp	Tue Jul  5 12:53:44 2005
@@ -0,0 +1,10 @@
+--- VRender/Vector3.cpp.orig	Thu Jun 30 02:06:00 2005
++++ VRender/Vector3.cpp	Tue Jul  5 12:53:29 2005
+@@ -45,6 +45,7 @@
+ *****************************************************************************/
+ 
+ #include <iostream>
++#include <vector>
+ #include "Vector3.h"
+ #include "NVector3.h"
+ #include "Functions.h"
diff -urN /usr/ports/graphics/libqglviewer/files/patch-vec.h graphics/libqglviewer/files/patch-vec.h
--- /usr/ports/graphics/libqglviewer/files/patch-vec.h	Thu Jan  1 09:00:00 1970
+++ graphics/libqglviewer/files/patch-vec.h	Tue Jul  5 12:33:31 2005
@@ -0,0 +1,11 @@
+--- vec.h.orig	Thu Jun 30 02:06:00 2005
++++ vec.h	Tue Jul  5 12:33:19 2005
+@@ -69,7 +69,7 @@
+ 
+   // If your compiler complains the "The class "qglviewer::Vec" has no member "x"."
+   // Add your architecture Q_OS_XXXX flag (see qglobal.h) in this list.
+-#if defined (Q_OS_IRIX) || defined (Q_OS_AIX) || defined (Q_OS_HPUX)
++#if defined (Q_OS_IRIX) || defined (Q_OS_AIX) || defined (Q_OS_HPUX) || defined(Q_OS_FREEBSD)
+ # define UNION_NOT_SUPPORTED
+ #endif
+ 
diff -urN /usr/ports/graphics/libqglviewer/pkg-plist graphics/libqglviewer/pkg-plist
--- /usr/ports/graphics/libqglviewer/pkg-plist	Fri Jul 15 21:35:29 2005
+++ graphics/libqglviewer/pkg-plist	Tue Jul  5 13:24:10 2005
@@ -1,6 +1,137 @@
+include/QGLViewer/camera.h
+include/QGLViewer/config.h
+include/QGLViewer/constraint.h
+include/QGLViewer/domUtils.h
+include/QGLViewer/frame.h
+include/QGLViewer/icon.h
+include/QGLViewer/keyFrameInterpolator.h
+include/QGLViewer/manipulatedCameraFrame.h
+include/QGLViewer/manipulatedFrame.h
+include/QGLViewer/mouseGrabber.h
+include/QGLViewer/qglviewer.cw
+include/QGLViewer/qglviewer.h
+include/QGLViewer/quaternion.h
+include/QGLViewer/vec.h
 lib/libQGLViewer.prl
+lib/libQGLViewer.so
+lib/libQGLViewer.so.2
+lib/libQGLViewer.so.2.0
 lib/libQGLViewer.so.2.0.0
-@exec ln -sf %D/lib/libQGLViewer.so.2.0.0 %D/lib/libQGLViewer.so
-@exec ln -sf %D/lib/libQGLViewer.so.2.0.0 %D/lib/libQGLViewer.so.2
-@exec ln -sf %D/lib/libQGLViewer.so.2.0.0 %D/lib/libQGLViewer.so.2.0
-@unexec rm -f %D/lib/libQGLViewer.so %D/lib/libQGLViewer.so.2 %D/lib/libQGLViewer.so.2.0 2>&1 >/dev/null || true
+%%DOCSDIR%%/changeLog.html
+%%DOCSDIR%%/commented.html
+%%DOCSDIR%%/developer.html
+%%DOCSDIR%%/download.html
+%%DOCSDIR%%/faq.html
+%%DOCSDIR%%/features.html
+%%DOCSDIR%%/images/3dsViewer.jpg
+%%DOCSDIR%%/images/agora.jpg
+%%DOCSDIR%%/images/anaglyph.jpg
+%%DOCSDIR%%/images/animation.jpg
+%%DOCSDIR%%/images/backgroundImage.jpg
+%%DOCSDIR%%/images/callback.jpg
+%%DOCSDIR%%/images/constrainedCamera.jpg
+%%DOCSDIR%%/images/constrainedFrame.jpg
+%%DOCSDIR%%/images/css.png
+%%DOCSDIR%%/images/designerplugin.jpg
+%%DOCSDIR%%/images/drawLight.jpg
+%%DOCSDIR%%/images/dvonn.jpg
+%%DOCSDIR%%/images/eventRecorder.jpg
+%%DOCSDIR%%/images/fastDraw.jpg
+%%DOCSDIR%%/images/frameTransform.jpg
+%%DOCSDIR%%/images/interface.jpg
+%%DOCSDIR%%/images/keyFrames.jpg
+%%DOCSDIR%%/images/keyboardAndMouse.jpg
+%%DOCSDIR%%/images/linux.png
+%%DOCSDIR%%/images/luxo.jpg
+%%DOCSDIR%%/images/mac.png
+%%DOCSDIR%%/images/manipulatedFrame.jpg
+%%DOCSDIR%%/images/mouseGrabber.jpg
+%%DOCSDIR%%/images/multiSelect.jpg
+%%DOCSDIR%%/images/multiView.jpg
+%%DOCSDIR%%/images/openGL.png
+%%DOCSDIR%%/images/qglviewer.ico
+%%DOCSDIR%%/images/qglviewer.icon.png
+%%DOCSDIR%%/images/qglviewer.png
+%%DOCSDIR%%/images/qglviewer.small.png
+%%DOCSDIR%%/images/qt.png
+%%DOCSDIR%%/images/quarto.jpg
+%%DOCSDIR%%/images/screenCoordSystem.jpg
+%%DOCSDIR%%/images/select.jpg
+%%DOCSDIR%%/images/simpleViewer.jpg
+%%DOCSDIR%%/images/sphere.png
+%%DOCSDIR%%/images/stereoViewer.jpg
+%%DOCSDIR%%/images/terrain.jpg
+%%DOCSDIR%%/images/textureViewer.jpg
+%%DOCSDIR%%/images/thumbnail.jpg
+%%DOCSDIR%%/images/windows.png
+%%DOCSDIR%%/images/x3dViewer.jpg
+%%DOCSDIR%%/images/xhtml.png
+%%DOCSDIR%%/index.html
+%%DOCSDIR%%/installUnix.html
+%%DOCSDIR%%/installWindows.html
+%%DOCSDIR%%/intro.html
+%%DOCSDIR%%/keyboard.html
+%%DOCSDIR%%/mouse.html
+%%DOCSDIR%%/qglviewer.css
+%%DOCSDIR%%/refManual/annotated.html
+%%DOCSDIR%%/refManual/classQGLViewer-members.html
+%%DOCSDIR%%/refManual/classQGLViewer.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1AxisPlaneConstraint-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1AxisPlaneConstraint.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Camera-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Camera.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1CameraConstraint-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1CameraConstraint.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Constraint-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Constraint.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Frame-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Frame.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1KeyFrameInterpolator-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1KeyFrameInterpolator.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1LocalConstraint-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1LocalConstraint.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1ManipulatedCameraFrame-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1ManipulatedCameraFrame.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1ManipulatedFrame-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1ManipulatedFrame.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1MouseGrabber-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1MouseGrabber.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Quaternion-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Quaternion.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Vec-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1Vec.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1WorldConstraint-members.html
+%%DOCSDIR%%/refManual/classqglviewer_1_1WorldConstraint.html
+%%DOCSDIR%%/refManual/doxygen.css
+%%DOCSDIR%%/refManual/doxygen.png
+%%DOCSDIR%%/refManual/functions.html
+%%DOCSDIR%%/refManual/functions_0x62.html
+%%DOCSDIR%%/refManual/functions_0x63.html
+%%DOCSDIR%%/refManual/functions_0x64.html
+%%DOCSDIR%%/refManual/functions_0x65.html
+%%DOCSDIR%%/refManual/functions_0x66.html
+%%DOCSDIR%%/refManual/functions_0x67.html
+%%DOCSDIR%%/refManual/functions_0x68.html
+%%DOCSDIR%%/refManual/functions_0x69.html
+%%DOCSDIR%%/refManual/functions_0x6b.html
+%%DOCSDIR%%/refManual/functions_0x6c.html
+%%DOCSDIR%%/refManual/functions_0x6d.html
+%%DOCSDIR%%/refManual/functions_0x6e.html
+%%DOCSDIR%%/refManual/functions_0x6f.html
+%%DOCSDIR%%/refManual/functions_0x70.html
+%%DOCSDIR%%/refManual/functions_0x71.html
+%%DOCSDIR%%/refManual/functions_0x72.html
+%%DOCSDIR%%/refManual/functions_0x73.html
+%%DOCSDIR%%/refManual/functions_0x74.html
+%%DOCSDIR%%/refManual/functions_0x75.html
+%%DOCSDIR%%/refManual/functions_0x76.html
+%%DOCSDIR%%/refManual/functions_0x77.html
+%%DOCSDIR%%/refManual/functions_0x7a.html
+%%DOCSDIR%%/refManual/functions_0x7e.html
+%%DOCSDIR%%/refManual/hierarchy.html
+%%DOCSDIR%%/refManual/index.html
+%%DOCSDIR%%/techFaq.html
+@dirrm %%DOCSDIR%%/refManual
+@dirrm %%DOCSDIR%%/images
+@dirrm %%DOCSDIR%%
+@dirrm include/QGLViewer
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050801030024.1b5e2ad4.tkato432>