git: dac5853921db - main - games/corsix-th: Update to 0.70.0

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Mon, 13 Jul 2026 18:51:24 UTC
The branch main has been updated by madpilot:

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

commit dac5853921db3ee2221c2a05106bf824e4857f80
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2026-07-13 18:49:34 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2026-07-13 18:49:34 +0000

    games/corsix-th: Update to 0.70.0
---
 games/corsix-th/Makefile                             | 14 ++++++++++----
 games/corsix-th/distinfo                             |  6 +++---
 .../files/patch-CorsixTH_Lua_config__finder.lua      | 20 ++++++++++----------
 games/corsix-th/pkg-plist                            |  6 ++++++
 4 files changed, 29 insertions(+), 17 deletions(-)

diff --git a/games/corsix-th/Makefile b/games/corsix-th/Makefile
index 497afa27e8eb..dbdabc77b21b 100644
--- a/games/corsix-th/Makefile
+++ b/games/corsix-th/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	corsixth
 DISTVERSIONPREFIX=	v
-DISTVERSION=	0.69.2
+DISTVERSION=	0.70.0
 CATEGORIES=	games
 
 MAINTAINER=	madpilot@FreeBSD.org
@@ -9,12 +9,13 @@ WWW=		https://github.com/CorsixTH/CorsixTH
 
 LICENSE=	MIT
 
-LIB_DEPENDS=	libfreetype.so:print/freetype2
+LIB_DEPENDS=	libfreetype.so:print/freetype2 \
+		libpng16.so:graphics/png
 RUN_DEPENDS=	${LUA_REFMODLIBDIR}/lfs.so:devel/luafilesystem@${LUA_FLAVOR} \
 		${LUA_REFMODLIBDIR}/lpeg.so:devel/lua-lpeg@${LUA_FLAVOR}
 
 USES=		cmake:insource compiler:c++11-lib desktop-file-utils dos2unix \
-		iconv lua pkgconfig sdl
+		iconv localbase:ldflags lua pkgconfig sdl
 DOS2UNIX_FILES=	CMake/FindFFmpeg.cmake \
 		CorsixTH/CMakeLists.txt \
 		CorsixTH/Src/iso_fs.cpp
@@ -27,13 +28,18 @@ CMAKE_ARGS=	-DWITH_LUAJIT=OFF \
 CFLAGS+=	-I${ICONV_PREFIX}/include
 DATADIR=	${PREFIX}/share/corsix-th
 
-OPTIONS_DEFINE=	MOVIES TOOLS
+OPTIONS_DEFINE=	MIDI MOVIES TOOLS
 OPTIONS_DEFAULT=MOVIES TOOLS
 OPTIONS_SUB=	yes
 
+MIDI_DESC=	Support MIDI devices
 MOVIES_DESC=	Play in-game movies
 TOOLS_DESC=	Tools for decoding RNC files
 
+MIDI_LIB_DEPENDS=	librtmidi.so:audio/rtmidi
+MIDI_CMAKE_ON=		-DWITH_MIDI_DEVICE=ON
+MIDI_CMAKE_OFF=		-DWITH_MIDI_DEVICE=OFF
+
 MOVIES_LIB_DEPENDS=	libswresample.so:multimedia/ffmpeg
 MOVIES_CMAKE_ON=	-DWITH_MOVIES=ON
 MOVIES_CMAKE_OFF=	-DWITH_MOVIES=OFF
diff --git a/games/corsix-th/distinfo b/games/corsix-th/distinfo
index 8c44d2d9bb1f..00d484b9dc68 100644
--- a/games/corsix-th/distinfo
+++ b/games/corsix-th/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1767858946
-SHA256 (CorsixTH-CorsixTH-v0.69.2_GH0.tar.gz) = cbad15f9a16edd4c068ce14fb17f39cdb811dab0135fca80fafffa9a45732aec
-SIZE (CorsixTH-CorsixTH-v0.69.2_GH0.tar.gz) = 4323503
+TIMESTAMP = 1783613900
+SHA256 (CorsixTH-CorsixTH-v0.70.0_GH0.tar.gz) = e8f9803f6f64d23f057506202fbf275fe136c3245bab4bc19ff4c63691459cb7
+SIZE (CorsixTH-CorsixTH-v0.70.0_GH0.tar.gz) = 4414049
diff --git a/games/corsix-th/files/patch-CorsixTH_Lua_config__finder.lua b/games/corsix-th/files/patch-CorsixTH_Lua_config__finder.lua
index e56c9d3883d6..85c27e2141d4 100644
--- a/games/corsix-th/files/patch-CorsixTH_Lua_config__finder.lua
+++ b/games/corsix-th/files/patch-CorsixTH_Lua_config__finder.lua
@@ -1,11 +1,11 @@
---- CorsixTH/Lua/config_finder.lua.orig	2023-06-25 00:50:42 UTC
+--- CorsixTH/Lua/config_finder.lua.orig	2026-06-01 00:29:47 UTC
 +++ CorsixTH/Lua/config_finder.lua
