Sun May 2 08:40:00 2021 UTC ()
mgba: update to 0.9.1

0.9.1: (2021-04-18)
Emulation fixes:
 - ARM: Fix LDM^ with empty rlist (fixes mgba.io/i/2127)
 - Core: Fix first event scheduling after loading savestate
 - GB Serialize: Fix switching speed modes when loading a state (fixes mgba.io/i/2097)
 - GB: Fix skipping BIOS
 - GBA Memory: Fix loading Thumb savestates when in ARM mode
 - GBA Video: Fix window start on modes 3-5 with mosaic (fixes mgba.io/i/1690)
 - GBA Video: Fix mode 3-5 overflow with mosaic (fixes mgba.io/i/1691)
Other fixes:
 - GBA: Fix non-USA 1.0 FireRed misdetecting as a ROM hack (fixes mgba.io/i/2100)
 - GBA: Fix crash when ROM loading fails
 - GBA e-Reader: Fix bitmap short strip scanning
 - GBA Video: Fix mode 5 frame 1 caching (fixes mgba.io/i/2075)
 - GBA Video: Don't attempt to copy invalid registers when switching renderer
 - Qt: Fix crash when switching from high-resolution OpenGL renderer to software
 - Qt: Fix OpenGL renderer lagging behind when fast-forwarding (fixes mgba.io/i/2094)
 - Qt: Fix smudged window icon on Windows
 - Qt: Fix saving settings enabling camera when camera name changes (fixes mgba.io/i/2125)
 - Qt: Fix frames getting backlogged (fixes mgba.io/i/2122)
 - Qt: Restore maximized state when starting (fixes mgba.io/i/487)
Misc:
 - Core: Truncate preloading ROMs that slightly exceed max size (fixes mgba.io/i/2093)
 - GBA: Default-enable VBA bug compat for Ruby and Emerald ROM hacks
 - GBA Memory: Log GPIO writes on non-GPIO carts as Pak Hardware instead of Memory
 - Qt: Add ROM filename and size to bug reporter
 - Qt: Improve handling of disabling VBA bug compat mode (fixes mgba.io/i/2129)

0.9.0: (2021-03-28)
Features:
 - e-Reader card scanning
 - New tool for converting between different save game formats
 - WebP and APNG recording
 - Separate overrides for GBC games that can also run on SGB or regular GB
 - Game Boy Player features can be enabled by default for all compatible games
 - Frame and I/O viewer support for Game Boy
 - Bug report tool for gathering information helpful for reporting bugs
 - Mute option in homebrew ports
 - Status indicators for fast-forward and mute in homebrew ports
 - VBA bug compatibility mode for ROM hacks that don't work on real hardware
 - Read-only support for MBC6 flash memory
 - New unlicensed GB mappers: Pokč¾æmon Jade/Diamond, BBD, and Hitek
 - Stack tracing tools in ARM debugger (by ahigerd)
 - Command scripts for CLI debugger (by ahigerd)
 - Scheduled event dumping in CLI debugger
 - ARM disassembler now resolves addresses to symbol names
 - Add Game Boy Player feature support to ports
 - Individual window types can now be toggled in debugging views
 - Support for the Wii U GamePad when running as an injected VC title
Emulation fixes:
 - ARM: Fix ALU reading PC after shifting
 - ARM: Fix STR storing PC after address calculation
 - ARM: Fix Addressing mode 1 shifter on rs == pc (fixes mgba.io/i/1926)
 - ARM: Fix long multiply-and-accumulate register write order (fixes mgba.io/1/1956)
 - ARM: Fix long and accumulate multiply timing
 - GB: Partially fix timing for skipped BIOS
 - GB: Downgrade DMG-only ROMs from CGB mode even without boot ROM
 - GB: Fix marking BIOS as unmapped when skipping BIOS (fixes mgba.io/i/2061)
 - GB Audio: Fix serializing sweep time
 - GB Audio: Fix some channel 4 timing edge cases
 - GB MBC: Fix MBC1 mode changing behavior
 - GB MBC: Fix some MBC3 bit masking
 - GB Video: Fix state after skipping BIOS (fixes mgba.io/i/1715 and mgba.io/i/1716)
 - GBA: Fix timing advancing too quickly in rare cases
 - GBA: Clear GBP connection on reset
 - GBA Audio: Revamp FIFO emulation (fixes mgba.io/i/356, mgba.io/i/875, mgba.io/i/1847)
 - GBA BIOS: Implement dummy sound driver calls
 - GBA BIOS: Improve HLE BIOS timing
 - GBA BIOS: Fix reloading video registers after reset (fixes mgba.io/i/1808)
 - GBA BIOS: Make HLE BIOS calls interruptable (fixes mgba.io/i/1711 and mgba.io/i/1823)
 - GBA BIOS: Fix invalid decompression bounds checking
 - GBA DMA: Linger last DMA on bus (fixes mgba.io/i/301 and mgba.io/i/1320)
 - GBA DMA: Fix ordering and timing of overlapping DMAs
 - GBA I/O: Green swap register should be readable
 - GBA I/O: Ignore high bits on IME
 - GBA Memory: Improve gamepak prefetch timing
 - GBA Memory: Stall on VRAM access in mode 2 (fixes mgba.io/i/190)
 - GBA Memory: Improve robustness of Matrix memory support
 - GBA Memory: Mark Famicom Mini games 22 through 28 as non-mirroring
 - GBA Memory: Return correct byte for odd ROM open bus addresses
 - GBA Memory: Improved AGBPrint emulation of edge cases (fixes mgba.io/i/1867)
 - GBA Memory: Fix masking of misaligned jumps
 - GBA Serialize: Fix alignment check when loading states
 - GBA SIO: Fix copying Normal mode transfer values
 - GBA SIO: Fix Normal mode being totally broken (fixes mgba.io/i/1800)
 - GBA SIO: Fix deseralizing SIO registers
 - GBA SIO: Fix hanging on starting a second multiplayer window (fixes mgba.io/i/854)
 - GBA SIO: Fix Normal mode transfer start timing (fixes mgba.io/i/425)
 - GBA Timers: Fix toggling timer cascading while timer is active (fixes mgba.io/i/2043)
 - GBA Video: Latch scanline at end of Hblank (fixes mgba.io/i/1319)
 - GBA Video: Fix Hblank timing
 - GBA Video: Implement green swap (fixes mgba.io/i/1609)
 - GBA Video: Emulate sprite cycle limits in OpenGL renderer (fixes mgba.io/i/1635)
 - GBA Video: Fix OBJWIN erratic rendering in OpenGL renderer
 - GBA Video: Fix x offset in 256-color BG mosaic (fixes mgba.io/i/1684)
 - GBA Video: Fix transposed BG mosaic parameters in GL renderer
 - SM83: Emulate HALT bug
 - SM83: Improve mid-M-cycle interrupts
 - SM83: HALT should not consume an extra T-state
