Fri Jun 19 13:06:35 2020 UTC ()
mgba: Update to 0.8.2

0.8.2: (2020-06-14)
Emulation fixes:
 - ARM: Fix timing on Thumb shift instructions
 - GB: Fix GBC game registers after skipping BIOS
 - GB MBC: Support 4MB MBC30 ROMs (fixes mgba.io/i/1713)
 - GB Video: Fix BGPS value after skipping BIOS (fixes mgba.io/i/1717)
 - GBA: Add missing RTC overrides for Legendz games
 - GBA BIOS: Reset renderer when RegisterRamReset called (fixes mgba.io/i/1756)
 - GBA SIO: Fix Multiplayer busy bit
 - GBA SIO: Fix double-unloading active driver
 - GBA Timers: Fix deserializing count-up timers
 - GBA Video: Fix mosaic objects drawing past the end (fixes mgba.io/i/1702)
 - GBA Video: Fix disabling OBJWIN in GL renderer (fixes mgba.io/i/1759)
 - GBA Video: Add missing parts of 256-color mode 0 mosaic (fixes mgba.io/i/1701)
 - GBA Video: Fix double-size OBJ wrapping in GL renderer (fixes mgba.io/i/1712)
 - GBA Video: Simplify sprite cycle counting (fixes mgba.io/i/1279)
 - GBA Video: Fix sprite/backdrop blending regression
Other fixes:
 - 3DS: Fix framelimiter on newer citro3d (fixes mgba.io/i/1771)
 - ARM: Fix disassembling of several S-type instructions (fixes mgba.io/i/1778)
 - ARM Debugger: Clear low bit on breakpoint addresses (fixes mgba.io/i/1764)
 - CMake: Always use devkitPro toolchain when applicable (fixes mgba.io/i/1755)
 - Core: Fix ELF loading regression (fixes mgba.io/i/1669)
 - Core: Fix crash modifying hash table entry (fixes mgba.io/i/1673)
 - GB Video: Fix some cases where SGB border doesn't draw to multi-buffers
 - GBA: Reject incorrectly sized BIOSes
 - GBA: Break infinite loop for 0-frame mVLs (fixes mgba.io/i/1723)
 - Qt: Fix OpenGL 2.1 support (fixes mgba.io/i/1678)
 - Qt: Fix unmapping zipped ROM (fixes mgba.io/i/1777)
Misc:
 - 3DS: Clean up legacy initialization (fixes mgba.io/i/1768)
 - GBA Serialize: Only flunk BIOS check if official BIOS was expected
 - Qt: Disable Replace ROM option when no game loaded
 - Qt: Defer texture updates until frame is drawn (fixes mgba.io/i/1590)
 - Qt: Set icon for Discord Rich Presence
 - Qt: Show a warning when save file can't be opened


(nia)
diff -r1.1 -r1.2 pkgsrc/emulators/mgba/MESSAGE.NetBSD
diff -r1.14 -r1.15 pkgsrc/emulators/mgba/Makefile
diff -r1.5 -r1.6 pkgsrc/emulators/mgba/PLIST
diff -r1.6 -r1.7 pkgsrc/emulators/mgba/distinfo
diff -r1.4 -r1.5 pkgsrc/emulators/mgba/options.mk

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

--- pkgsrc/emulators/mgba/Attic/MESSAGE.NetBSD 2019/06/08 22:46:03 1.1
+++ pkgsrc/emulators/mgba/Attic/MESSAGE.NetBSD 2020/06/19 13:06:35 1.2
@@ -1,7 +1,14 @@ @@ -1,7 +1,14 @@
1=========================================================================== 1===========================================================================
2$NetBSD: MESSAGE.NetBSD,v 1.1 2019/06/08 22:46:03 nia Exp $ 2$NetBSD: MESSAGE.NetBSD,v 1.2 2020/06/19 13:06:35 nia Exp $
3 3
4Lowering the system audio latency (or blk_ms) with sysctl(8) may be 4With the Qt UI (mgba-qt), the OpenGL video driver seems to cause frame
5required to achieve full performance and framerates. 5drops below 60FPS on certain hardware. The SDL UI (mgba) seems to be solid.
 6
 7You 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).
 9
 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.
6 13
7=========================================================================== 14===========================================================================

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

