head 1.8; access; symbols pkgsrc-2026Q1:1.8.0.6 pkgsrc-2026Q1-base:1.8 pkgsrc-2025Q4:1.8.0.4 pkgsrc-2025Q4-base:1.8 pkgsrc-2025Q3:1.8.0.2 pkgsrc-2025Q3-base:1.8 pkgsrc-2025Q2:1.7.0.16 pkgsrc-2025Q2-base:1.7 pkgsrc-2025Q1:1.7.0.14 pkgsrc-2025Q1-base:1.7 pkgsrc-2024Q4:1.7.0.12 pkgsrc-2024Q4-base:1.7 pkgsrc-2024Q3:1.7.0.10 pkgsrc-2024Q3-base:1.7 pkgsrc-2024Q2:1.7.0.8 pkgsrc-2024Q2-base:1.7 pkgsrc-2024Q1:1.7.0.6 pkgsrc-2024Q1-base:1.7 pkgsrc-2023Q4:1.7.0.4 pkgsrc-2023Q4-base:1.7 pkgsrc-2023Q3:1.7.0.2 pkgsrc-2023Q3-base:1.7 pkgsrc-2022Q3:1.5.0.8 pkgsrc-2022Q3-base:1.5 pkgsrc-2022Q2:1.5.0.6 pkgsrc-2022Q2-base:1.5 pkgsrc-2022Q1:1.5.0.4 pkgsrc-2022Q1-base:1.5 pkgsrc-2021Q4:1.5.0.2 pkgsrc-2021Q4-base:1.5 pkgsrc-2021Q3:1.4.0.10 pkgsrc-2021Q3-base:1.4 pkgsrc-2021Q2:1.4.0.8 pkgsrc-2021Q2-base:1.4 pkgsrc-2021Q1:1.4.0.6 pkgsrc-2021Q1-base:1.4 pkgsrc-2020Q4:1.4.0.4 pkgsrc-2020Q4-base:1.4 pkgsrc-2020Q3:1.4.0.2 pkgsrc-2020Q3-base:1.4 pkgsrc-2020Q2:1.3.0.2 pkgsrc-2020Q2-base:1.3 pkgsrc-2020Q1:1.2.0.4 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.6 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.2 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.1.0.2 pkgsrc-2019Q2-base:1.1; locks; strict; comment @# @; 1.8 date 2025.08.22.13.27.13; author wiz; state Exp; branches; next 1.7; commitid oVWecmzSE6t7fJ7G; 1.7 date 2023.07.07.07.27.07; author nia; state Exp; branches; next 1.6; commitid ux2cCDUuxe18eQvE; 1.6 date 2022.12.15.11.31.44; author nia; state dead; branches; next 1.5; commitid WfwN5Mto4nw58E5E; 1.5 date 2021.11.28.11.34.14; author nia; state Exp; branches; next 1.4; commitid wtxVtzrOVQGxqyiD; 1.4 date 2020.08.09.14.37.22; author nia; state Exp; branches; next 1.3; commitid WexBmPV46wWQJojC; 1.3 date 2020.06.22.19.04.58; author wiz; state Exp; branches; next 1.2; commitid B8g4M0DBxpQwLfdC; 1.2 date 2019.09.25.08.48.43; author nia; state Exp; branches; next 1.1; commitid uioAZr61Re894nEB; 1.1 date 2019.06.08.22.46.03; author nia; state Exp; branches; next ; commitid yJkKlGqtUz3EcrqB; desc @@ 1.8 log @libretro-mgba: fix build with cmake 4 @ text @$NetBSD: patch-CMakeLists.txt,v 1.7 2023/07/07 07:27:07 nia Exp $ Avoid PLIST complexity on Haiku and Darwin. --- CMakeLists.txt.orig 2025-03-09 03:09:26.000000000 +0000 +++ CMakeLists.txt @@@@ -1,4 +1,4 @@@@ -cmake_minimum_required(VERSION 3.1) +cmake_minimum_required(VERSION 3.5) list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/src/platform/cmake/") if(POLICY CMP0025) @@@@ -927,7 +927,7 @@@@ if(NOT SKIP_LIBRARY) if(BUILD_SHARED) install(TARGETS ${BINARY_NAME} LIBRARY DESTINATION ${LIBDIR} COMPONENT ${BINARY_NAME}-dev NAMELINK_ONLY) endif() - if(UNIX AND NOT APPLE AND NOT HAIKU) + if(UNIX) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/res/mgba-16.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/16x16/apps RENAME io.mgba.${PROJECT_NAME}.png COMPONENT ${BINARY_NAME}) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/res/mgba-24.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/24x24/apps RENAME io.mgba.${PROJECT_NAME}.png COMPONENT ${BINARY_NAME}) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/res/mgba-32.png DESTINATION ${CMAKE_INSTALL_DATADIR}/icons/hicolor/32x32/apps RENAME io.mgba.${PROJECT_NAME}.png COMPONENT ${BINARY_NAME}) @ 1.7 log @mgba: Avoid PLIST problems on Darwin @ text @d1 1 a1 1 $NetBSD$ d5 1 a5 1 --- CMakeLists.txt.orig 2023-01-11 03:51:20.000000000 +0000 d7 7 a13 1 @@@@ -919,7 +919,7 @@@@ if(NOT SKIP_LIBRARY) @ 1.6 log @mgba: Update to 0.10.0. Split the Qt interface into a separate package. Since the Qt interface has noticable performance problems on NetBSD, this saves some significant bloat in the main package by only building the CLI interface by default. Also modify the default settings to provide a best "out of box" experience on NetBSD and SunOS, and remove the MESSAGE file indicating to change the settings. 0.10.0: (2022-10-11) Features: - Preliminary Lua scripting support - Presets for Game Boy palettes - Add Super Game Boy palettes for original Game Boy games - Tool for converting scanned pictures of e-Reader cards to raw dotcode data - Options for muting when inactive, minimized, or for different players in multiplayer - Cheat code support in homebrew ports - Acclerometer and gyro support for controllers on PC - Support for combo "Super Game Boy Color" SGB + GBC ROM hacks - Improved support for HuC-3 mapper, including RTC - Support for 64 kiB SRAM saves used in some bootlegs - Discord Rich Presence now supports time elapsed - Additional scaling shaders - Support for GameShark Advance SP (.gsv) save file importing - Support for multiple saves per game using .sa2, .sa3, etc. - Support for GBX format Game Boy ROMs - New unlicensed GB mappers: NT (newer type), Sachen (MMC1, MMC2) Emulation fixes: - ARM7: Fix unsigned multiply timing - GB: Copy logo from ROM if not running the BIOS intro (fixes mgba.io/i/2378) - GB: Fix HALT breaking M-cycle alignment (fixes mgba.io/i/250) - GB Audio: Fix channel 1/2 reseting edge cases (fixes mgba.io/i/1925) - GB Audio: Properly apply per-model audio differences - GB Audio: Revamp channel rendering - GB Audio: Fix APU re-enable timing glitch - GB I/O: Fix writing to WAVE RAM behavior (fixes mgba.io/i/1334) - GB MBC: Fix edge case with Pocket Cam register accesses (fixes mgba.io/i/2557) - GB Memory: Add cursory cartridge open bus emulation (fixes mgba.io/i/2032) - GB Serialize: Fix loading MBC1 states that affect bank 0 (fixes mgba.io/i/2402) - GB SIO: Fix bidirectional transfer starting (fixes mgba.io/i/2290) - GB Video: Draw SGB border pieces that overlap GB graphics (fixes mgba.io/i/1339) - GBA: Improve timing when not booting from BIOS - GBA: Fix expected entry point for multiboot ELFs (fixes mgba.io/i/2450) - GBA: Fix booting multiboot ROMs with no JOY entrypoint - GBA: Fix 1 MiB ROM mirroring to only mirror 4 times - GBA Audio: Adjust PSG sampling rate with SOUNDBIAS - GBA Audio: Sample FIFOs at SOUNDBIAS-set frequency - GBA BIOS: Work around IRQ handling hiccup in Mario & Luigi (fixes mgba.io/i/1059) - GBA BIOS: Initial HLE timing estimation of UnLz77 functions (fixes mgba.io/i/2141) - GBA DMA: Fix DMA source direction bits being cleared (fixes mgba.io/i/2410) - GBA I/O: Redo internal key input, enabling edge-based key IRQs - GBA I/O: Disable open bus behavior on invalid register 06A - GBA Memory: Fix misaligned 32-bit I/O loads (fixes mgba.io/i/2307) - GBA Video: Fix OpenGL rendering on M1 Macs - GBA Video: Ignore horizontally off-screen sprite timing (fixes mgba.io/i/2391) - GBA Video: Fix Hblank timing (fixes mgba.io/i/2131, mgba.io/i/2310) - GBA Video: Fix rare crash in modes 3-5 - GBA Video: Fix sprites with mid-frame palette changes in GL (fixes mgba.io/i/2476) - GBA Video: Fix OBJ tile wrapping with 2D char mapping (fixes mgba.io/i/2443) - GBA Video: Fix horizontal lines in GL when charbase is changed (fixes mgba.io/i/1631) - GBA Video: Fix sprite layer priority updating in GL Other fixes: - ARM: Disassemble Thumb mov pseudo-instruction properly - ARM: Disassemble ARM asr/lsr #32 properly - ARM: Disassemble ARM movs properly - Core: Don't attempt to restore rewind diffs past start of rewind - Core: Fix the runloop resuming after a game has crashed (fixes mgba.io/i/2451) - Core: Fix crash if library can't be opened - Debugger: Fix crash with extremely long CLI strings - Debugger: Fix multiple conditional watchpoints at the same address - FFmpeg: Fix crash when encoding audio with some containers - FFmpeg: Fix GIF recording (fixes mgba.io/i/2393) - GB: Fix temporary saves - GB: Fix replacing the ROM crashing when accessing ROM base - GB: Don't try to map a 0-byte SRAM (fixes mgba.io/i/2668) - GB, GBA: Save writeback-pending masked saves on unload (fixes mgba.io/i/2396) - mGUI: Fix FPS counter after closing menu - Qt: Fix some hangs when using the debugger console - Qt: Fix crash when clicking past last tile in viewer - Qt: Fix preloading for ROM replacing - Qt: Fix screen not displaying on Wayland (fixes mgba.io/i/2190) - Qt: Fix crash when selecting 256-color sprite in sprite view - Qt: Fix coloration of swatches on styles with distinct frame backgrounds - VFS: Failed file mapping should return NULL on POSIX Misc: - Core: Suspend runloop when a core crashes - Core: Add wallclock offset RTC type - Debugger: Save and restore CLI history - Debugger: GDB now works while the game is paused - Debugger: Add command to load external symbol file (fixes mgba.io/i/2480) - FFmpeg: Support dynamic audio sample rate - GB: Support CGB0 boot ROM loading - GB Audio: Increase sample rate - GB MBC: Filter out MBC errors when cartridge is yanked (fixes mgba.io/i/2488) - GB MBC: Partially implement TAMA5 RTC - GB Video: Add default SGB border - GBA: Automatically skip BIOS if ROM has invalid logo - GBA: Refine multiboot detection (fixes mgba.io/i/2192) - GBA Cheats: Implement "never" type codes (closes mgba.io/i/915) - GBA DMA: Enhanced logging (closes mgba.io/i/2454) - GBA Memory: Implement adjustable EWRAM waitstates (closes mgba.io/i/1276) - GBA Savedata: Store RTC data in savegames (closes mgba.io/i/240) - GBA Video: Implement layer placement for OpenGL renderer (fixes mgba.io/i/1962) - GBA Video: Fix highlighting for sprites with mid-frame palette changes - mGUI: Add margin to right-aligned menu text (fixes mgba.io/i/871) - mGUI: Autosave less frequently when fast-forwarding - Qt: Rearrange menus some - Qt: Clean up cheats dialog - Qt: Only set default controller bindings if loading fails (fixes mgba.io/i/799) - Qt: Save converter now supports importing GameShark Advance saves - Qt: Save positions of multiplayer windows (closes mgba.io/i/2128) - Qt: Add optional frame counter to OSD (closes mgba.io/i/1728) - Qt: Add optional emulation-related information on reset (closes mgba.io/i/1780) - Qt: Add QOpenGLWidget cross-thread codepath for macOS (fixes mgba.io/i/1754) - Qt: Enable -b for Boot BIOS menu option (fixes mgba.io/i/2074) - Qt: Add tile range selection to tile viewer (closes mgba.io/i/2455) - Qt: Show warning if XQ audio is toggled while loaded (fixes mgba.io/i/2295) - Qt: Add e-Card passing to the command line (closes mgba.io/i/2474) - Qt: Boot both a multiboot image and ROM with CLI args (closes mgba.io/i/1941) - Qt: Improve cheat parsing (fixes mgba.io/i/2297) - Qt: Change lossless setting to use WavPack audio - Qt: Use FFmpeg to convert additional camera formats, if available - Qt: Resume crashed game when loading a save state - Qt: Include cheats in bug report - SDL: Support exposing an axis directly as the gyro value (closes mgba.io/i/2531) - VFS: Early return NULL if attempting to map 0 bytes from a file @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.5 2021/11/28 11:34:14 nia Exp $ d3 1 a3 1 Fix locale detection. d5 1 a5 3 https://github.com/mgba-emu/mgba/pull/2366 --- CMakeLists.txt.orig 2020-08-04 04:46:14.000000000 +0000 d7 9 a15 21 @@@@ -364,7 +364,9 @@@@ if(HAVE_LOCALTIME_R) list(APPEND FUNCTION_DEFINES HAVE_LOCALTIME_R) endif() -if(HAVE_NEWLOCALE AND HAVE_FREELOCALE AND HAVE_USELOCALE OR APPLE) +check_include_files("locale.h" HAVE_LOCALE) + +if(HAVE_LOCALE OR APPLE) list(APPEND FUNCTION_DEFINES HAVE_LOCALE) if (HAVE_SNPRINTF_L) list(APPEND FUNCTION_DEFINES HAVE_SNPRINTF_L) @@@@ -1033,9 +1035,6 @@@@ endif() file(GLOB READMES ${CMAKE_CURRENT_SOURCE_DIR}/README*.md) -find_program(UNIX2DOS NAMES unix2dos) -find_program(MARKDOWN NAMES markdown kramdown pandoc) - if(UNIX OR NOT UNIX2DOS) if(UNIX OR NOT MARKDOWN) install(FILES ${READMES} DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT ${BINARY_NAME}) @ 1.5 log @mgba: update to 0.9.2 0.9.2: (2021-07-10) Emulation fixes: - GB Video: Clear VRAM on reset (fixes mgba.io/i/2152) - GBA SIO: Add missing NORMAL8 implementation bits (fixes mgba.io/i/2172) - GBA SIO: Fix missing interrupt on an unattached NORMAL transfer - GBA Memory: Fix prefetch mask when swapping modes within a region - GBA Serialize: Fix loading audio enable bit late (fixes mgba.io/i/2230) - GBA Video: Revert scanline latching changes (fixes mgba.io/i/2153, mgba.io/i/2149) Other fixes: - ARM Debugger: Fix disassembly alignment (fixes mgba.io/i/2204) - Core: Fix memory leak in opening games from the library - Core: Fix memory searches for relative values (fixes mgba.io/i/2135) - Core: Fix portable mode on macOS - GB Audio: Fix audio channel 4 being slow to deserialize - GB Core: Fix GBC colors setting breaking default model overrides (fixes mgba.io/i/2161) - mGUI: Cache save state screenshot validity in state menu (fixes mgba.io/i/2005) - Qt: Fix eventual deadlock when using sync to video - Qt: Fix applying savetype-only overrides - Qt: Fix crash in sprite view for partially out-of-bounds sprites (fixes mgba.io/i/2165) - Qt: Fix having to press controller buttons twice for menu items (fixes mgba.io/i/2143) - Qt: Redo sensor binding to be less fragile - Qt: Reuse timer when rescheduling missing frames (fixes mgba.io/i/2236) - Qt: Fix bounded fast forward with enhancement OpenGL renderer - Util: Fix loading UPS patches that affect the last byte of the file Misc: - Util: Improve speed of UPS patch loading @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.4 2020/08/09 14:37:22 nia Exp $ @ 1.4 log @mgba: Update to 0.8.3 0.8.3: (2020-08-03) Emulation fixes: - ARM: Fix LDM^ writeback to user-mode register - ARM: Fix LDM^ {pc} differences (fixes mgba.io/i/1698) - ARM: Fix edge case with Thumb SBC flags (fixes mgba.io/i/1818) - GB MBC: Fix MBC1 RAM enable bit selection - GB MBC: Fix MBC2 bit selection - GB Memory: Fix OAM DMA from top 8 kB - GB Video: Always initialize palette - GBA Savedata: Fix potential corruption when loading a 1Mbit flash save - GBA Video: Fix invalid read in mode 4 mosaic - GBA Video: Fix color of disabled screen - SM83: Fix flags on little endian PowerPC Other fixes: - All: Correct format strings for some numbers on Windows (fixes mgba.io/i/1794) - All: Correct more format strings on Windows (fixes mgba.io/i/1817) - ARM: Fix decoder detection of branches with ALU and LDR instrctions - CMake: Fix build with libzip 1.7 - CMake: Add missing dllexports.h file to dev installation - GB Core: Fix extracting SRAM when none is present - GBA: Fix leak if attempting to load BIOS multiple times - GBA Memory: Fix instability on Wii when using AGBPrint - GBA Savedata: Fix extracting save when not yet configured in-game - Qt: Fix file handle leak on opening an invalid ROM - Qt: Fix Italian RTC translation (fixes mgba.io/i/1798) - Qt: Add missing option for Wisdom Tree in overrides list - Qt: Fix stability regression on AMD drivers (fixes mgba.io/i/1791) - Util: Fix crash if PNG header fails to write Misc: - FFmpeg: Use range coder for FFV1 to reduce output size - Qt: Add per-page scrolling to memory view (fixes mgba.io/i/1795) - Qt: Add setting to display ROM filename in title (closes mgba.io/i/1784) @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.3 2020/06/22 19:04:58 wiz Exp $ d5 2 @ 1.3 log @mgba: fix libzip detection Remove non-existent patch from distinfo. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.2 2019/09/25 08:48:43 nia Exp $ d5 1 a5 1 --- CMakeLists.txt.orig 2020-06-15 02:50:34.000000000 +0000 d7 1 a7 1 @@@@ -360,7 +360,9 @@@@ if(HAVE_LOCALTIME_R) d18 1 a18 23 @@@@ -609,19 +611,10 @@@@ if(WANT_SQLITE3 AND NOT USE_SQLITE3) endif() if(USE_LIBZIP) - include_directories(AFTER ${LIBZIP_INCLUDE_DIRS}) - link_directories(${LIBZIP_LIBRARY_DIRS}) - list(APPEND DEPENDENCY_LIB ${LIBZIP_LIBRARIES}) list(APPEND FEATURES LIBZIP) list(APPEND VFS_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/util/vfs/vfs-zip.c) - string(REGEX MATCH "^[0-9]+" LIBZIP_VERSION_MAJOR ${libzip_VERSION}) - if (LIBZIP_VERSION_MAJOR LESS 1) - set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libzip2") - elseif(LIBZIP_VERSION_MAJOR EQUAL 1) - set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libzip4|libzip5") - else() - message(AUTHOR_WARNING Unknown version of libzip detected: ${libzip_VERSION}) - endif() + list(APPEND DEPENDENCY_LIB zip) + set(CPACK_DEBIAN_PACKAGE_DEPENDS "${CPACK_DEBIAN_PACKAGE_DEPENDS},libzip4|libzip5") elseif(USE_MINIZIP) include_directories(AFTER ${MINIZIP_INCLUDE_DIRS}) link_directories(${MINIZIP_LIBRARY_DIRS}) @@@@ -1025,9 +1018,6 @@@@ endif() @ 1.2 log @mgba: Work around bulk build problems by temporarily avoiding HTML docs. Markdown docs are still installed. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.1 2019/06/08 22:46:03 nia Exp $ d5 1 a5 1 --- CMakeLists.txt.orig 2019-09-15 23:08:33.000000000 +0000 d7 1 a7 1 @@@@ -390,7 +390,9 @@@@ if(HAVE_LOCALTIME_R) d18 23 a40 1 @@@@ -1037,9 +1039,6 @@@@ endif() @ 1.1 log @Add emulators/mgba version 0.7.2. mGBA is an emulator for running Game Boy Advance games. It aims to be faster and more accurate than many existing Game Boy Advance emulators, as well as adding features that other emulators lack. It also supports Game Boy and Game Boy Color games. @ text @d1 1 a1 1 $NetBSD: patch-CMakeLists.txt,v 1.2 2019/01/27 17:04:16 nia Exp $ d5 1 a5 1 --- CMakeLists.txt.orig 2019-02-25 01:33:16.000000000 +0000 d7 1 a7 1 @@@@ -391,7 +391,9 @@@@ if(HAVE_LOCALTIME_R) d18 10 @