Other fixes:
 - 3DS: Fix thread cleanup
 - All: Improve export headers (fixes mgba.io/i/1738)
 - Cheats: Fix indirect write cheats (fixes mgba.io/i/2026)
 - CMake: Fix build with downstream minizip that exports incompatible symbols
 - CMake: Link with correct OpenGL library (fixes mgba.io/i/1872)
 - Core: Ensure ELF regions can be written before trying
 - Core: Fix threading improperly setting paused state while interrupted
 - Core: Fix loading ELF files that have unexpected empty program headers
 - Core: Fix destroying an mVL with an invalid channel count
 - Debugger: Don't skip undefined instructions when debugger attached
 - Debugger: Close trace log when done tracing
 - Debugger: Fix change watchpoints (fixes mgba.io/i/1947)
 - Debugger: Call CLI debugger system init
 - FFmpeg: Fix some small memory leaks
 - FFmpeg: Fix encoding of time base
 - GB: Fix crash when changing ROM while in banked address space
 - GB: Fix loading model overrides
 - GB MBC: Force minimum SRAM size on rare MBCs that always have SRAM
 - GB Serialize: Fix crash when loading pre-0.7 SGB savestates
 - GB Video: Fix SGB video logs
 - GB Video: Discard SGB packets in non-SGB mVLs
 - GB Video: Fix deserializing negative LX state
 - GB Video: Don't rendering negative batches
 - GBA: Fix loading multiboot ELF files (fixes mgba.io/i/1949)
 - GBA: Fix loading subsequent save files (fixes mgba.io/i/2067)
 - mGUI: Don't attempt to preload files larger than can fit in RAM
 - Qt: Force OpenGL paint engine creation thread (fixes mgba.io/i/1642)
 - Qt: Fix static compilation in MinGW (fixes mgba.io/i/1769)
 - Qt: Fix a race condition in the frame inspector
 - Qt: Load/save bytes from memory viewer in the order visible (fixes mgba.io/i/1900)
 - Qt: Fix running proxied video if it gets pushed to the main thread
 - Qt: Fix game display sometimes disappearing after closing load/save state screen
 - Qt: Fix cancelling pausing before the frame ends
 - Qt: Fix gamepad event dispatching (fixes mgba.io/i/1922)
 - Qt: Pre-attach GDB stub when launching with -g (fixes mgba.io/i/1950)
 - Qt: Fix crash when editing shortcuts with none selected (fixes mgba.io/i/1964)
 - Qt: Fix crashing when no OpenGL context can be obtained
 - Qt: Fix issues with I/O viewer not properly synchronizing state
 - Qt: Fix loading a new game crashing on Wayland (fixes mgba.io/i/1992)
 - Qt: Fix inability to clear hat bindings
 - SM83: Simplify register pair access on big endian
 - SM83: Disassemble STOP as one byte
 - Switch: Fix GB game height in pixel accurate mode (fixes mgba.io/i/2073)
 - Wii: Fix crash on unloading irregularly sized GBA ROMs