--- pkgsrc/emulators/mgba/Makefile 2020/06/02 08:23:46 1.14
+++ pkgsrc/emulators/mgba/Makefile 2020/06/19 13:06:35 1.15
@@ -1,30 +1,31 @@ @@ -1,30 +1,31 @@
1# $NetBSD: Makefile,v 1.14 2020/06/02 08:23:46 adam Exp $ 1# $NetBSD: Makefile,v 1.15 2020/06/19 13:06:35 nia Exp $
2 2
3DISTNAME= mgba-0.8.1 3DISTNAME= mgba-0.8.2
4PKGREVISION= 4 
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
13EXTRACT_USING= bsdtar 
14USE_TOOLS+= pkg-config 12USE_TOOLS+= pkg-config
15USE_CMAKE= yes 13USE_CMAKE= yes
16USE_LANGUAGES= c c++ 14USE_LANGUAGES= c c++
17 15
18# using libzip 16# C++14
19CMAKE_ARGS+= -DUSE_MINIZIP=OFF 17GCC_REQD+= 5
 18
 19CMAKE_ARGS+= -DUSE_DISCORD_RPC=OFF
 20CMAKE_ARGS+= -DUSE_MINIZIP=OFF # using libzip
20 21
21.include "options.mk" 22.include "options.mk"
22.include "../../archivers/libzip/buildlink3.mk" 23.include "../../archivers/libzip/buildlink3.mk"
23.include "../../databases/sqlite3/buildlink3.mk" 24.include "../../databases/sqlite3/buildlink3.mk"
24.include "../../devel/libelf/buildlink3.mk" 25.include "../../devel/libelf/buildlink3.mk"
25.include "../../devel/zlib/buildlink3.mk" 26.include "../../devel/zlib/buildlink3.mk"
26.include "../../devel/SDL2/buildlink3.mk" 27.include "../../devel/SDL2/buildlink3.mk"
27.include "../../graphics/hicolor-icon-theme/buildlink3.mk" 28.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
28.include "../../graphics/png/buildlink3.mk" 29.include "../../graphics/png/buildlink3.mk"
29.include "../../mk/pthread.buildlink3.mk" 30.include "../../mk/pthread.buildlink3.mk"
30.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"

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

--- pkgsrc/emulators/mgba/PLIST 2020/02/18 13:29:48 1.5
+++ pkgsrc/emulators/mgba/PLIST 2020/06/19 13:06:35 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.5 2020/02/18 13:29:48 nia Exp $ 1@comment $NetBSD: PLIST,v 1.6 2020/06/19 13:06:35 nia Exp $
2bin/mgba 2bin/mgba
3${PLIST.qt}bin/mgba-qt 3${PLIST.qt}bin/mgba-qt
4include/mgba-util/arm-algo.h 4include/mgba-util/arm-algo.h
5include/mgba-util/circle-buffer.h 5include/mgba-util/circle-buffer.h
6include/mgba-util/common.h 6include/mgba-util/common.h
7include/mgba-util/configuration.h 7include/mgba-util/configuration.h
8include/mgba-util/crc32.h 8include/mgba-util/crc32.h
9include/mgba-util/dllexports.h 9include/mgba-util/dllexports.h
10include/mgba-util/elf-read.h 10include/mgba-util/elf-read.h
11include/mgba-util/export.h 11include/mgba-util/export.h
12include/mgba-util/formatting.h 12include/mgba-util/formatting.h
13include/mgba-util/gui.h 13include/mgba-util/gui.h
14include/mgba-util/gui/file-select.h 14include/mgba-util/gui/file-select.h
@@ -144,26 +144,24 @@ include/mgba/internal/sm83/emitter-sm83. @@ -144,26 +144,24 @@ include/mgba/internal/sm83/emitter-sm83.
144include/mgba/internal/sm83/isa-sm83.h 144include/mgba/internal/sm83/isa-sm83.h
145include/mgba/internal/sm83/sm83.h 145include/mgba/internal/sm83/sm83.h
146lib/libmgba.so 146lib/libmgba.so
147lib/libmgba.so.0.8 147lib/libmgba.so.0.8
148lib/libmgba.so.${PKGVERSION} 148lib/libmgba.so.${PKGVERSION}
149${PLIST.qt}man/man6/mgba-qt.6 149${PLIST.qt}man/man6/mgba-qt.6
150man/man6/mgba.6 150man/man6/mgba.6
151${PLIST.qt}share/applications/mgba-qt.desktop 151${PLIST.qt}share/applications/mgba-qt.desktop
152share/doc/mGBA/CHANGES 152share/doc/mGBA/CHANGES
153share/doc/mGBA/LICENSE 153share/doc/mGBA/LICENSE
154share/doc/mGBA/README.md 154share/doc/mGBA/README.md
155share/doc/mGBA/README_DE.md 155share/doc/mGBA/README_DE.md
156share/doc/mGBA/licenses/blip_buf.txt 156share/doc/mGBA/licenses/blip_buf.txt
157share/doc/mGBA/licenses/discord-rpc.txt 
158share/doc/mGBA/licenses/inih.txt 157share/doc/mGBA/licenses/inih.txt
159share/doc/mGBA/licenses/rapidjson.txt 
160share/icons/hicolor/128x128/apps/mgba.png 158share/icons/hicolor/128x128/apps/mgba.png
161share/icons/hicolor/16x16/apps/mgba.png 159share/icons/hicolor/16x16/apps/mgba.png
162share/icons/hicolor/24x24/apps/mgba.png 160share/icons/hicolor/24x24/apps/mgba.png
163share/icons/hicolor/256x256/apps/mgba.png 161share/icons/hicolor/256x256/apps/mgba.png
164share/icons/hicolor/32x32/apps/mgba.png 162share/icons/hicolor/32x32/apps/mgba.png
165share/icons/hicolor/48x48/apps/mgba.png 163share/icons/hicolor/48x48/apps/mgba.png
166share/icons/hicolor/512x512/apps/mgba.png 164share/icons/hicolor/512x512/apps/mgba.png
167share/icons/hicolor/64x64/apps/mgba.png 165share/icons/hicolor/64x64/apps/mgba.png
168share/icons/hicolor/96x96/apps/mgba.png 166share/icons/hicolor/96x96/apps/mgba.png
169${PLIST.qt}share/mgba/nointro.dat 167${PLIST.qt}share/mgba/nointro.dat

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

