devel/love08: fix build

This commit is contained in:
Dmitry Marakasov 2021-05-19 14:20:15 +03:00
parent 8417eee440
commit 194fda4858
6 changed files with 53 additions and 2 deletions

View file

@ -10,8 +10,6 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-linux-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Open-source 2D game engine
BROKEN= fails to build
LIB_DEPENDS= libIL.so:graphics/devil \
libmodplug.so:audio/libmodplug \
libmpg123.so:audio/mpg123 \

View file

@ -0,0 +1,13 @@
--- src/libraries/Box2D/Collision/Shapes/b2ChainShape.h.orig 2012-04-06 18:15:01 UTC
+++ src/libraries/Box2D/Collision/Shapes/b2ChainShape.h
@@ -95,8 +95,8 @@ inline b2ChainShape::b2ChainShape()
m_radius = b2_polygonRadius;
m_vertices = NULL;
m_count = 0;
- m_hasPrevVertex = NULL;
- m_hasNextVertex = NULL;
+ m_hasPrevVertex = false;
+ m_hasNextVertex = false;
}
#endif

View file

@ -0,0 +1,10 @@
--- src/modules/graphics/opengl/Canvas.cpp.orig 2012-04-06 18:15:01 UTC
+++ src/modules/graphics/opengl/Canvas.cpp
@@ -18,6 +18,7 @@
* 3. This notice may not be removed or altered from any source distribution.
**/
+#define GL_GLEXT_PROTOTYPES
#include "Canvas.h"
#include "Graphics.h"
#include <common/Matrix.h>

View file

@ -0,0 +1,10 @@
--- src/modules/graphics/opengl/Graphics.cpp.orig 2012-04-06 18:15:01 UTC
+++ src/modules/graphics/opengl/Graphics.cpp
@@ -18,6 +18,7 @@
* 3. This notice may not be removed or altered from any source distribution.
**/
+#define GL_GLEXT_PROTOTYPES
#include <common/config.h>
#include <common/math.h>
#include <common/Vector.h>

View file

@ -0,0 +1,10 @@
--- src/modules/graphics/opengl/PixelEffect.cpp.orig 2012-04-06 18:15:01 UTC
+++ src/modules/graphics/opengl/PixelEffect.cpp
@@ -18,6 +18,7 @@
* 3. This notice may not be removed or altered from any source distribution.
**/
+#define GL_GLEXT_PROTOTYPES
#include "PixelEffect.h"
#include "GLee.h"

View file

@ -0,0 +1,10 @@
--- src/modules/graphics/opengl/VertexBuffer.cpp.orig 2012-04-06 18:15:01 UTC
+++ src/modules/graphics/opengl/VertexBuffer.cpp
@@ -18,6 +18,7 @@
* 3. This notice may not be removed or altered from any source distribution.
**/
+#define GL_GLEXT_PROTOTYPES
#include "VertexBuffer.h"
#include "common/Exception.h"