Misc:
 - 3DS: Use "wide mode" where applicable for slightly better filtering
 - 3DS: Batch directory reads
 - Core: Add savedataUpdated callback
 - Core: Add shutdown callback
 - Core: Rework thread state synchronization
 - Core: Improve support for ROM patch cheats, supporting disabling overlapping patches
 - Core: Adding to library is now recursive
 - GB: Allow pausing event loop while CPU is blocked
 - GB: Add support for sleep and shutdown callbacks
 - GB: Redo double speed emulation (closes mgba.io/i/1515)
 - GB: Support loading CGB-on-AGB boot ROM
 - GB Audio: Add channel 4 batching back (fixes mgba.io/i/1313)
 - GB Core: Return the current number of banks for ROM/SRAM, not theoretical max
 - GB I/O: Implement preliminary support for PCM12/PCM34 (closes mgba.io/i/1468)
 - GB MBC: Remove unused SRAM size
 - GBA: Allow pausing event loop while CPU is blocked
 - GBA BIOS: Division by zero should emit a FATAL error
 - GBA Cheats: Allow unlimited ROM patch-type codes per set
 - GBA Video: Convert OpenGL VRAM texture to integer
 - GBA Video: Skip attempting to render offscreen sprites in OpenGL
 - GBA Video: New GL palette approach, no more batch splitting on palette edits
 - GBA Video: Avoid integer division using reciprocal tricks
 - Debugger: Keep track of global cycle count
 - FFmpeg: Add looping option for GIF/APNG
 - FFmpeg: Add CRF support for applicable codecs
 - mGUI: Show battery percentage
 - mGUI: Skip second scan loop when possible
 - mGUI: Improve loading speed (fixes mgba.io/i/1957)
 - Qt: Renderer can be changed while a game is running
 - Qt: Add hex index to palette view
 - Qt: Add transformation matrix info to sprite view
 - Qt: Memory viewer now supports editing decimal values directly (closes mgba.io/i/1705)
 - Qt: Add copy button to GB printer dialog
 - Qt: Window title updates can be disabled (closes mgba.io/i/1912)
 - Qt: Redo OpenGL context thread handling (fixes mgba.io/i/1724)
 - Qt: Discard additional frame draws if waiting fails
 - Qt: Unify monospace font usage
 - Qt: Add button to jump to log settings
 - Qt: Use relative paths in portable mode when applicable (fixes mgba.io/i/838)
 - Qt: Better initial shortcut editor column sizes
 - SDL: Fall back to sw blit if OpenGL init fails
 - Switch: Optimize font rendering (fixes mgba.io/i/2078)
 - Switch: Allow switching between CPU and GPU renderers without reloading
 - Util: Reset vector size on deinit
 - VFS: Change semantics of VFile.sync on mapped files (fixes mgba.io/i/1730)


(nia)
diff -r1.12 -r1.13 pkgsrc/emulators/libretro-mgba/Makefile
diff -r1.10 -r1.11 pkgsrc/emulators/libretro-mgba/distinfo
diff -r1.5 -r1.6 pkgsrc/emulators/libretro-mgba/patches/patch-CMakeLists.txt
diff -r1.2 -r0 pkgsrc/emulators/libretro-mgba/patches/patch-version.cmake
diff -r1.2 -r1.3 pkgsrc/emulators/mgba/MESSAGE.NetBSD
diff -r1.24 -r1.25 pkgsrc/emulators/mgba/Makefile
diff -r1.8 -r1.9 pkgsrc/emulators/mgba/PLIST
diff -r1.10 -r1.11 pkgsrc/emulators/mgba/distinfo
diff -r1.1 -r0 pkgsrc/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt
diff -r1.1 -r0 pkgsrc/emulators/mgba/patches/patch-version.cmake

cvs diff -r1.12 -r1.13 pkgsrc/emulators/libretro-mgba/Makefile (expand / switch to unified diff)

--- pkgsrc/emulators/libretro-mgba/Makefile 2020/12/03 14:53:19 1.12
+++ pkgsrc/emulators/libretro-mgba/Makefile 2021/05/02 08:40:00 1.13
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.12 2020/12/03 14:53:19 nia Exp $ 1# $NetBSD: Makefile,v 1.13 2021/05/02 08:40:00 nia Exp $
2 2
3DISTNAME= mgba-0.8.4 3DISTNAME= mgba-0.9.1
4PKGNAME= libretro-${DISTNAME} 4PKGNAME= libretro-${DISTNAME}
5CATEGORIES= emulators 5CATEGORIES= emulators
6MASTER_SITES= ${MASTER_SITE_GITHUB:=mgba-emu/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=mgba-emu/}
7GITHUB_PROJECT= mgba 7GITHUB_PROJECT= mgba
8 8
9MAINTAINER= nia@NetBSD.org 9MAINTAINER= nia@NetBSD.org
10HOMEPAGE= https://docs.libretro.com/library/mgba/ 10HOMEPAGE= https://docs.libretro.com/library/mgba/
11COMMENT= Libretro core based on the mGBA emulator 11COMMENT= Libretro core based on the mGBA emulator
12LICENSE= mpl-2.0 12LICENSE= mpl-2.0
13 13
14USE_CMAKE= yes 14USE_CMAKE= yes
15USE_TOOLS+= pkg-config 15USE_TOOLS+= pkg-config
16USE_LANGUAGES= c c++ 16USE_LANGUAGES= c c++
@@ -40,18 +40,19 @@ CMAKE_ARGS+= -DBUILD_SDL=OFF @@ -40,18 +40,19 @@ CMAKE_ARGS+= -DBUILD_SDL=OFF
40CMAKE_ARGS+= -DBUILD_GL=OFF 40CMAKE_ARGS+= -DBUILD_GL=OFF
41CMAKE_ARGS+= -DBUILD_GLES2=OFF 41CMAKE_ARGS+= -DBUILD_GLES2=OFF
42CMAKE_ARGS+= -DBUILD_GLES3=OFF 42CMAKE_ARGS+= -DBUILD_GLES3=OFF
43 43
44CMAKE_ARGS+= -DBUILD_LIBRETRO=ON 44CMAKE_ARGS+= -DBUILD_LIBRETRO=ON
45CMAKE_ARGS+= -DSKIP_LIBRARY=ON 45CMAKE_ARGS+= -DSKIP_LIBRARY=ON
46CMAKE_ARGS+= -DLIBRETRO_LIBDIR=${PREFIX}/lib/libretro 46CMAKE_ARGS+= -DLIBRETRO_LIBDIR=${PREFIX}/lib/libretro
47 47
48INSTALLATION_DIRS+= ${PREFIX}/lib/libretro 48INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
49 49
50# Avoid conflicting with emulators/mgba. 50# Avoid conflicting with emulators/mgba.
51post-install: 51post-install:
52 ${RM} -rf ${DESTDIR}${PREFIX}/share/doc/mGBA 52 ${RM} -rf ${DESTDIR}${PREFIX}/share/doc/mGBA
 53 ${RM} -rf ${DESTDIR}${PREFIX}/include/mgba*
