head 1.4; access; symbols pkgsrc-2026Q1:1.4.0.20 pkgsrc-2026Q1-base:1.4 pkgsrc-2025Q4:1.4.0.18 pkgsrc-2025Q4-base:1.4 pkgsrc-2025Q3:1.4.0.16 pkgsrc-2025Q3-base:1.4 pkgsrc-2025Q2:1.4.0.14 pkgsrc-2025Q2-base:1.4 pkgsrc-2025Q1:1.4.0.12 pkgsrc-2025Q1-base:1.4 pkgsrc-2024Q4:1.4.0.10 pkgsrc-2024Q4-base:1.4 pkgsrc-2024Q3:1.4.0.8 pkgsrc-2024Q3-base:1.4 pkgsrc-2024Q2:1.4.0.6 pkgsrc-2024Q2-base:1.4 pkgsrc-2024Q1:1.4.0.4 pkgsrc-2024Q1-base:1.4 pkgsrc-2023Q4:1.4.0.2 pkgsrc-2023Q4-base:1.4 pkgsrc-2023Q2:1.2.0.2 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.1.0.22 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.20 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.18 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.16 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.14 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.12 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.10 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.8 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.6 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.4 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.2 pkgsrc-2020Q3-base:1.1; locks; strict; comment @// @; 1.4 date 2023.11.15.16.30.13; author nia; state Exp; branches; next 1.3; commitid DudaHjJ6NWQl1JME; 1.3 date 2023.09.10.09.21.39; author yhardy; state dead; branches; next 1.2; commitid oKZDIMBN50skKcEE; 1.2 date 2023.04.27.18.50.59; author yhardy; state Exp; branches; next 1.1; commitid CcSt0Yg2rQm8iMmE; 1.1 date 2020.08.31.12.46.21; author nia; state Exp; branches; next ; commitid 4YRZAyd82fKeqdmC; desc @@ 1.4 log @gemrb: Restore patches. iconv problems were wrongly "fixed" upstream. @ text @$NetBSD$ Deal with old NetBSD/SunOS style iconv. --- gemrb/plugins/TTFImporter/TTFFont.cpp.orig 2023-07-08 08:54:22.000000000 +0000 +++ gemrb/plugins/TTFImporter/TTFFont.cpp @@@@ -29,6 +29,15 @@@@ #include #include +#if defined(__NetBSD__) +#include +#if __NetBSD_Prereq__(9,99,17) +#define NETBSD_POSIX_ICONV 1 +#else +#define NETBSD_POSIX_ICONV 0 +#endif /* __NetBSD_Prereq__(9,99,17) */ +#endif /* defined(__NetBSD__) */ + namespace GemRB { const Glyph& TTFFont::AliasBlank(ieWord chr) const @@@@ -40,7 +49,11 @@@@ const Glyph& TTFFont::AliasBlank(ieWord const Glyph& TTFFont::GetGlyph(ieWord chr) const { if (!core->TLKEncoding.multibyte) { +#if (defined(__NetBSD__) && !NETBSD_POSIX_ICONV) || defined(__sun) + const char* oldchar = (const char*)&chr; +#else char* oldchar = (char*)&chr; +#endif ieWord unicodeChr = 0; char* newchar = (char*)&unicodeChr; size_t in = (core->TLKEncoding.widechar) ? 2 : 1; @ 1.3 log @games/gemrb: update to gemrb-0.9.2 pkgsrc changes: the iconv patches have been integrated and improved upstream by Jaka Kranjc Release announcement: GemRB 0.9.2 released! (Dragon’s horde edition) The GemRB team is proud to announce a new major release. It brings in many improvements for Planescape: Torment, configurable AI speed, improved performance and others. Notably GemRB now also supports PVR(Z) based formats, making content creation easier, most new opcodes/actions/triggers and together with some infrastructural changes, BG2EE games can now be loaded (still not playable though!). Sources and packages are available. You can get them from here. Full changelog digest: GemRB v0.9.2 (2023-07-08): New features: - PVR(Z), BAM2, MOS2 and TIS2 support - support for higher AI speeds ("FPS") and VSync - support for EE-style saves, TLK locations and many more tables - PST's floating text and personalized pc comments - optional smooth fog of war on SDL >= 2.0.18 - 3e-style sneak attack and crippling strike from HoW/iwdee - Anbernic device support Improved features: - PST effect durations - performance, pathfinding, formations - combat, opcodes, EE compat, hp handling, demo - bugfixes Thanks to everyone that contributed their time, including: Brad Allred, Bubb, burner1024, desecaw13, dikau, fizzet, FrElvire, Jaka Kranjc, kloptops, Konrad Klimaszewski, majcosta, MarcelHB, Mingun, Rod Batten, Rodrigo Santellan, Tomsod, Zoltan Gyokeres. Notes to packagers: * optional CapFPS, GameLanguagePath and GameMoviesPath keys have been added to the sample configs * an upgrade to C++14 standard will occur after this release @ text @d1 1 a1 1 $NetBSD: patch-gemrb_plugins_TTFImporter_TTFFont.cpp,v 1.2 2023/04/27 18:50:59 yhardy Exp $ d5 1 a5 1 --- gemrb/plugins/TTFImporter/TTFFont.cpp.orig 2022-08-29 19:10:39.000000000 +0000 d7 1 a7 1 @@@@ -28,6 +28,15 @@@@ d11 2 a12 2 +#if defined(__NetBSD__) +#include d15 1 a15 1 +#else d23 4 a26 4 @@@@ -48,7 +57,11 @@@@ const Glyph& TTFFont::GetGlyph(ieWord ch // TODO: make this work on BE systems // TODO: maybe we want to work with non-unicode fonts? iconv_t cd = iconv_open("UTF-16LE", core->TLKEncoding.encoding.c_str()); d28 1 a28 1 + size_t ret = iconv(cd, (const char **)&oldchar, &in, &newchar, &out); d30 1 a30 1 size_t ret = iconv(cd, &oldchar, &in, &newchar, &out); d32 3 a34 3 if (ret != GEM_OK) { Log(ERROR, "FONT", "iconv error: {}", errno); @ 1.2 log @gemrb: update to gemrb-0.9.1 Announcement: GemRB 0.9.1 released! (Life is strength edition) The GemRB team is proud to announce a new release. It features loads of improvements in core game systems, making Icewind Dale II almost completable, but also in the rest of the engine. Among other things this means further improved speed, better unicode support and deprecation of Python 2 support. As usual the release also comes with many smaller features, bug fixes, polishing and code cleanups. Full changelog digest: GemRB v0.9.1 (2022-08-29): New features: - iwd2 can be progressed to well into chapter 5 - faster loading and saving, faster OpenGL rendering - Use magic device skill, precise shot, iwd1 bard song choice - SDLAudio plugin now supports ambients - console history is now preserved, more text colors externalized - logging is now done via fmt (bundled headers) Improved features: - python3 support (now the only option) - unicode support (iconv not optional any more!) - spellcaster ai, effects, scripting, projectiles, weapon style customization - audio, drawing, appimage, ini spawns - bugfixes @ text @d1 1 a1 1 $NetBSD: patch-gemrb_plugins_TTFImporter_TTFFont.cpp,v 1.1 2020/08/31 12:46:21 nia Exp $ @ 1.1 log @gemrb: Update to 0.8.7 GemRB v0.8.7 (2020-08-23): New features: - new smarter pathfinder with bumping support - animal taming, iwd2 hardcoded saving throw bonuses - vcpkg and out-of-the box msvc support - non-ascii data filename support Improved features: - disk reading speedups, ease of setup - iwd chargen, pst spell timing, hardcoded overlays, iwd2 casting ai - better actor speeds & walk sounds - audio, pst ini handling, savegame compatibility, morale handling - effects, projectiles, actions, range calculations - bugfixes Notes: - switched to c++11 and cmake 3.1 as a minimum - dropped windows 9x compatibility @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- gemrb/plugins/TTFImporter/TTFFont.cpp.orig 2020-08-23 18:32:26.000000000 +0000 d7 1 a7 2 @@@@ -28,6 +28,14 @@@@ #if HAVE_ICONV d9 2 a10 1 #include d19 2 a20 1 #endif d22 2 a23 2 namespace GemRB { @@@@ -50,7 +58,11 @@@@ const Glyph& TTFFont::GetGlyph(ieWord ch d34 1 a34 1 Log(ERROR, "FONT", "iconv error: %d", errno); @