Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Aug 2023 10:14:47 GMT
From:      Fernando =?utf-8?Q?Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3e10ec461ae5 - main - games/melonds: Update to 0.9.5
Message-ID:  <202308101014.37AAElFp008728@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3e10ec461ae5e04573c6180230022e1ccb809f15

commit 3e10ec461ae5e04573c6180230022e1ccb809f15
Author:     Nadia Holmquist Pedersen <nadia@nhp.sh>
AuthorDate: 2023-07-31 08:19:32 +0000
Commit:     Fernando ApesteguĂ­a <fernape@FreeBSD.org>
CommitDate: 2023-08-10 10:14:05 +0000

    games/melonds: Update to 0.9.5
    
    ChangeLog: https://github.com/melonDS-emu/melonDS/releases/tag/0.9.5
    
     * remove incorrect color profile from PNG icons
     * DLDI fixes for the Smash demo
     * fix gaps in I/O handling
     * fix invalid savemem commands, fixes Dementium
     * FreeBIOS: add VRAM-compatible LZ77 decompress function, fixes Yoshi's Island
     * default firmware: in DSi mode, emulate DWM-W015 wifi board instead of
       DWM-W024
     * default firmware: save WFC settings to separate file
     * disable firmware overrides UI when firmware override isn't checked
     * 2D: more accurate fade/blending
     * DSi: add support for GXFIFO NDMA
     * DSi: add mainRAM mirror at 0x0C000000
     * add 3DS 5:3 aspect ratio, refactor aspect ratio code
     * OpenGL: fix 16x resolution on macOS
     * fix triggers being recognized as negative analog stick values during mapping
     * fix joystick mapping buttons on macOS
     * DSi: preliminary implementation of SNDEXCNT
     * DSi: fix SD inserted/removed IRQ bits
     * DSi: implement 8/16bit access to AES registers
     * DSi: fix SCFG_MC cart-inserted bit
     * JIT: invalidate blocks in ARM7 VRAM/WRAM when it is remapped
     * fix ROM banner reading when the ROM has no banner
     * fix UTF16 ROM title handling in the ROM info dialog
     * wifi: improvements to wifi emulation
     * wifi: shared-memory based sync/comm mechanism for local wifi
     * proper support for multiple melonDS instances for multiplayer
     * DSi: actual, proper camera support
     * DSi: fix DSP enough that it will actually work
     * fix OpenGL context handling
     * force-align all memory accesses
     * better CLI parameter handling
     * fix bugs in DSi direct boot
    
    PR:             272801
    Reported by:    nadia@nhp.sh
    Approved by:    henry.hu.sh@gmail.com (maintainer, timeout > 2 weeks)
---
 games/melonds/Makefile                        | 15 ++++++-------
 games/melonds/distinfo                        |  6 ++---
 games/melonds/files/patch-backport-43d091361e | 25 +++++++++++++++++++++
 games/melonds/files/patch-backport-e6cc4b14b0 | 32 +++++++++++++++++++++++++++
 4 files changed, 67 insertions(+), 11 deletions(-)

diff --git a/games/melonds/Makefile b/games/melonds/Makefile
index ae46febe12a5..bd1dc8eef1b5 100644
--- a/games/melonds/Makefile
+++ b/games/melonds/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	melonds
-PORTVERSION=	0.9.4
-PORTREVISION=	1
+PORTVERSION=	0.9.5
 CATEGORIES=	games
 PKGNAMESUFFIX=	-${FLAVOR}
 
@@ -13,16 +12,16 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 BROKEN_i386=	static_assert failed due to requirement 'sizeof(TestCase) == 4312'
 
-LIB_DEPENDS=	libslirp.so:net/libslirp \
-		libepoxy.so:graphics/libepoxy
+LIB_DEPENDS=	libslirp.so:net/libslirp
 
 FLAVORS=	qt5 qt6
 FLAVOR?=	qt5
 
 USES=		cmake compiler:c++17-lang desktop-file-utils gnome \
