1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00

games/dustrac: update to 2.1.1

This commit is contained in:
Dmitry Marakasov 2021-04-20 21:21:33 +03:00
parent 295652858b
commit 939c10e291
5 changed files with 12 additions and 35 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= dustrac
PORTVERSION= 2.0.3
PORTVERSION= 2.1.1
CATEGORIES= games
MAINTAINER= amdmi3@FreeBSD.org
@ -9,16 +9,19 @@ LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis
RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans-Bold.ttf:x11-fonts/dejavu
USE_GITHUB= yes
GH_ACCOUNT= juzzlin
GH_PROJECT= DustRacing2D
GH_TAGNAME= ae380b8 # includes crash fix
USES= compiler:c++11-lib cmake gl openal pkgconfig qt:5
USE_GL= gl glu
USE_QT= core gui opengl xml widgets testlib \
USE_QT= core gui opengl xml widgets testlib sql \
buildtools_build linguisttools_build qmake_build
CMAKE_ARGS= -DReleaseBuild=on \
-DSystemFonts=on \
-DDATA_PATH=${DATADIR} \
-DDOC_PATH=${DOCSDIR}
LDFLAGS+= -L${LOCALBASE}/lib
@ -28,10 +31,7 @@ PORTDOCS= *
OPTIONS_DEFINE= DOCS
STRIP_FILES= bin/dustrac-game \
bin/dustrac-editor
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dustrac-*
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/dustrac-editor
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1563219146
SHA256 (juzzlin-DustRacing2D-2.0.3_GH0.tar.gz) = cbf73fc1c446d4068222c51d7fd67bd90dcce2651ba2aa2ae8aecb2dc8ee0873
SIZE (juzzlin-DustRacing2D-2.0.3_GH0.tar.gz) = 17338605
TIMESTAMP = 1619196464
SHA256 (juzzlin-DustRacing2D-2.1.1-ae380b8_GH0.tar.gz) = a955ab1027fda2ca5dce55ed2c08e5a8dd8760e87a00210e810ff131bbbe2b77
SIZE (juzzlin-DustRacing2D-2.1.1-ae380b8_GH0.tar.gz) = 17393096

View File

@ -1,6 +1,6 @@
--- CMakeLists.txt.orig 2019-07-09 21:02:22 UTC
--- CMakeLists.txt.orig 2021-02-21 12:07:18 UTC
+++ CMakeLists.txt
@@ -90,16 +90,6 @@ elseif(WIN32)
@@ -108,15 +108,6 @@ elseif(WIN32)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR MINGW OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
@ -13,16 +13,6 @@
- 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=...

View File

@ -1,11 +0,0 @@
--- ./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

View File

@ -5,5 +5,3 @@ share/applications/dustrac-game.desktop
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