From: Thomas Frohwein Subject: update for games/openomf To: Brian Callahan , ports@openbsd.org Cc: namn@messagemode2.com Date: Wed, 17 Sep 2025 16:42:20 -0400 Hi, Looks like we fell behind for a while on this port. I prepared the attached diff that updates it to the release 0.8.4. Among the changes[1] are rollback netcode since 0.8.0 which is the state of the art for fighting games played over internet, as far as I know about the topic. There is also experimental netplay spectator mode since 0.8.2. Portswise, I switched this to github via DIST_TUPLE for ease of updates rather than rolling tarballs to self-host. Of note, the SHA256 hash in the README doesn't match the freeware file (anymore). I haven't touched this, but maybe pointing to the upstream wiki[2] to follow their instructions would be more durable? ok to update? [1] https://github.com/omf2097/openomf/releases [2] https://www.omf2097.com/wiki/doku.php?id=download Index: Makefile =================================================================== RCS file: /cvs/ports/games/openomf/Makefile,v diff -u -p -r1.8 Makefile --- Makefile 28 Jan 2025 11:22:02 -0000 1.8 +++ Makefile 16 Sep 2025 19:15:41 -0000 @@ -1,6 +1,9 @@ COMMENT = free remake of One Must Fall 2097 game engine -DISTNAME = openomf-0.6.5.2 -REVISION = 0 + +V = 0.8.4 +PKGNAME = openomf-${V} +DIST_TUPLE += github omf2097 openomf ${V} . + CATEGORIES = games x11 HOMEPAGE = https://www.openomf.org/ @@ -9,10 +12,8 @@ MAINTAINER = Brian Callahan selected); - -- } while(component_is_disabled(c)); -+ } while(component_is_disabled(c) && c->supports_disable); - // Play menu sound - sound_play(19, 0.5f, 0.0f, 2.0f); - component_select(c, 1); Index: patches/patch-src_resources_pathmanager_c =================================================================== RCS file: /cvs/ports/games/openomf/patches/patch-src_resources_pathmanager_c,v diff -u -p -r1.2 patch-src_resources_pathmanager_c --- patches/patch-src_resources_pathmanager_c 11 Mar 2022 19:04:46 -0000 1.2 +++ patches/patch-src_resources_pathmanager_c 16 Sep 2025 19:15:41 -0000 @@ -3,21 +3,19 @@ Reconfigure game asset search paths. Index: src/resources/pathmanager.c --- src/resources/pathmanager.c.orig +++ src/resources/pathmanager.c -@@ -91,7 +91,7 @@ int pm_init() { +@@ -126,12 +126,12 @@ int pm_init(void) { + local_path_build(RESOURCE_PATH, bin_base_dir, "resources\\"); + local_path_build(SHADER_PATH, bin_base_dir, "shaders\\"); + m_ok = 1; +- } else if(strcmp(SDL_GetPlatform(), "Linux") == 0) { ++ } else if(strcmp(SDL_GetPlatform(), "Linux") == 0 || strcmp(SDL_GetPlatform(), "OpenBSD") == 0) { // on linux, the resources will be in ../share/games/openomf, relative to the binary // so if openomf is installed to /usr/local/bin, // the resources will be in /usr/local/share/games/openomf - local_path_build(RESOURCE_PATH, bin_base_dir, "../share/games/openomf/"); +- local_path_build(SHADER_PATH, bin_base_dir, "../share/games/openomf/shaders/"); + local_path_build(RESOURCE_PATH, bin_base_dir, "../share/openomf/"); - local_path_build(PLUGIN_PATH, bin_base_dir, "../lib/openomf/"); ++ local_path_build(SHADER_PATH, bin_base_dir, "../share/openomf/shaders/"); m_ok = 1; - } else if(!strcasecmp(SDL_GetPlatform(), "Mac OS X")) { -@@ -112,7 +112,7 @@ int pm_init() { - local_path_build(RESOURCE_PATH, "resources\\", ""); - local_path_build(PLUGIN_PATH, "plugins\\", ""); - } else { -- local_path_build(RESOURCE_PATH, "resources/", ""); -+ local_path_build(RESOURCE_PATH, "", ""); - local_path_build(PLUGIN_PATH, "plugins/", ""); - } - } + } else if(strcmp(SDL_GetPlatform(), "Mac OS X") == 0) { + // on OSX, GetBasePath returns the 'Resources' directory Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/games/openomf/pkg/PLIST,v diff -u -p -r1.4 PLIST --- pkg/PLIST 11 Mar 2022 19:04:46 -0000 1.4 +++ pkg/PLIST 16 Sep 2025 19:15:41 -0000 @@ -1,5 +1,19 @@ @bin bin/openomf share/doc/pkg-readmes/${PKGSTEM} share/openomf/ +share/openomf/DANISH.LNG +share/openomf/DANISH.LNG2 +share/openomf/ENGLISH.DAT2 +share/openomf/GERMAN.DAT2 +share/openomf/LICENSE +share/openomf/LICENSE.argtable3 +share/openomf/LICENSE.gamecontrollerdb +share/openomf/README.md +share/openomf/gamecontrollerdb.txt share/openomf/openomf.bk -share/openomf/openomf_icon.png +share/openomf/openomf.png +share/openomf/shaders/ +share/openomf/shaders/palette.frag +share/openomf/shaders/palette.vert +share/openomf/shaders/rgba.frag +share/openomf/shaders/rgba.vert