--- pkgsrc/emulators/mgba/distinfo 2020/02/18 13:29:48 1.6
+++ pkgsrc/emulators/mgba/distinfo 2020/06/19 13:06:35 1.7
@@ -1,11 +1,12 @@ @@ -1,11 +1,12 @@
1$NetBSD: distinfo,v 1.6 2020/02/18 13:29:48 nia Exp $ 1$NetBSD: distinfo,v 1.7 2020/06/19 13:06:35 nia Exp $
2 2
3SHA1 (mgba-0.8.1.tar.gz) = b22963764f7213ec0e599cf1504973f5655c92a7 3SHA1 (mgba-0.8.2.tar.gz) = 170597b9be302b942ec04e7cb2d8a24c8298c87f
4RMD160 (mgba-0.8.1.tar.gz) = bb2a05688cbd1965c670b18f162675adcf7acc2b 4RMD160 (mgba-0.8.2.tar.gz) = 5c964dc3ef92e470c914f6a3939b343ee149c40a
5SHA512 (mgba-0.8.1.tar.gz) = 7873bde6a74e8a1509a3b5bba602da1c747ca1eff72adcf11f7b2572298d94766570fea0b920cb28c8b63a7d8237a15876b9feb9169edbf331b2d72f340734e2 5SHA512 (mgba-0.8.2.tar.gz) = 181abab9e94964e2027cb039ded6128af1364e1442c418b8703263c9e0c5befeb7aca4d925fb44f3e25e8711a2cc22b198ea00483c42aea3b1c7ba077223d426
6Size (mgba-0.8.1.tar.gz) = 11893993 bytes 6Size (mgba-0.8.2.tar.gz) = 12014352 bytes
7SHA1 (patch-CMakeLists.txt) = 025f67fa8cabfcbb7a2e1761e3352f23df5068f8 7SHA1 (patch-CMakeLists.txt) = 025f67fa8cabfcbb7a2e1761e3352f23df5068f8
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 10SHA1 (patch-src_platform_qt_CMakeLists.txt) = e8adb538c1319d6a5c380aa091aa3b10e3ed29e7
 11SHA1 (patch-src_platform_qt_Display.cpp) = 5cb9049b1d1dbf4652a579534bc6577908a552ca
11SHA1 (patch-version.cmake) = 7d6d44febe7bb0ff2231452f037def7cb3782e21 12SHA1 (patch-version.cmake) = 7d6d44febe7bb0ff2231452f037def7cb3782e21

cvs diff -r1.4 -r1.5 pkgsrc/emulators/mgba/options.mk (expand / switch to unified diff)

