Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 2019 20:51:28 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r507595 - in head/games/dustrac: . files
Message-ID:  <201907292051.x6TKpSYq007343@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Jul 29 20:51:27 2019
New Revision: 507595
URL: https://svnweb.freebsd.org/changeset/ports/507595

Log:
  - Update to 2.0.3
  - Take maintainership
  
  Though it has graphical problems for me on Intel graphics, the
  older version segfaults so it's still better. I hope to resolve
  these (see https://github.com/juzzlin/DustRacing2D/issues/58),
  or they may not reproduce on other hardware.

Added:
  head/games/dustrac/files/patch-CMakeLists.txt   (contents, props changed)
  head/games/dustrac/files/patch-src_game_MiniCore_CMakeLists.txt   (contents, props changed)
Deleted:
  head/games/dustrac/files/patch-src__editor__editorview.cpp
  head/games/dustrac/files/patch-src__game__fadeanimation.cpp
Modified:
  head/games/dustrac/Makefile
  head/games/dustrac/distinfo
  head/games/dustrac/pkg-plist

Modified: head/games/dustrac/Makefile
==============================================================================
--- head/games/dustrac/Makefile	Mon Jul 29 20:42:04 2019	(r507594)
+++ head/games/dustrac/Makefile	Mon Jul 29 20:51:27 2019	(r507595)
@@ -1,38 +1,39 @@
 # $FreeBSD$
 
 PORTNAME=	dustrac
-PORTVERSION=	1.11.0
-PORTREVISION=	7
+PORTVERSION=	2.0.3
 CATEGORIES=	games
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	2D top-view racing game
 
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
 LIB_DEPENDS=	libvorbisfile.so:audio/libvorbis
 
-USES=		compiler:c++11-lib cmake openal pkgconfig qt:5
-USE_GL=		glu
-USE_QT=		core opengl xml widgets \
+USE_GITHUB=	yes
+GH_ACCOUNT=	juzzlin
+GH_PROJECT=	DustRacing2D
+
+USES=		compiler:c++11-lib cmake gl openal pkgconfig qt:5
+USE_GL=		gl glu
+USE_QT=		core gui opengl xml widgets testlib \
 		buildtools_build linguisttools_build qmake_build
 CMAKE_ARGS=	-DReleaseBuild=on \
 		-DDATA_PATH=${DATADIR} \
 		-DDOC_PATH=${DOCSDIR}
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	juzzlin
-GH_PROJECT=	DustRacing2D
+PORTDATA=	*
+PORTDOCS=	*
 
 OPTIONS_DEFINE=	DOCS
 
 STRIP_FILES=	bin/dustrac-game \
 		bin/dustrac-editor
 
-post-patch:
-	${REINPLACE_CMD} -e '/add_subdirectory(UnitTests)/d' \
-		${WRKSRC}/src/game/MiniCore/CMakeLists.txt
-
 post-install:
-	${STRIP_CMD} ${STRIP_FILES:S,^,${STAGEDIR}${PREFIX}/,}
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dustrac-*
 
 .include <bsd.port.mk>

Modified: head/games/dustrac/distinfo
==============================================================================
--- head/games/dustrac/distinfo	Mon Jul 29 20:42:04 2019	(r507594)
+++ head/games/dustrac/distinfo	Mon Jul 29 20:51:27 2019	(r507595)
@@ -1,2 +1,3 @@
-SHA256 (juzzlin-DustRacing2D-1.11.0_GH0.tar.gz) = 48512ce979d4c4945dd6b9b4832da88619113477a53f0b7e7edee832f5a582ec
-SIZE (juzzlin-DustRacing2D-1.11.0_GH0.tar.gz) = 27506587
+TIMESTAMP = 1563219146
+SHA256 (juzzlin-DustRacing2D-2.0.3_GH0.tar.gz) = cbf73fc1c446d4068222c51d7fd67bd90dcce2651ba2aa2ae8aecb2dc8ee0873
+SIZE (juzzlin-DustRacing2D-2.0.3_GH0.tar.gz) = 17338605

Added: head/games/dustrac/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/dustrac/files/patch-CMakeLists.txt	Mon Jul 29 20:51:27 2019	(r507595)
@@ -0,0 +1,28 @@
+--- CMakeLists.txt.orig	2019-07-09 21:02:22 UTC
++++ CMakeLists.txt
+@@ -90,16 +90,6 @@ elseif(WIN32)
+ endif()
+ 
+ if(CMAKE_COMPILER_IS_GNUCXX OR MINGW OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
+-    add_compile_options("$<$<CONFIG:RELEASE>:-W;-Wall;-O3;-pedantic;-fomit-frame-pointer>")
+-    add_compile_options("$<$<CONFIG:DEBUG>:-W;-Wall;-O0;-pedantic>")
+-
+-    # Automatically use ccache if found
+-    find_program(CCACHE_FOUND ccache)
+-    if(CCACHE_FOUND)
+-        set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
+-        set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
+-    endif(CCACHE_FOUND)
+-
+ elseif(MSVC)
+     add_definitions(-DNOMINMAX)
+ endif()
+@@ -124,7 +114,7 @@ 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)
++    set(DUSTRAC_OPENGL_LIBS OpenGL::GL)
+ endif()
+ 
+ # OpenAL for sounds. OpenAL directory can be given by -DOPENALDIR=...

Added: head/games/dustrac/files/patch-src_game_MiniCore_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/dustrac/files/patch-src_game_MiniCore_CMakeLists.txt	Mon Jul 29 20:51:27 2019	(r507595)
@@ -0,0 +1,11 @@
+--- ./src/game/MiniCore/CMakeLists.txt.orig	2019-07-09 21:02:22 UTC
++++ ./src/game/MiniCore/CMakeLists.txt
+@@ -60,7 +60,7 @@ 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)
++    set(MINICORE_OPENGL_LIBS OpenGL::GL)
+ endif()
+ 
+ # Enable CMake's unit test framework