53 54
54.include "../../devel/libelf/buildlink3.mk" 55.include "../../devel/libelf/buildlink3.mk"
55.include "../../graphics/MesaLib/buildlink3.mk" 56.include "../../graphics/MesaLib/buildlink3.mk"
56.include "../../mk/pthread.buildlink3.mk" 57.include "../../mk/pthread.buildlink3.mk"
57.include "../../mk/bsd.pkg.mk" 58.include "../../mk/bsd.pkg.mk"

cvs diff -r1.10 -r1.11 pkgsrc/emulators/libretro-mgba/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/emulators/libretro-mgba/Attic/distinfo 2020/12/03 14:53:19 1.10
+++ pkgsrc/emulators/libretro-mgba/Attic/distinfo 2021/05/02 08:40:00 1.11
@@ -1,9 +1,8 @@ @@ -1,9 +1,8 @@
1$NetBSD: distinfo,v 1.10 2020/12/03 14:53:19 nia Exp $ 1$NetBSD: distinfo,v 1.11 2021/05/02 08:40:00 nia Exp $
2 2
3SHA1 (mgba-0.8.4.tar.gz) = 071905eebbbb3389f4a88f533b9a452cbcae583e 3SHA1 (mgba-0.9.1.tar.gz) = 78c13b21dfef0d7954a8d2ee7a4725a84fd6b0bf
4RMD160 (mgba-0.8.4.tar.gz) = 2812ea5c2816b96b2edfcbcfffcdda066152ec03 4RMD160 (mgba-0.9.1.tar.gz) = 218379534fd8562eb7a97cc48b3c20429f6557df
5SHA512 (mgba-0.8.4.tar.gz) = fe9c022211d03eb8a5db23901b2f99a5ee75a40f104e5edb2c6fd1a2860a37d9a3ba8d3b724b35ef958840986dd09002c58740a176290b415826e1a345d90390 5SHA512 (mgba-0.9.1.tar.gz) = f818bbcb8d38a2caced9ccb96aa81b392c5f75860af0c16848c9ce2046f17328829cf45a00b211326bfab86c3cac76ae341dc54ab91e1b548085b1d1198a2578
6Size (mgba-0.8.4.tar.gz) = 12347906 bytes 6Size (mgba-0.9.1.tar.gz) = 12795893 bytes
7SHA1 (patch-CMakeLists.txt) = 1926d339e3d74a73b463686d6c0ca1e9e7be0ed7 7SHA1 (patch-CMakeLists.txt) = e4bb18352c0d5602084c0674c1b5d6c3cd84b9bc
8SHA1 (patch-include_mgba-util_math.h) = 448ca1bb3bbe2812e7d9482917c488ddcf3b48f0 8SHA1 (patch-include_mgba-util_math.h) = 448ca1bb3bbe2812e7d9482917c488ddcf3b48f0
9SHA1 (patch-version.cmake) = 7d6d44febe7bb0ff2231452f037def7cb3782e21 

cvs diff -r1.5 -r1.6 pkgsrc/emulators/libretro-mgba/patches/patch-CMakeLists.txt (expand / switch to unified diff)

--- pkgsrc/emulators/libretro-mgba/patches/patch-CMakeLists.txt 2020/12/03 14:53:19 1.5
+++ pkgsrc/emulators/libretro-mgba/patches/patch-CMakeLists.txt 2021/05/02 08:40:00 1.6
@@ -1,29 +1,27 @@ @@ -1,29 +1,27 @@
1$NetBSD: patch-CMakeLists.txt,v 1.5 2020/12/03 14:53:19 nia Exp $ 1$NetBSD: patch-CMakeLists.txt,v 1.6 2021/05/02 08:40:00 nia Exp $
2 2
3Fix locale detection. 3Fix locale detection.
4 4
5Don't install headers. 5--- CMakeLists.txt.orig 2020-08-04 04:46:14.000000000 +0000
6 
7--- CMakeLists.txt.orig 2020-10-30 01:25:25.000000000 +0000 
8+++ CMakeLists.txt 6+++ CMakeLists.txt
9@@ -364,7 +364,9 @@ if(HAVE_LOCALTIME_R) 7@@ -364,7 +364,9 @@ if(HAVE_LOCALTIME_R)
10 list(APPEND FUNCTION_DEFINES HAVE_LOCALTIME_R) 8 list(APPEND FUNCTION_DEFINES HAVE_LOCALTIME_R)
11 endif() 9 endif()
12  10
13-if(HAVE_NEWLOCALE AND HAVE_FREELOCALE AND HAVE_USELOCALE OR APPLE) 11-if(HAVE_NEWLOCALE AND HAVE_FREELOCALE AND HAVE_USELOCALE OR APPLE)
14+check_include_files("locale.h" HAVE_LOCALE) 12+check_include_files("locale.h" HAVE_LOCALE)
15+ 13+
16+if(HAVE_LOCALE OR APPLE) 14+if(HAVE_LOCALE OR APPLE)
17 list(APPEND FUNCTION_DEFINES HAVE_LOCALE) 15 list(APPEND FUNCTION_DEFINES HAVE_LOCALE)
18 if (HAVE_SNPRINTF_L) 16 if (HAVE_SNPRINTF_L)
19 list(APPEND FUNCTION_DEFINES HAVE_SNPRINTF_L) 17 list(APPEND FUNCTION_DEFINES HAVE_SNPRINTF_L)
20@@ -995,9 +997,6 @@ endif() 18@@ -1033,9 +1035,6 @@ endif()
21  19
22 file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/mgba) 20 file(GLOB READMES ${CMAKE_CURRENT_SOURCE_DIR}/README*.md)
23 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/core/flags.h.in ${CMAKE_CURRENT_BINARY_DIR}/include/mgba/flags.h) 
24-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/mgba DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT ${BINARY_NAME}-dev FILES_MATCHING PATTERN "*.h") 
25-install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/mgba-util DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT ${BINARY_NAME}-dev FILES_MATCHING PATTERN "*.h") 
26-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/mgba/flags.h ${CMAKE_CURRENT_BINARY_DIR}/include/mgba-util/dllexports.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/mgba COMPONENT ${BINARY_NAME}-dev) 
27  21
28 if(WIN32) 22-find_program(UNIX2DOS NAMES unix2dos)
29 set(BIN_DIR ".\\") 23-find_program(MARKDOWN NAMES markdown kramdown pandoc)
 24-
 25 if(UNIX OR NOT UNIX2DOS)
 26 if(UNIX OR NOT MARKDOWN)
 27 install(FILES ${READMES} DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT ${BINARY_NAME})

