git: e46a5d6bc08d - main - games/maxr: update 0.2.15 → 0.2.16

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 17 Apr 2024 01:03:24 UTC
The branch main has been updated by amdmi3:

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

commit e46a5d6bc08d56bfdd5fedabecdf3d03b81c4d4c
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2024-04-15 15:41:21 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2024-04-17 01:02:45 +0000

    games/maxr: update 0.2.15 → 0.2.16
---
 games/maxr/Makefile                   |  9 +++------
 games/maxr/distinfo                   |  6 +++---
 games/maxr/files/patch-CMakeLists.txt | 28 ++++++++++++----------------
 3 files changed, 18 insertions(+), 25 deletions(-)

diff --git a/games/maxr/Makefile b/games/maxr/Makefile
index 90cb7a9921e2..b0e25fc3c85d 100644
--- a/games/maxr/Makefile
+++ b/games/maxr/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	maxr
 DISTVERSIONPREFIX=	release-
-DISTVERSION=	0.2.15
+DISTVERSION=	0.2.16
 CATEGORIES=	games
 
 MAINTAINER=	amdmi3@FreeBSD.org
@@ -11,8 +11,7 @@ WWW=		https://www.maxr.org/ \
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/data/COPYING
 
-BUILD_DEPENDS=	${LOCALBASE}/include/nlohmann/json.hpp:devel/nlohmann-json \
-		${LOCALBASE}/include/doctest/doctest.h:devel/doctest
+BUILD_DEPENDS=	${LOCALBASE}/include/nlohmann/json.hpp:devel/nlohmann-json
 BUILD_DEPENDS+=	${LOCALBASE}/lib/libvorbis.so:audio/libvorbis  # used to build a binary which is not installed
 
 USES=		cmake compiler:c++17-lang sdl
@@ -20,6 +19,7 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	maxr-dot-org
 GH_TUPLE=	oo13:spiritless_po:5d729be:spiritless_po/submodules/spiritless_po
 USE_SDL=	sdl2 mixer2 net2
+CMAKE_OFF=	BUILD_TESTING
 
 PLIST_FILES=	bin/${PORTNAME}
 PORTDATA=	*
@@ -31,7 +31,4 @@ DESKTOP_ENTRIES="M.A.X.R." \
 		"Game;StrategyGame;" \
 		false
 
-post-patch:
-	@${REINPLACE_CMD} -e '/include/ s|doctest.h|doctest/&|' ${WRKSRC}/tests/*.cpp
-
 .include <bsd.port.mk>
diff --git a/games/maxr/distinfo b/games/maxr/distinfo
index 1938bad59307..a9b276c27917 100644
--- a/games/maxr/distinfo
+++ b/games/maxr/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1712336240
-SHA256 (maxr-dot-org-maxr-release-0.2.15_GH0.tar.gz) = 2ef00bf84461c43b4e87e2c42dba18e8126813a19c96103241e6ce9d1223b987
-SIZE (maxr-dot-org-maxr-release-0.2.15_GH0.tar.gz) = 18548869
+TIMESTAMP = 1713194338
+SHA256 (maxr-dot-org-maxr-release-0.2.16_GH0.tar.gz) = 3a1cc3f7d0d2958374c3484b6a031be4528ec89883e950fe64a48bfa3a5f4223
+SIZE (maxr-dot-org-maxr-release-0.2.16_GH0.tar.gz) = 18548453
 SHA256 (oo13-spiritless_po-5d729be_GH0.tar.gz) = 8ebb2f6c38a9ef4b76f088a90519928fb1ad9b7abb5dc878a590018a16fae3a0
 SIZE (oo13-spiritless_po-5d729be_GH0.tar.gz) = 68073
diff --git a/games/maxr/files/patch-CMakeLists.txt b/games/maxr/files/patch-CMakeLists.txt
index 27acfa07c12c..6731fc7b422a 100644
--- a/games/maxr/files/patch-CMakeLists.txt
+++ b/games/maxr/files/patch-CMakeLists.txt
@@ -1,4 +1,4 @@
---- CMakeLists.txt.orig	2024-03-19 16:53:32 UTC
+--- CMakeLists.txt.orig	2024-04-12 08:07:57 UTC
 +++ CMakeLists.txt
 @@ -22,7 +22,6 @@ if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
  
@@ -8,32 +8,28 @@
  elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /bigobj")
    set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /ZI /bigobj")
-@@ -47,16 +46,20 @@ endif()
+@@ -47,8 +46,8 @@ endif()
  # ============================================
  
  # nlohmann is a library header for json
 -add_library(nlohmann INTERFACE IMPORTED)
 -target_include_directories(nlohmann SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/submodules/nlohmann/single_include")
-+#add_library(nlohmann INTERFACE IMPORTED)
-+#target_include_directories(nlohmann SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/submodules/nlohmann/single_include")
 +find_package(nlohmann_json REQUIRED)
 +add_library(nlohmann ALIAS nlohmann_json::nlohmann_json)
  
  # spiritless_po is a library header for gettext po translation
  add_library(spiritless_po INTERFACE IMPORTED)
- target_include_directories(spiritless_po SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/submodules/spiritless_po/include")
- 
+@@ -57,7 +56,8 @@ if(BUILD_TESTING)
  # doctest is a library header for test framework
--add_library(doctest INTERFACE IMPORTED)
--target_include_directories(doctest SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/submodules/doctest/doctest")
-+#add_library(doctest INTERFACE IMPORTED)
-+#target_include_directories(doctest SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/submodules/doctest/doctest")
-+find_package(doctest REQUIRED)
-+add_library(doctest ALIAS doctest::doctest)
- 
- # SDL_flic
- add_library(SDL_flic src/3rd/SDL_flic/SDL_flic.c src/3rd/SDL_flic/SDL_flic.h)
-@@ -83,17 +86,6 @@ if(CRASH_RPT_INCLUDE_DIR)
+ include(CTest)
+ if(BUILD_TESTING)
+-  add_library(doctest INTERFACE IMPORTED)
++  #find_package(doctest REQUIRED)
++  #add_library(doctest ALIAS doctest::doctest)
+   target_include_directories(doctest SYSTEM INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/submodules/doctest/doctest")
+   set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/submodules/doctest/scripts/cmake")
+   include(doctest)
+@@ -88,17 +88,6 @@ if(CRASH_RPT_INCLUDE_DIR)
    target_compile_definitions(maxr_lib PUBLIC USE_CRASH_RPT)
    target_include_directories(maxr_lib PUBLIC ${CRASH_RPT_INCLUDE_DIR})
    target_link_libraries(maxr_lib PUBLIC ${CRASH_RPT_LIB})