Hi,
here's an update to dustrac 2.0.3, builds and starts fine but does a
SIGBUS here on my x1 after 5sec of race.. be it fullscreen or windowed.
if anyone wants to use that update and pick the ball..
Landry
? patch-CMakeLists_txt
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/dustrac/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile 12 Jul 2019 20:46:16 -0000 1.15
+++ Makefile 11 Nov 2019 19:35:35 -0000
@@ -3,11 +3,10 @@
COMMENT = traditional top-down car racing game
PKGNAME = dustrac-${GH_TAGNAME}
-REVISION = 2
GH_ACCOUNT = juzzlin
GH_PROJECT = DustRacing2D
-GH_TAGNAME = 1.13.0
+GH_TAGNAME = 2.0.3
CATEGORIES = games
@@ -16,7 +15,7 @@
# GPLv3+
PERMIT_PACKAGE = Yes
-WANTLIB += GL GLU c m openal pthread vorbisfile
+WANTLIB += GL c m openal pthread vorbisfile
WANTLIB += Qt5Core Qt5Gui Qt5OpenGL Qt5Widgets Qt5Xml
WANTLIB += ${COMPILER_LIBCXX}
Index: distinfo
===================================================================
RCS file: /cvs/ports/games/dustrac/distinfo,v
retrieving revision 1.4
diff -u -r1.4 distinfo
--- distinfo 5 Sep 2017 11:00:02 -0000 1.4
+++ distinfo 11 Nov 2019 19:35:35 -0000
@@ -1,2 +1,2 @@
-SHA256 (DustRacing2D-1.13.0.tar.gz) =
DMOD71kPqzH7HYe7SyQc3+yfyPe4JCGl5ZSo/dbwvJY=
-SIZE (DustRacing2D-1.13.0.tar.gz) = 18466297
+SHA256 (DustRacing2D-2.0.3.tar.gz) =
y/c/wcRG1AaCIsUdf9Z72Q3M4mUboqoq6K7LLcjuCHM=
+SIZE (DustRacing2D-2.0.3.tar.gz) = 17338605
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: /cvs/ports/games/dustrac/patches/patch-CMakeLists_txt,v
retrieving revision 1.2
diff -u -r1.2 patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt 13 May 2017 21:56:14 -0000 1.2
+++ patches/patch-CMakeLists_txt 11 Nov 2019 19:35:35 -0000
@@ -1,16 +1,18 @@
-$OpenBSD: patch-CMakeLists_txt,v 1.2 2017/05/13 21:56:14 espie Exp $
-set C++ options explicitly, clang complains for C code.
+$OpenBSD$
Index: CMakeLists.txt
--- CMakeLists.txt.orig
+++ CMakeLists.txt
-@@ -64,7 +64,8 @@ elseif(WIN32)
- endif()
+@@ -121,11 +121,7 @@ find_package(Qt5Test ${QT_MIN_VER} REQUIRED)
- if(CMAKE_COMPILER_IS_GNUCXX OR MINGW OR ${CMAKE_CXX_COMPILER_ID} STREQUAL
"Clang")
-- add_compile_options(-std=c++11 -W -Wall -O3 -pedantic)
-+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
-+ add_compile_options(-W -Wall -pedantic)
- add_compile_options(-fomit-frame-pointer -finline-functions -ffast-math)
- elseif(MSVC)
- add_definitions(-DNOMINMAX)
+ # Find OpenGL
+ find_package(OpenGL REQUIRED)
+-if(${CMAKE_VERSION} VERSION_LESS "3.11.0")
+- set(DUSTRAC_OPENGL_LIBS ${OPENGL_gl_LIBRARY})
+-else()
+- set(DUSTRAC_OPENGL_LIBS OpenGL::OpenGL)
+-endif()
++set(DUSTRAC_OPENGL_LIBS ${OPENGL_gl_LIBRARY})
+
+ # OpenAL for sounds. OpenAL directory can be given by -DOPENALDIR=...
+ set(ENV{OPENALDIR} ${OpenALDir})
Index: patches/patch-src_game_MiniCore_CMakeLists_txt
===================================================================
RCS file: patches/patch-src_game_MiniCore_CMakeLists_txt
diff -N patches/patch-src_game_MiniCore_CMakeLists_txt
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_game_MiniCore_CMakeLists_txt 11 Nov 2019 19:35:35
-0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+
+Index: src/game/MiniCore/CMakeLists.txt
+--- src/game/MiniCore/CMakeLists.txt.orig
++++ src/game/MiniCore/CMakeLists.txt
+@@ -57,11 +57,7 @@ find_package(Qt5Widgets ${QT_MIN_VER} REQUIRED)
+
+ # Find OpenGL
+ find_package(OpenGL REQUIRED)
+-if(${CMAKE_VERSION} VERSION_LESS "3.11.0")
+- set(MINICORE_OPENGL_LIBS ${OPENGL_gl_LIBRARY})
+-else()
+- set(MINICORE_OPENGL_LIBS OpenGL::OpenGL)
+-endif()
++set(MINICORE_OPENGL_LIBS ${OPENGL_gl_LIBRARY})
+
+ # Enable CMake's unit test framework
+ enable_testing()
Index: patches/patch-src_game_MiniCore_Graphics_MCGLEW
===================================================================
RCS file: patches/patch-src_game_MiniCore_Graphics_MCGLEW
diff -N patches/patch-src_game_MiniCore_Graphics_MCGLEW
--- patches/patch-src_game_MiniCore_Graphics_MCGLEW 5 Sep 2017 11:00:02
-0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
-$OpenBSD: patch-src_game_MiniCore_Graphics_MCGLEW,v 1.1 2017/09/05 11:00:02
bentley Exp $
-
-Fix undefined references to glBindVertexArray, etc.
-
-Index: src/game/MiniCore/Graphics/MCGLEW
---- src/game/MiniCore/Graphics/MCGLEW.orig
-+++ src/game/MiniCore/Graphics/MCGLEW
-@@ -7,7 +7,9 @@
- #include <windows.h>
- #include <wingdi.h>
- #endif
-+ #define GL_GLEXT_PROTOTYPES
- #include <GL/gl.h>
-+ #include <GL/glext.h>
- #else
- #include <GLES/gl.h>
- #endif
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/games/dustrac/pkg/PLIST,v
retrieving revision 1.6
diff -u -r1.6 PLIST
--- pkg/PLIST 29 Jun 2018 22:16:12 -0000 1.6
+++ pkg/PLIST 11 Nov 2019 19:35:35 -0000
@@ -1,8 +1,6 @@
@comment $OpenBSD: PLIST,v 1.6 2018/06/29 22:16:12 espie Exp $
@bin bin/dustrac-editor
@bin bin/dustrac-game
-share/appdata/
-share/appdata/dustrac.appdata.xml
share/applications/dustrac-editor.desktop
share/applications/dustrac-game.desktop
share/dustrac/
@@ -12,16 +10,13 @@
share/dustrac/README.md
share/dustrac/editorModels.conf
share/dustrac/fonts/
-share/dustrac/fonts.conf
-share/dustrac/fonts/UbuntuMono-B.ttf
-share/dustrac/fonts/UbuntuMono-R.ttf
+share/dustrac/fonts/DejaVuSans-Bold.ttf
+share/dustrac/fonts/LICENCE.txt
share/dustrac/images/
share/dustrac/images/about.png
share/dustrac/images/asphalt.png
share/dustrac/images/brake.png
-share/dustrac/images/bridge.png
share/dustrac/images/bridgeEditor.png
-share/dustrac/images/bridgeObject.png
share/dustrac/images/bridgePreview.png
share/dustrac/images/bushArea.png
share/dustrac/images/carBlack.png
@@ -124,6 +119,7 @@
share/dustrac/levels/twister.trk
share/dustrac/meshes.conf
share/dustrac/models/
+share/dustrac/models/bridge.obj
share/dustrac/models/cube.obj
share/dustrac/sounds/
share/dustrac/sounds/bell.ogg
@@ -150,6 +146,8 @@
share/dustrac/translations/dustrac-game_it.qm
share/icons/hicolor/64x64/apps/dustrac-editor.png
share/icons/hicolor/64x64/apps/dustrac-game.png
+share/metainfo/
+share/metainfo/dustrac.appdata.xml
share/pixmaps/
share/pixmaps/dustrac-editor.png
share/pixmaps/dustrac-game.png