freebsd-ports/math/freemat/files/patch-libs__libGraphics__GLRenderEngine.cpp
Raphael Kubo da Costa 50d2623232 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.

Contrary to other ports, PORTREVISION was not bumped here because
freemat already depended on glu, we just needed to add a missing
#include.

[1] e7eed096a0

Approved by:	miwi (needed for the Qt 4.8.1 exp-run)
2012-05-20 14:52:11 +00:00

11 lines
371 B
C++

--- ./libs/libGraphics/GLRenderEngine.cpp~ 2012-05-20 11:26:18.000000000 -0300
+++ ./libs/libGraphics/GLRenderEngine.cpp 2012-05-20 11:26:30.000000000 -0300
@@ -23,6 +23,8 @@
#include <math.h>
#include "IEEEFP.hpp"
+#include <GL/glu.h>
+
GLRenderEngine::GLRenderEngine(QGLWidget *widget, double x1, double y1,
double width, double height) {
m_x1 = x1;