Make the port build with the upcoming Qt 4.8.x series.

Since 4.8.0 [1], Qt itself does not automatically include GLU's
headers and libraries with its OpenGL module, so applications which
relied on Qt to get these need to be adjusted.

PORTREVISION bumped since we now explicitly depend on GLU via
USE_GL=glu.

[1] e7eed096a0
This commit is contained in:
Raphael Kubo da Costa 2012-05-20 02:10:15 +00:00
parent c7bd24eb19
commit cb15105d41
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=296993
3 changed files with 23 additions and 0 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= autoq3d PORTNAME= autoq3d
DISTVERSION= 1.40 DISTVERSION= 1.40
PORTREVISION= 1
CATEGORIES= graphics CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/AutoQ3D%20${PORTVERSION} MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/AutoQ3D%20${PORTVERSION}
DISTNAME= AutoQ3DCommunity${PORTVERSION:C/\./-/}qt4source DISTNAME= AutoQ3DCommunity${PORTVERSION:C/\./-/}qt4source
@ -17,6 +18,7 @@ COMMENT= A complete QT quick 3d model editor program
LICENSE= GPLv2 GPLv3 LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual LICENSE_COMB= dual
USE_GL= glu
USE_ZIP= yes USE_ZIP= yes
USE_QT_VER= 4 USE_QT_VER= 4
QT_COMPONENTS= corelib gui opengl \ QT_COMPONENTS= corelib gui opengl \

View file

@ -0,0 +1,10 @@
--- AutoQ3D.pro~ 2012-05-19 22:52:00.000000000 -0300
+++ AutoQ3D.pro 2012-05-19 22:56:52.000000000 -0300
@@ -8,6 +8,7 @@
win32:LIBS+= -L$(QTDIR)/plugins/imageformats -lqjpeg4
QT += opengl
+LIBS += -lGLU
DEPENDPATH += . \
src \
src/cmds \

View file

@ -0,0 +1,11 @@
--- src/fgui/glapparea.cpp~ 2012-05-19 22:54:35.000000000 -0300
+++ src/fgui/glapparea.cpp 2012-05-19 22:54:50.000000000 -0300
@@ -24,6 +24,8 @@
#include <qtimer.h>
#include <math.h>
+#include <GL/glu.h>
+
GLAppArea::GLAppArea( QWidget* parent,QStringList* strlista)
: QGLWidget( parent)