--- pkgsrc/emulators/mgba/options.mk 2020/06/14 22:01:23 1.4
+++ pkgsrc/emulators/mgba/options.mk 2020/06/19 13:06:35 1.5
@@ -1,45 +1,42 @@ @@ -1,45 +1,42 @@
1# $NetBSD: options.mk,v 1.4 2020/06/14 22:01:23 nia Exp $ 1# $NetBSD: options.mk,v 1.5 2020/06/19 13:06:35 nia Exp $
2 2
3PKG_OPTIONS_VAR= PKG_OPTIONS.mgba 3PKG_OPTIONS_VAR= PKG_OPTIONS.mgba
4 4
5PKG_SUPPORTED_OPTIONS+= ffmpeg imagemagick qt5 opengl 5PKG_SUPPORTED_OPTIONS+= ffmpeg qt5 opengl
6PKG_SUGGESTED_OPTIONS+= ffmpeg imagemagick qt5 opengl 6PKG_SUGGESTED_OPTIONS+= ffmpeg qt5 opengl
7 7
8PLIST_SRC+= PLIST 8PLIST_SRC+= PLIST
9PLIST_VARS+= qt 9PLIST_VARS+= qt
10 10
11.include "../../mk/bsd.options.mk" 11.include "../../mk/bsd.options.mk"
12 12
13.if !empty(PKG_OPTIONS:Mffmpeg) 13.if !empty(PKG_OPTIONS:Mffmpeg)
14CMAKE_ARGS+= -DUSE_FFMPEG=ON 14CMAKE_ARGS+= -DUSE_FFMPEG=ON
15.include "../../multimedia/ffmpeg4/buildlink3.mk" 15.include "../../multimedia/ffmpeg4/buildlink3.mk"
16.else 16.else
17CMAKE_ARGS+= -DUSE_FFMPEG=OFF 17CMAKE_ARGS+= -DUSE_FFMPEG=OFF
18.endif 18.endif
19 19
20.if !empty(PKG_OPTIONS:Mimagemagick) 
21CMAKE_ARGS+= -DUSE_MAGICK=ON 
22.include "../../graphics/ImageMagick/buildlink3.mk" 
23.else 
24CMAKE_ARGS+= -DUSE_MAGICK=OFF 
25.endif 
26 
27.if !empty(PKG_OPTIONS:Mqt5) 20.if !empty(PKG_OPTIONS:Mqt5)
28PLIST.qt= yes 21PLIST.qt= yes
29CMAKE_ARGS+= -DBUILD_QT=ON 22CMAKE_ARGS+= -DBUILD_QT=ON
 23# We probably don't actually want Qt5Multimedia.
 24# It's an option as an audio output, but SDL supports many more pkgsrc
 25# platforms natively, without going via PulseAudio.
 26CMAKE_ARGS+= -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Multimedia=TRUE
30TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools 27TOOL_DEPENDS+= qt5-qttools-[0-9]*:../../x11/qt5-qttools
31.include "../../x11/qt5-qtbase/buildlink3.mk" 28.include "../../x11/qt5-qtbase/buildlink3.mk"
32.include "../../x11/qt5-qtmultimedia/buildlink3.mk" 29#.include "../../x11/qt5-qtmultimedia/buildlink3.mk"
33.else 30.else
34CMAKE_ARGS+= -DBUILD_QT=OFF 31CMAKE_ARGS+= -DBUILD_QT=OFF
35.endif 32.endif
36 33
37.if !empty(PKG_OPTIONS:Mopengl) 34.if !empty(PKG_OPTIONS:Mopengl)
38CMAKE_ARGS+= -DBUILD_GL=ON 35CMAKE_ARGS+= -DBUILD_GL=ON
39CMAKE_ARGS+= -DUSE_EPOXY=ON 36CMAKE_ARGS+= -DUSE_EPOXY=ON
40.include "../../graphics/MesaLib/buildlink3.mk" 37.include "../../graphics/MesaLib/buildlink3.mk"
41.include "../../graphics/glu/buildlink3.mk" 38.include "../../graphics/glu/buildlink3.mk"
42.include "../../graphics/libepoxy/buildlink3.mk" 39.include "../../graphics/libepoxy/buildlink3.mk"
43.else 40.else
44CMAKE_ARGS+= -DBUILD_GL=OFF 41CMAKE_ARGS+= -DBUILD_GL=OFF
45CMAKE_ARGS+= -DUSE_EPOXY=OFF 42CMAKE_ARGS+= -DUSE_EPOXY=OFF