Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 May 2021 13:49:23 GMT
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 194fda4858ba - main - devel/love08: fix build
Message-ID:  <202105191349.14JDnNcd087882@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=194fda4858ba75fd4d4e4b2866b6f739c2988f40

commit 194fda4858ba75fd4d4e4b2866b6f739c2988f40
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-05-19 11:20:15 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-05-19 13:46:26 +0000

    devel/love08: fix build
---
 devel/love08/Makefile                                       |  2 --
 ...atch-src_libraries_Box2D_Collision_Shapes_b2ChainShape.h | 13 +++++++++++++
 .../files/patch-src_modules_graphics_opengl_Canvas.cpp      | 10 ++++++++++
 .../files/patch-src_modules_graphics_opengl_Graphics.cpp    | 10 ++++++++++
 .../files/patch-src_modules_graphics_opengl_PixelEffect.cpp | 10 ++++++++++
 .../patch-src_modules_graphics_opengl_VertexBuffer.cpp      | 10 ++++++++++
 6 files changed, 53 insertions(+), 2 deletions(-)

diff --git a/devel/love08/Makefile b/devel/love08/Makefile
index 704a3af371ef..f3f0594db8dc 100644
--- a/devel/love08/Makefile
+++ b/devel/love08/Makefile
@@ -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 \
diff --git a/devel/love08/files/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape.h b/devel/love08/files/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape.h
new file mode 100644
index 000000000000..5b74f207c931
--- /dev/null
+++ b/devel/love08/files/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape.h
@@ -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
diff --git a/devel/love08/files/patch-src_modules_graphics_opengl_Canvas.cpp b/devel/love08/files/patch-src_modules_graphics_opengl_Canvas.cpp
new file mode 100644
index 000000000000..fcca7b15eabd
--- /dev/null
+++ b/devel/love08/files/patch-src_modules_graphics_opengl_Canvas.cpp
@@ -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>
diff --git a/devel/love08/files/patch-src_modules_graphics_opengl_Graphics.cpp b/devel/love08/files/patch-src_modules_graphics_opengl_Graphics.cpp
new file mode 100644
index 000000000000..37747e8eea39
--- /dev/null
+++ b/devel/love08/files/patch-src_modules_graphics_opengl_Graphics.cpp
@@ -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>
diff --git a/devel/love08/files/patch-src_modules_graphics_opengl_PixelEffect.cpp b/devel/love08/files/patch-src_modules_graphics_opengl_PixelEffect.cpp
new file mode 100644
index 000000000000..0142ea8c9d0d
--- /dev/null
+++ b/devel/love08/files/patch-src_modules_graphics_opengl_PixelEffect.cpp
@@ -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"
+ 
diff --git a/devel/love08/files/patch-src_modules_graphics_opengl_VertexBuffer.cpp b/devel/love08/files/patch-src_modules_graphics_opengl_VertexBuffer.cpp
new file mode 100644
index 000000000000..4a88fda8a26a
--- /dev/null
+++ b/devel/love08/files/patch-src_modules_graphics_opengl_VertexBuffer.cpp
@@ -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"



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