File Deleted: pkgsrc/emulators/libretro-mgba/patches/Attic/patch-version.cmake

cvs diff -r1.2 -r1.3 pkgsrc/emulators/mgba/Attic/MESSAGE.NetBSD (expand / switch to unified diff)

--- pkgsrc/emulators/mgba/Attic/MESSAGE.NetBSD 2020/06/19 13:06:35 1.2
+++ pkgsrc/emulators/mgba/Attic/MESSAGE.NetBSD 2021/05/02 08:39:59 1.3
@@ -1,14 +1,11 @@ @@ -1,14 +1,11 @@
1=========================================================================== 1===========================================================================
2$NetBSD: MESSAGE.NetBSD,v 1.2 2020/06/19 13:06:35 nia Exp $ 2$NetBSD: MESSAGE.NetBSD,v 1.3 2021/05/02 08:39:59 nia Exp $
3 3
4With the Qt UI (mgba-qt), the OpenGL video driver seems to cause frame 4With the Qt UI, the OpenGL video driver seems to cause frame drops below
5drops below 60FPS on certain hardware. The SDL UI (mgba) seems to be solid. 56 0FPS on certain hardware. The SDL UI (mgba) seems to be solid, as does
 6the Software driver.
6 7
7You might want to change the audio sample rate (in mGBA's settings) 8You might want to change the audio sample rate (in mGBA's settings)
8to the native rate of the device (usually 48000 Hz, or a multiple). 9to the native rate of the device (usually 48000 Hz, or a multiple).
9 10
10NetBSD 9.0's default audio latency of 4-10ms seems good enough. If 
11yours is set to any higher, sysctl hw.audio0.blk_ms might need to be 
12lowered for full performance and framerates. 
13 
14=========================================================================== 11===========================================================================

cvs diff -r1.24 -r1.25 pkgsrc/emulators/mgba/Makefile (expand / switch to unified diff)

--- pkgsrc/emulators/mgba/Makefile 2021/04/21 13:24:37 1.24
+++ pkgsrc/emulators/mgba/Makefile 2021/05/02 08:39:59 1.25
@@ -1,31 +1,31 @@ @@ -1,31 +1,31 @@
1# $NetBSD: Makefile,v 1.24 2021/04/21 13:24:37 adam Exp $ 1# $NetBSD: Makefile,v 1.25 2021/05/02 08:39:59 nia Exp $
2 2
3DISTNAME= mgba-0.8.4 3DISTNAME= mgba-0.9.1
4PKGREVISION= 2 
5CATEGORIES= emulators 4CATEGORIES= emulators
6MASTER_SITES= ${MASTER_SITE_GITHUB:=mgba-emu/} 5MASTER_SITES= ${MASTER_SITE_GITHUB:=mgba-emu/}
7 6
8MAINTAINER= nia@NetBSD.org 7MAINTAINER= nia@NetBSD.org
9HOMEPAGE= https://mgba.io/ 8HOMEPAGE= https://mgba.io/
10COMMENT= Emulator for running Game Boy Advance games 9COMMENT= Emulator for running Game Boy Advance games
11LICENSE= mpl-2.0 10LICENSE= mpl-2.0
12 11
13USE_TOOLS+= pkg-config 12USE_TOOLS+= pkg-config
14USE_CMAKE= yes 13USE_CMAKE= yes
15USE_LANGUAGES= c c++ 14USE_LANGUAGES= c c++
16 15
17# C++14 16# C++14
18GCC_REQD+= 5 17GCC_REQD+= 5
19 18
20CMAKE_ARGS+= -DUSE_DISCORD_RPC=OFF 19CMAKE_ARGS+= -DUSE_DISCORD_RPC=OFF
 20CMAKE_ARGS+= -DSKIP_GIT=ON
