In file included from /wrkdirs/usr/ports/games/vcmi/work/vcmi-1.5.7/client/renderSDL/CTrueTypeFont.cpp:22: /usr/local/include/SDL2/SDL_ttf.h:165:16: error: type alias 'TTF_Font' cannot be referenced with a struct specifier 165 | typedef struct TTF_Font TTF_Font; | ^ /wrkdirs/usr/ports/games/vcmi/work/vcmi-1.5.7/client/renderSDL/CTrueTypeFont.h:20:7: note: declared here 20 | using TTF_Font = struct _TTF_Font; | ^ 1 error generated. Using Poudriere, 14.2-RELEASE (amd64)
https://github.com/vcmi/vcmi/issues/5207 might be of interest
May likely be fixed the same way as https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283867
Created attachment 256738 [details] patch
(In reply to Dmitry Marakasov from comment #3) > patch Looks like we can simply backport upstream commit 3db1a01 via PATCHFILES, I'll test and update the port, thanks!
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b9b66f0962f6b4f1d7efdb4c5c57aeacc77804c3 commit b9b66f0962f6b4f1d7efdb4c5c57aeacc77804c3 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2025-01-28 10:22:04 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2025-01-28 10:22:04 +0000 games/vcmi: update the port to version 1.6.3 - VCMI mod now uses same filesystem as all mods, with all files located under `Content' directory - Moved all PNG images from `Data' directory to `Sprites' - Use `TTF_Font' type provided by <SDL_ttf.h> to unbreak the build against `graphics/sdl2_ttf' version 2.24.0 - Add `post-patch' target to prevent accidentally picking up Qt 6 bits if they're installed (always prefer Qt 5) PR: 283866 games/vcmi/Makefile | 6 +- games/vcmi/distinfo | 6 +- .../files/patch-client_ServerRunner.cpp (gone) | 33 -- .../vcmi/files/patch-client_ServerRunner.h (gone) | 20 - games/vcmi/files/patch-lib_CMakeLists.txt (new) | 14 + games/vcmi/pkg-plist | 558 +++++++++++---------- 6 files changed, 324 insertions(+), 313 deletions(-)