Modified: head/games/dustrac/pkg-plist
==============================================================================
--- head/games/dustrac/pkg-plist	Mon Jul 29 20:42:04 2019	(r507594)
+++ head/games/dustrac/pkg-plist	Mon Jul 29 20:51:27 2019	(r507595)
@@ -2,134 +2,8 @@ bin/dustrac-editor
 bin/dustrac-game
 share/applications/dustrac-editor.desktop
 share/applications/dustrac-game.desktop
-%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%DATADIR%%/editorModels.conf
-%%DATADIR%%/fonts.conf
-%%DATADIR%%/fonts/UbuntuMono-B.ttf
-%%DATADIR%%/fonts/UbuntuMono-R.ttf
-%%DATADIR%%/images/about.png
-%%DATADIR%%/images/asphalt.png
-%%DATADIR%%/images/brake.png
-%%DATADIR%%/images/bridge.png
-%%DATADIR%%/images/bridgeEditor.png
-%%DATADIR%%/images/bridgeObject.png
-%%DATADIR%%/images/bridgePreview.png
-%%DATADIR%%/images/bushArea.png
-%%DATADIR%%/images/carBlack.png
-%%DATADIR%%/images/carBlue.png
-%%DATADIR%%/images/carBrown.png
-%%DATADIR%%/images/carCyan.png
-%%DATADIR%%/images/carDarkGreen.png
-%%DATADIR%%/images/carDarkRed.png
-%%DATADIR%%/images/carGreen.png
-%%DATADIR%%/images/carGrey.png
-%%DATADIR%%/images/carNormalMap.png
-%%DATADIR%%/images/carOrange.png
-%%DATADIR%%/images/carPink.png
-%%DATADIR%%/images/carRed.png
-%%DATADIR%%/images/carViolet.png
-%%DATADIR%%/images/carYellow.png
-%%DATADIR%%/images/checkeredFlag.png
-%%DATADIR%%/images/clear.png
-%%DATADIR%%/images/corner.png
-%%DATADIR%%/images/corner45Left.png
-%%DATADIR%%/images/corner45LeftPreview.png
-%%DATADIR%%/images/corner45Right.png
-%%DATADIR%%/images/corner45RightPreview.png
-%%DATADIR%%/images/cornerPreview.png
-%%DATADIR%%/images/crashOverlay.png
-%%DATADIR%%/images/creditsHelpBack.png
-%%DATADIR%%/images/cross.png
-%%DATADIR%%/images/cursor.png
-%%DATADIR%%/images/cursor2.png
-%%DATADIR%%/images/dustRacing2DBanner.png
-%%DATADIR%%/images/finish.png
-%%DATADIR%%/images/finishPreview.png
-%%DATADIR%%/images/frontTire.png
-%%DATADIR%%/images/grandstand.png
-%%DATADIR%%/images/grandstandEditor.png
-%%DATADIR%%/images/grass.png
-%%DATADIR%%/images/grassEditor.png
-%%DATADIR%%/images/grid.png
-%%DATADIR%%/images/intro.png
-%%DATADIR%%/images/leaf.png
-%%DATADIR%%/images/left.png
-%%DATADIR%%/images/lock.png
-%%DATADIR%%/images/logo.png
-%%DATADIR%%/images/mainMenuBack.png
-%%DATADIR%%/images/mud.png
-%%DATADIR%%/images/pit.png
-%%DATADIR%%/images/plant.png
-%%DATADIR%%/images/right.png
-%%DATADIR%%/images/rock.png
-%%DATADIR%%/images/sand.png
-%%DATADIR%%/images/sandAreaBig.png
-%%DATADIR%%/images/sandAreaCurve.png
-%%DATADIR%%/images/sandEditor.png
-%%DATADIR%%/images/sandGrassCorner.png
-%%DATADIR%%/images/sandGrassCorner2.png
-%%DATADIR%%/images/sandGrassCorner2Editor.png
-%%DATADIR%%/images/sandGrassCornerEditor.png
-%%DATADIR%%/images/sandGrassStraight.png
-%%DATADIR%%/images/sandGrassStraightEditor.png
-%%DATADIR%%/images/settingsBack.png
-%%DATADIR%%/images/skid.png
-%%DATADIR%%/images/sky.png
-%%DATADIR%%/images/smoke.png
-%%DATADIR%%/images/sparkle.png
-%%DATADIR%%/images/star.png
-%%DATADIR%%/images/starGlow.png
-%%DATADIR%%/images/startLightGlow.png
-%%DATADIR%%/images/startLightOff.png
-%%DATADIR%%/images/startLightOffCorner.png
-%%DATADIR%%/images/startLightOn.png
-%%DATADIR%%/images/startLightOnCorner.png
-%%DATADIR%%/images/steel.jpg
-%%DATADIR%%/images/straight.png
-%%DATADIR%%/images/straight45Female.png
-%%DATADIR%%/images/straight45FemalePreview.png
-%%DATADIR%%/images/straight45Male.png
-%%DATADIR%%/images/straight45MalePreview.png
-%%DATADIR%%/images/straightPreview.png
-%%DATADIR%%/images/tire.png
-%%DATADIR%%/images/tireStatusIndicatorBody.png
-%%DATADIR%%/images/tireStatusIndicatorTires.png
-%%DATADIR%%/images/trackSelectionBack.png
-%%DATADIR%%/images/tree.png
-%%DATADIR%%/images/wood.png
-%%DATADIR%%/levels/curvastone.trk
-%%DATADIR%%/levels/infinity.trk
-%%DATADIR%%/levels/monza.trk
-%%DATADIR%%/levels/ring.trk
-%%DATADIR%%/levels/straight.trk
-%%DATADIR%%/levels/suzuka.trk
-%%DATADIR%%/levels/triangle.trk
-%%DATADIR%%/levels/twister.trk
-%%DATADIR%%/meshes.conf
-%%DATADIR%%/models/cube.obj
-%%DATADIR%%/sounds/bell.ogg
-%%DATADIR%%/sounds/carEngine.ogg
-%%DATADIR%%/sounds/carHit.ogg
-%%DATADIR%%/sounds/carHit2.ogg
-%%DATADIR%%/sounds/carHit3.ogg
-%%DATADIR%%/sounds/cheering.ogg
-%%DATADIR%%/sounds/menuBoom.ogg
-%%DATADIR%%/sounds/menuClick.ogg
-%%DATADIR%%/sounds/pit.ogg
-%%DATADIR%%/sounds/skid.ogg
-%%DATADIR%%/surfaces.conf
-%%DATADIR%%/translations/dustrac-editor_cs.qm
-%%DATADIR%%/translations/dustrac-editor_fi.qm
-%%DATADIR%%/translations/dustrac-editor_fr.qm
-%%DATADIR%%/translations/dustrac-editor_it.qm
-%%DATADIR%%/translations/dustrac-game_cs.qm
-%%DATADIR%%/translations/dustrac-game_fi.qm
-%%DATADIR%%/translations/dustrac-game_fr.qm
-%%DATADIR%%/translations/dustrac-game_it.qm
 share/icons/hicolor/64x64/apps/dustrac-editor.png
 share/icons/hicolor/64x64/apps/dustrac-game.png
+share/metainfo/dustrac.appdata.xml
 share/pixmaps/dustrac-editor.png
 share/pixmaps/dustrac-game.png



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