21 21
22.include "options.mk" 22.include "options.mk"
23.include "../../archivers/libzip/buildlink3.mk" 23.include "../../archivers/libzip/buildlink3.mk"
24.include "../../databases/sqlite3/buildlink3.mk" 24.include "../../databases/sqlite3/buildlink3.mk"
25.include "../../devel/libelf/buildlink3.mk" 25.include "../../devel/libelf/buildlink3.mk"
26.include "../../devel/zlib/buildlink3.mk" 26.include "../../devel/zlib/buildlink3.mk"
27.include "../../devel/SDL2/buildlink3.mk" 27.include "../../devel/SDL2/buildlink3.mk"
28.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 28.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
29.include "../../graphics/png/buildlink3.mk" 29.include "../../graphics/png/buildlink3.mk"
30.include "../../mk/pthread.buildlink3.mk" 30.include "../../mk/pthread.buildlink3.mk"
31.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"

cvs diff -r1.8 -r1.9 pkgsrc/emulators/mgba/PLIST (expand / switch to unified diff)

--- pkgsrc/emulators/mgba/PLIST 2020/12/03 14:47:25 1.8
+++ pkgsrc/emulators/mgba/PLIST 2021/05/02 08:39:59 1.9
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1@comment $NetBSD: PLIST,v 1.8 2020/12/03 14:47:25 nia Exp $ 1@comment $NetBSD: PLIST,v 1.9 2021/05/02 08:39:59 nia Exp $
2bin/mgba 2bin/mgba
3${PLIST.qt}bin/mgba-qt 3${PLIST.qt}bin/mgba-qt
4include/mgba-util/arm-algo.h 
5include/mgba-util/circle-buffer.h 4include/mgba-util/circle-buffer.h
6include/mgba-util/common.h 5include/mgba-util/common.h
7include/mgba-util/configuration.h 6include/mgba-util/configuration.h
8include/mgba-util/crc32.h 7include/mgba-util/crc32.h
9include/mgba-util/dllexports.h 8include/mgba-util/dllexports.h
10include/mgba-util/elf-read.h 9include/mgba-util/elf-read.h
11include/mgba-util/export.h 10include/mgba-util/export.h
12include/mgba-util/formatting.h 11include/mgba-util/formatting.h
13include/mgba-util/gui.h 12include/mgba-util/gui.h
14include/mgba-util/gui/file-select.h 13include/mgba-util/gui/file-select.h
15include/mgba-util/gui/font-metrics.h 14include/mgba-util/gui/font-metrics.h
16include/mgba-util/gui/font.h 15include/mgba-util/gui/font.h
17include/mgba-util/gui/menu.h 16include/mgba-util/gui/menu.h
@@ -53,58 +52,59 @@ include/mgba/core/library.h @@ -53,58 +52,59 @@ include/mgba/core/library.h
53include/mgba/core/lockstep.h 52include/mgba/core/lockstep.h
54include/mgba/core/log.h 53include/mgba/core/log.h
55include/mgba/core/map-cache.h 54include/mgba/core/map-cache.h
56include/mgba/core/mem-search.h 55include/mgba/core/mem-search.h
57include/mgba/core/rewind.h 56include/mgba/core/rewind.h
58include/mgba/core/scripting.h 57include/mgba/core/scripting.h
59include/mgba/core/serialize.h 58include/mgba/core/serialize.h
60include/mgba/core/sync.h 59include/mgba/core/sync.h
61include/mgba/core/thread.h 60include/mgba/core/thread.h
62include/mgba/core/tile-cache.h 61include/mgba/core/tile-cache.h
63include/mgba/core/timing.h 62include/mgba/core/timing.h
64include/mgba/core/version.h 63include/mgba/core/version.h
65include/mgba/debugger/debugger.h 64include/mgba/debugger/debugger.h
66include/mgba/dllexports.h 
67include/mgba/feature/commandline.h 65include/mgba/feature/commandline.h
68include/mgba/feature/thread-proxy.h 66include/mgba/feature/thread-proxy.h
69include/mgba/feature/video-logger.h 67include/mgba/feature/video-logger.h
70include/mgba/flags.h 68include/mgba/flags.h
71include/mgba/gb/core.h 69include/mgba/gb/core.h
72include/mgba/gb/interface.h 70include/mgba/gb/interface.h
73include/mgba/gba/core.h 71include/mgba/gba/core.h
74include/mgba/gba/interface.h 72include/mgba/gba/interface.h
75include/mgba/internal/arm/arm.h 73include/mgba/internal/arm/arm.h
76include/mgba/internal/arm/debugger/cli-debugger.h 74include/mgba/internal/arm/debugger/cli-debugger.h
77include/mgba/internal/arm/debugger/debugger.h 75include/mgba/internal/arm/debugger/debugger.h
78include/mgba/internal/arm/debugger/memory-debugger.h 76include/mgba/internal/arm/debugger/memory-debugger.h
79include/mgba/internal/arm/decoder-inlines.h 77include/mgba/internal/arm/decoder-inlines.h
80include/mgba/internal/arm/decoder.h 78include/mgba/internal/arm/decoder.h
81include/mgba/internal/arm/emitter-arm.h 79include/mgba/internal/arm/emitter-arm.h
82include/mgba/internal/arm/emitter-inlines.h 80include/mgba/internal/arm/emitter-inlines.h
83include/mgba/internal/arm/emitter-thumb.h 81include/mgba/internal/arm/emitter-thumb.h
84include/mgba/internal/arm/isa-arm.h 82include/mgba/internal/arm/isa-arm.h
85include/mgba/internal/arm/isa-inlines.h 83include/mgba/internal/arm/isa-inlines.h
86include/mgba/internal/arm/isa-thumb.h 84include/mgba/internal/arm/isa-thumb.h
87include/mgba/internal/arm/macros.h 85include/mgba/internal/arm/macros.h
88include/mgba/internal/debugger/cli-debugger.h 86include/mgba/internal/debugger/cli-debugger.h
89include/mgba/internal/debugger/gdb-stub.h 87include/mgba/internal/debugger/gdb-stub.h
90include/mgba/internal/debugger/parser.h 88include/mgba/internal/debugger/parser.h
 89include/mgba/internal/debugger/stack-trace.h