-		iconv libarchive pkgconfig qt:${FLAVOR:S/qt//} sdl
+		iconv libarchive pkgconfig qt:${FLAVOR:S/qt//} sdl kde:5
 USE_GNOME=	glib20
 USE_SDL=	sdl2
+USE_KDE=	ecm:build
 
 .if ${FLAVOR} == qt5
 CMAKE_OFF=	USE_QT6
@@ -33,13 +32,13 @@ CMAKE_ON=	USE_QT6
 USE_GITHUB=	yes
 GH_ACCOUNT=	melonDS-emu
 GH_PROJECT=	melonDS
-GH_TAGNAME=	0.9.4
+GH_TAGNAME=	0.9.5
 
 qt5_CONFLICTS_INSTALL=	${PORTNAME}-qt6
 qt6_CONFLICTS_INSTALL=	${PORTNAME}-qt5
 
-_USE_QT5=	core gui network widgets buildtools:build qmake:build
-_USE_QT6=	base
+_USE_QT5=	core gui network widgets multimedia buildtools:build qmake:build
+_USE_QT6=	base multimedia
 USE_QT=		${_USE_QT${FLAVOR:S/qt//}}
 
 .include <bsd.port.mk>
diff --git a/games/melonds/distinfo b/games/melonds/distinfo
index 12ee4fff5a36..62ab9fcd2e1a 100644
--- a/games/melonds/distinfo
+++ b/games/melonds/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1662945631
-SHA256 (melonDS-emu-melonDS-0.9.4_GH0.tar.gz) = 8022c8798a723f8ffae6ffdad2e7637cf9046e88f86b55b5f9ad3fa3b2e6d398
-SIZE (melonDS-emu-melonDS-0.9.4_GH0.tar.gz) = 2330696
+TIMESTAMP = 1689499885
+SHA256 (melonDS-emu-melonDS-0.9.5_GH0.tar.gz) = 52c6b99340b8bba8c52b11a2242591f05e838c34ddd9ec20dcf1a6039405434a
+SIZE (melonDS-emu-melonDS-0.9.5_GH0.tar.gz) = 2496704
diff --git a/games/melonds/files/patch-backport-43d091361e b/games/melonds/files/patch-backport-43d091361e
new file mode 100644
index 000000000000..0eaa9e42bbae
--- /dev/null
+++ b/games/melonds/files/patch-backport-43d091361e
@@ -0,0 +1,25 @@
+From 43d091361ed6b400a68911147fd5fe524ccecf34 Mon Sep 17 00:00:00 2001
+From: RSDuck <RSDuck@users.noreply.github.com>
+Date: Fri, 25 Nov 2022 23:47:36 +0100
+Subject: [PATCH] fix #1551
+
+---
+ src/frontend/duckstation/duckstation_compat.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git src/frontend/duckstation/duckstation_compat.h src/frontend/duckstation/duckstation_compat.h
+index a661e926..fed37805 100644
+--- src/frontend/duckstation/duckstation_compat.h
++++ src/frontend/duckstation/duckstation_compat.h
+@@ -12,6 +12,6 @@
+ 
+ #define Panic(msg) assert(false && msg)
+ 
+-#define UnreachableCode() __builtin_unreachable
++#define UnreachableCode() __builtin_unreachable()
+ 
+ #endif
+\ No newline at end of file
+-- 
+2.41.0
+
diff --git a/games/melonds/files/patch-backport-e6cc4b14b0 b/games/melonds/files/patch-backport-e6cc4b14b0
new file mode 100644
index 000000000000..91ec9e0976a0
--- /dev/null
+++ b/games/melonds/files/patch-backport-e6cc4b14b0
@@ -0,0 +1,32 @@
+From e6cc4b14b0eb603001e968be9b1ace8a09e1bce1 Mon Sep 17 00:00:00 2001
+From: Nadia Holmquist Pedersen <nadia@nhp.sh>
+Date: Sun, 16 Jul 2023 15:46:50 +0200
+Subject: [PATCH] Work around a strange bug in Qt5 that causes melonDS to crash
+ on launch
+
+...but only with LTO enabled
+...but only on some UNIX systems
+...but only with some additional build options except when it breaks
+   without any as well
+---
+ src/frontend/qt_sdl/CMakeLists.txt | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git src/frontend/qt_sdl/CMakeLists.txt src/frontend/qt_sdl/CMakeLists.txt
+index 0ae6ecea..24261030 100644
+--- src/frontend/qt_sdl/CMakeLists.txt
++++ src/frontend/qt_sdl/CMakeLists.txt
+@@ -222,4 +222,10 @@ if (UNIX AND NOT APPLE)
+ 
+     install(FILES ${CMAKE_SOURCE_DIR}/res/net.kuribo64.melonDS.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
+     install(TARGETS melonDS BUNDLE DESTINATION ${CMAKE_BINARY_DIR} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
++
++    if (NOT USE_QT6)
++        set_target_properties(melonDS PROPERTIES
++            INTERPROCEDURAL_OPTIMIZATION OFF
++            INTERPROCEDURAL_OPTIMIZATION_RELEASE OFF)
++    endif()
+ endif()
+-- 
+2.41.0
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308101014.37AAElFp008728>