-@@ -140,7 +140,7 @@ local config_defaults = {
-   shift_scroll_speed = 4,
-   new_graphics_folder = nil,
-   use_new_graphics = false,
--  check_for_updates = true,
-+  check_for_updates = false,
-   room_information_dialogs = true,
-   allow_blocking_off_areas = false,
-   direct_zoom = nil,
+@@ -172,7 +172,7 @@ local function new_config_defaults()
+     shift_scroll_speed = 4,
+     new_graphics_folder = nil,
+     use_new_graphics = false,
+-    check_for_updates = true,
++    check_for_updates = false,
+     room_information_dialogs = true,
+     blocking_off_areas = 2,
+     direct_zoom = nil,
diff --git a/games/corsix-th/pkg-plist b/games/corsix-th/pkg-plist
index c5770ffd7bc4..cc08642d4c31 100644
--- a/games/corsix-th/pkg-plist
+++ b/games/corsix-th/pkg-plist
@@ -9,6 +9,7 @@ share/metainfo/com.corsixth.corsixth.metainfo.xml
 %%DATADIR%%/Bitmap/bootstrap_font.dat
 %%DATADIR%%/Bitmap/bootstrap_font.pal
 %%DATADIR%%/Bitmap/bootstrap_font.tab
+%%DATADIR%%/Bitmap/lose.pl8
 %%DATADIR%%/Bitmap/mainmenu1080.dat
 %%DATADIR%%/Bitmap/mainmenu1080.pal
 %%DATADIR%%/Bitmap/mainmenu480.dat
@@ -18,6 +19,7 @@ share/metainfo/com.corsixth.corsixth.metainfo.xml
 %%DATADIR%%/Bitmap/tree_ctrl.dat
 %%DATADIR%%/Bitmap/tree_ctrl.pal
 %%DATADIR%%/Bitmap/tree_ctrl.tab
+%%DATADIR%%/Bitmap/winlevel.pl8
 %%DATADIR%%/Campaigns/ChrizmanTV.campaign
 %%DATADIR%%/Campaigns/Coffalot.map
 %%DATADIR%%/Campaigns/Dethsdaw.map
@@ -110,6 +112,7 @@ share/metainfo/com.corsixth.corsixth.metainfo.xml
 %%DATADIR%%/Lua/dialogs/place_staff.lua
 %%DATADIR%%/Lua/dialogs/queue_dialog.lua
 %%DATADIR%%/Lua/dialogs/resizable.lua
+%%DATADIR%%/Lua/dialogs/resizables/adviser_history.lua
 %%DATADIR%%/Lua/dialogs/resizables/calls_dispatcher.lua
 %%DATADIR%%/Lua/dialogs/resizables/cheats_dialog.lua
 %%DATADIR%%/Lua/dialogs/resizables/customise.lua
@@ -117,6 +120,7 @@ share/metainfo/com.corsixth.corsixth.metainfo.xml
 %%DATADIR%%/Lua/dialogs/resizables/dropdown.lua
 %%DATADIR%%/Lua/dialogs/resizables/file_browser.lua
 %%DATADIR%%/Lua/dialogs/resizables/file_browsers/choose_font.lua
+%%DATADIR%%/Lua/dialogs/resizables/file_browsers/choose_soundfont.lua
 %%DATADIR%%/Lua/dialogs/resizables/file_browsers/load_game.lua
 %%DATADIR%%/Lua/dialogs/resizables/file_browsers/load_map.lua
 %%DATADIR%%/Lua/dialogs/resizables/file_browsers/save_game.lua
@@ -133,10 +137,12 @@ share/metainfo/com.corsixth.corsixth.metainfo.xml
 %%DATADIR%%/Lua/dialogs/resizables/menu_list_dialogs/make_debug_patient.lua
 %%DATADIR%%/Lua/dialogs/resizables/new_game.lua
 %%DATADIR%%/Lua/dialogs/resizables/options.lua
+%%DATADIR%%/Lua/dialogs/resizables/sound_setting.lua
 %%DATADIR%%/Lua/dialogs/resizables/tip_of_the_day.lua
 %%DATADIR%%/Lua/dialogs/resizables/update.lua
 %%DATADIR%%/Lua/dialogs/staff_dialog.lua
 %%DATADIR%%/Lua/dialogs/staff_rise.lua
+%%DATADIR%%/Lua/dialogs/subtitles.lua
 %%DATADIR%%/Lua/dialogs/tree_ctrl.lua
 %%DATADIR%%/Lua/dialogs/watch.lua
 %%DATADIR%%/Lua/diseases/alien_dna.lua