91include/mgba/internal/debugger/symbols.h 90include/mgba/internal/debugger/symbols.h
92include/mgba/internal/gb/audio.h 91include/mgba/internal/gb/audio.h
93include/mgba/internal/gb/cheats.h 92include/mgba/internal/gb/cheats.h
94include/mgba/internal/gb/debugger/debugger.h 93include/mgba/internal/gb/debugger/debugger.h
95include/mgba/internal/gb/debugger/symbols.h 94include/mgba/internal/gb/debugger/symbols.h
96include/mgba/internal/gb/extra/cli.h 95include/mgba/internal/gb/extra/cli.h
97include/mgba/internal/gb/gb.h 96include/mgba/internal/gb/gb.h
 97include/mgba/internal/gb/input.h
98include/mgba/internal/gb/io.h 98include/mgba/internal/gb/io.h
99include/mgba/internal/gb/mbc.h 99include/mgba/internal/gb/mbc.h
100include/mgba/internal/gb/memory.h 100include/mgba/internal/gb/memory.h
101include/mgba/internal/gb/overrides.h 101include/mgba/internal/gb/overrides.h
102include/mgba/internal/gb/renderers/cache-set.h 102include/mgba/internal/gb/renderers/cache-set.h
103include/mgba/internal/gb/renderers/proxy.h 103include/mgba/internal/gb/renderers/proxy.h
104include/mgba/internal/gb/renderers/software.h 104include/mgba/internal/gb/renderers/software.h
105include/mgba/internal/gb/serialize.h 105include/mgba/internal/gb/serialize.h
106include/mgba/internal/gb/sio.h 106include/mgba/internal/gb/sio.h
107include/mgba/internal/gb/sio/lockstep.h 107include/mgba/internal/gb/sio/lockstep.h
108include/mgba/internal/gb/sio/printer.h 108include/mgba/internal/gb/sio/printer.h
109include/mgba/internal/gb/timer.h 109include/mgba/internal/gb/timer.h
110include/mgba/internal/gb/video.h 110include/mgba/internal/gb/video.h
@@ -116,53 +116,53 @@ include/mgba/internal/gba/extra/audio-mi @@ -116,53 +116,53 @@ include/mgba/internal/gba/extra/audio-mi
116include/mgba/internal/gba/extra/cli.h 116include/mgba/internal/gba/extra/cli.h
117include/mgba/internal/gba/gba.h 117include/mgba/internal/gba/gba.h
118include/mgba/internal/gba/hardware.h 118include/mgba/internal/gba/hardware.h
119include/mgba/internal/gba/input.h 119include/mgba/internal/gba/input.h
120include/mgba/internal/gba/io.h 120include/mgba/internal/gba/io.h
121include/mgba/internal/gba/matrix.h 121include/mgba/internal/gba/matrix.h
122include/mgba/internal/gba/memory.h 122include/mgba/internal/gba/memory.h
123include/mgba/internal/gba/overrides.h 123include/mgba/internal/gba/overrides.h
124include/mgba/internal/gba/renderers/cache-set.h 124include/mgba/internal/gba/renderers/cache-set.h
125include/mgba/internal/gba/renderers/common.h 125include/mgba/internal/gba/renderers/common.h
126include/mgba/internal/gba/renderers/gl.h 126include/mgba/internal/gba/renderers/gl.h
127include/mgba/internal/gba/renderers/proxy.h 127include/mgba/internal/gba/renderers/proxy.h
128include/mgba/internal/gba/renderers/video-software.h 128include/mgba/internal/gba/renderers/video-software.h
129include/mgba/internal/gba/rr/mgm.h 
130include/mgba/internal/gba/rr/rr.h 
131include/mgba/internal/gba/rr/vbm.h 
132include/mgba/internal/gba/savedata.h 129include/mgba/internal/gba/savedata.h
133include/mgba/internal/gba/serialize.h 130include/mgba/internal/gba/serialize.h
134include/mgba/internal/gba/sharkport.h 131include/mgba/internal/gba/sharkport.h
135include/mgba/internal/gba/sio.h 132include/mgba/internal/gba/sio.h
 133include/mgba/internal/gba/sio/dolphin.h
136include/mgba/internal/gba/sio/lockstep.h 134include/mgba/internal/gba/sio/lockstep.h
137include/mgba/internal/gba/timer.h 135include/mgba/internal/gba/timer.h
138include/mgba/internal/gba/vfame.h 136include/mgba/internal/gba/vfame.h
139include/mgba/internal/gba/video.h 137include/mgba/internal/gba/video.h
140include/mgba/internal/sm83/debugger/cli-debugger.h 138include/mgba/internal/sm83/debugger/cli-debugger.h
141include/mgba/internal/sm83/debugger/debugger.h 139include/mgba/internal/sm83/debugger/debugger.h
142include/mgba/internal/sm83/debugger/memory-debugger.h 140include/mgba/internal/sm83/debugger/memory-debugger.h
143include/mgba/internal/sm83/decoder.h 141include/mgba/internal/sm83/decoder.h
144include/mgba/internal/sm83/emitter-sm83.h 142include/mgba/internal/sm83/emitter-sm83.h
145include/mgba/internal/sm83/isa-sm83.h 143include/mgba/internal/sm83/isa-sm83.h
146include/mgba/internal/sm83/sm83.h 144include/mgba/internal/sm83/sm83.h
147lib/libmgba.so 145lib/libmgba.so
148lib/libmgba.so.0.8 146lib/libmgba.so.0.9
149lib/libmgba.so.0.8.3 147lib/libmgba.so.${PKGVERSION}
150${PLIST.qt}man/man6/mgba-qt.6 148${PLIST.qt}man/man6/mgba-qt.6
151man/man6/mgba.6 149man/man6/mgba.6
152${PLIST.qt}share/applications/mgba-qt.desktop 150${PLIST.qt}share/applications/mgba-qt.desktop
153share/doc/mGBA/CHANGES 151share/doc/mGBA/CHANGES
154share/doc/mGBA/LICENSE 152share/doc/mGBA/LICENSE
155share/doc/mGBA/README.md 153share/doc/mGBA/README.md
156share/doc/mGBA/README_DE.md 154share/doc/mGBA/README_DE.md
 155share/doc/mGBA/README_ES.md
 156share/doc/mGBA/README_ZH_CN.md
157share/doc/mGBA/licenses/blip_buf.txt 157share/doc/mGBA/licenses/blip_buf.txt
158share/doc/mGBA/licenses/inih.txt 158share/doc/mGBA/licenses/inih.txt
159share/icons/hicolor/128x128/apps/mgba.png 159share/icons/hicolor/128x128/apps/mgba.png
160share/icons/hicolor/16x16/apps/mgba.png 160share/icons/hicolor/16x16/apps/mgba.png
161share/icons/hicolor/24x24/apps/mgba.png 161share/icons/hicolor/24x24/apps/mgba.png
162share/icons/hicolor/256x256/apps/mgba.png 162share/icons/hicolor/256x256/apps/mgba.png
163share/icons/hicolor/32x32/apps/mgba.png 163share/icons/hicolor/32x32/apps/mgba.png
164share/icons/hicolor/48x48/apps/mgba.png 164share/icons/hicolor/48x48/apps/mgba.png
165share/icons/hicolor/512x512/apps/mgba.png 165share/icons/hicolor/512x512/apps/mgba.png
166share/icons/hicolor/64x64/apps/mgba.png 166share/icons/hicolor/64x64/apps/mgba.png
167share/icons/hicolor/96x96/apps/mgba.png 167share/icons/hicolor/96x96/apps/mgba.png
168${PLIST.qt}share/mgba/nointro.dat 168${PLIST.qt}share/mgba/nointro.dat

cvs diff -r1.10 -r1.11 pkgsrc/emulators/mgba/distinfo (expand / switch to unified diff)

--- pkgsrc/emulators/mgba/distinfo 2020/12/03 14:47:25 1.10
+++ pkgsrc/emulators/mgba/distinfo 2021/05/02 08:39:59 1.11
@@ -1,11 +1,9 @@ @@ -1,11 +1,9 @@
1$NetBSD: distinfo,v 1.10 2020/12/03 14:47:25 nia Exp $ 1$NetBSD: distinfo,v 1.11 2021/05/02 08:39:59 nia Exp $
2 2
3SHA1 (mgba-0.8.4.tar.gz) = 071905eebbbb3389f4a88f533b9a452cbcae583e 3SHA1 (mgba-0.9.1.tar.gz) = 78c13b21dfef0d7954a8d2ee7a4725a84fd6b0bf
4RMD160 (mgba-0.8.4.tar.gz) = 2812ea5c2816b96b2edfcbcfffcdda066152ec03 4RMD160 (mgba-0.9.1.tar.gz) = 218379534fd8562eb7a97cc48b3c20429f6557df
5SHA512 (mgba-0.8.4.tar.gz) = fe9c022211d03eb8a5db23901b2f99a5ee75a40f104e5edb2c6fd1a2860a37d9a3ba8d3b724b35ef958840986dd09002c58740a176290b415826e1a345d90390 5SHA512 (mgba-0.9.1.tar.gz) = f818bbcb8d38a2caced9ccb96aa81b392c5f75860af0c16848c9ce2046f17328829cf45a00b211326bfab86c3cac76ae341dc54ab91e1b548085b1d1198a2578
6Size (mgba-0.8.4.tar.gz) = 12347906 bytes 6Size (mgba-0.9.1.tar.gz) = 12795893 bytes
7SHA1 (patch-CMakeLists.txt) = e4bb18352c0d5602084c0674c1b5d6c3cd84b9bc 7SHA1 (patch-CMakeLists.txt) = e4bb18352c0d5602084c0674c1b5d6c3cd84b9bc
8SHA1 (patch-include_mgba-util_math.h) = 448ca1bb3bbe2812e7d9482917c488ddcf3b48f0 8SHA1 (patch-include_mgba-util_math.h) = 448ca1bb3bbe2812e7d9482917c488ddcf3b48f0
9SHA1 (patch-include_mgba-util_platform_posix_threading.h) = deabb02eda72a4682ad84f263982eb6f8db4699b 9SHA1 (patch-include_mgba-util_platform_posix_threading.h) = deabb02eda72a4682ad84f263982eb6f8db4699b
10SHA1 (patch-src_platform_qt_CMakeLists.txt) = e8adb538c1319d6a5c380aa091aa3b10e3ed29e7 
11SHA1 (patch-version.cmake) = 7d6d44febe7bb0ff2231452f037def7cb3782e21 

File Deleted: pkgsrc/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt

File Deleted: pkgsrc/emulators/mgba/patches/Attic/patch-version.cmake