Thursday, April 04, 2024

UPDATE: Dolphin 20230722

Here is an update to Dolphin 20230722 snapshot.

I thought I had sent this out.

This fixes the Minizip and mGBA build issues Klemens had pointed out.


Index: Makefile
===================================================================
RCS file: /cvs/ports/emulators/dolphin/Makefile,v
retrieving revision 1.19
diff -u -p -u -p -r1.19 Makefile
--- Makefile 24 Apr 2023 11:40:38 -0000 1.19
+++ Makefile 4 Apr 2024 09:47:00 -0000
@@ -1,69 +1,68 @@
USE_WXNEEDED = Yes
-ONLY_FOR_ARCHS = amd64
+ONLY_FOR_ARCHS = aarch64 amd64

COMMENT-main = Nintendo GameCube and Wii emulator with GUI
COMMENT-nogui = Nintendo GameCube and Wii emulator

-V = 5.0.0.20190621
-DISTNAME = dolphin-emu-${V}
-PKGNAME = dolphin-${V}
-REVISION-main = 4
-REVISION-nogui = 4
+V = 5.0.0.20230722
+DISTNAME = dolphin-${V}
+CATEGORIES = emulators
+MASTER_SITES = https://comstyle.com/source/
+EXTRACT_SUFX = .tar.xz

MULTI_PACKAGES = -main -nogui

-.include <bsd.port.arch.mk>
-
-GH_ACCOUNT = dolphin-emu
-GH_PROJECT = dolphin
-GH_COMMIT = 981925a831e28d3967104e1a64dd8fa9b382660a
-
-CATEGORIES = emulators
-
# GPLv2+
PERMIT_PACKAGE = Yes

cWANTLIB = EGL GL GLU ICE SDL2 SM X11 Xext Xi Xrandr avcodec \
- avformat avutil c curl hidapi-libusb iconv intl lzo2 \
- m mbedcrypto mbedtls mbedx509 miniupnpc png pthread \
- pugixml sfml-network sfml-system sndio swscale \
- usb-1.0 z ${COMPILER_LIBCXX}
+ avformat avutil bz2 c curl fmt hidapi-libusb iconv \
+ lzma lzo2 m mbedcrypto mbedtls mbedx509 miniupnpc \
+ minizip pthread pugixml sfml-network sfml-system \
+ speexdsp spng swscale swresample usb-1.0 zstd \
+ ${COMPILER_LIBCXX}

-WANTLIB-main = ${cWANTLIB} Qt5Core Qt5Gui Qt5Widgets
-WANTLIB-nogui = ${cWANTLIB}
-
-COMPILER = base-clang ports-gcc base-gcc
+WANTLIB-main = ${cWANTLIB} Qt6Core Qt6Gui Qt6Widgets
+WANTLIB-nogui = ${cWANTLIB}

MODULES = devel/cmake
-TEST_DEPENDS = devel/gtest
+
BUILD_DEPENDS = devel/gettext,-tools \
- devel/fmt
+ x11/qt6/qtsvg
LIB_DEPENDS-nogui = archivers/lzo2 \
+ archivers/minizip \
+ archivers/zstd \
comms/libhidapi \
converters/libiconv \
- devel/gettext,-runtime \
+ devel/fmt \
devel/libusb1 \
devel/sdl2 \
graphics/ffmpeg \
- graphics/png \
+ graphics/libspng \
multimedia/sfml \
net/curl \
net/miniupnp/miniupnpc \
security/polarssl \
textproc/pugixml
LIB_DEPENDS-main = ${LIB_DEPENDS-nogui} \
- x11/qt5/qtbase
+ x11/qt6/qtbase
RUN_DEPENDS-main = ${RUN_DEPENDS-nogui} \
devel/desktop-file-utils \
emulators/dolphin,-nogui \
x11/gtk+4,-guic
-CONFIGURE_ARGS += -Dmandir:=${PREFIX}/man \
- -DENABLE_ALSA=OFF \
+
+COMPILER = base-clang
+
+CONFIGURE_ARGS += -DENABLE_ALSA=OFF \
-DENABLE_PULSEAUDIO=OFF \
-DENABLE_LLVM=OFF \
- -DQt5_DIR="${LOCALBASE}/lib/qt5/cmake/Qt5" \
- -DUSE_DISCORD_PRESENCE=OFF
-TEST_TARGET = unittests
+ -DENABLE_LTO=ON \
+ -DENABLE_TESTS=OFF \
+ -DENABLE_VULKAN=OFF \
+ -DUSE_DISCORD_PRESENCE=OFF \
+ -DUSE_SANITIZERS=OFF \
+ -DUSE_SYSTEM_LIBMGBA=OFF \
+ -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON

MODCMAKE_LDFLAGS = -L${X11BASE}/lib -L${LOCALBASE}/lib

Index: distinfo
===================================================================
RCS file: /cvs/ports/emulators/dolphin/distinfo,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 distinfo
--- distinfo 8 Mar 2020 02:15:51 -0000 1.3
+++ distinfo 4 Apr 2024 09:47:00 -0000
@@ -1,2 +1,2 @@
-SHA256 (dolphin-emu-5.0.0.20190621-981925a8.tar.gz) = NU3/NTFnFtmsOaj8OqC2NtZdbrmL4+gnsoHgKKiaZvI=
-SIZE (dolphin-emu-5.0.0.20190621-981925a8.tar.gz) = 38837330
+SHA256 (dolphin-5.0.0.20230722.tar.xz) = SSd8KSIOytSXCt7q+n6pZ5gXz43GZ4cFP1HHkhW9Nrw=
+SIZE (dolphin-5.0.0.20230722.tar.xz) = 91976488
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt 11 Mar 2022 18:59:34 -0000 1.3
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,23 +0,0 @@
-use devel/gtest instead of this bundled gtest, which fails to compile
-use system devel/fmt instead of bundled fmt
-
-Index: CMakeLists.txt
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
-@@ -530,7 +530,6 @@ if (_M_X86)
- add_subdirectory(Externals/Bochs_disasm)
- endif()
- add_subdirectory(Externals/cpp-optparse)
--add_subdirectory(Externals/fmt EXCLUDE_FROM_ALL)
- add_subdirectory(Externals/glslang)
- add_subdirectory(Externals/imgui)
-
-@@ -748,8 +747,6 @@ include_directories("${PROJECT_BINARY_DIR}/Source/Core
- # Unit testing.
- #
- if(ENABLE_TESTS)
-- message(STATUS "Using static gtest from Externals")
-- add_subdirectory(Externals/gtest EXCLUDE_FROM_ALL)
- else()
- message(STATUS "Unit tests are disabled")
- endif()
Index: patches/patch-Externals_Bochs_disasm_CMakeLists_txt
===================================================================
RCS file: patches/patch-Externals_Bochs_disasm_CMakeLists_txt
diff -N patches/patch-Externals_Bochs_disasm_CMakeLists_txt
--- patches/patch-Externals_Bochs_disasm_CMakeLists_txt 11 Mar 2022 18:59:34 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-link against intl
-
-Index: Externals/Bochs_disasm/CMakeLists.txt
---- Externals/Bochs_disasm/CMakeLists.txt.orig
-+++ Externals/Bochs_disasm/CMakeLists.txt
-@@ -16,3 +16,5 @@ target_include_directories(bdisasm
- PUBLIC
- ${CMAKE_CURRENT_SOURCE_DIR}
- )
-+
-+target_link_libraries(bdisasm intl)
Index: patches/patch-Externals_glslang_glslang_Include_PoolAlloc_h
===================================================================
RCS file: patches/patch-Externals_glslang_glslang_Include_PoolAlloc_h
diff -N patches/patch-Externals_glslang_glslang_Include_PoolAlloc_h
--- patches/patch-Externals_glslang_glslang_Include_PoolAlloc_h 11 Mar 2022 18:59:34 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,13 +0,0 @@
-fix clang 10 build (error: 'operator=' is a private member)
-
-Index: Externals/glslang/glslang/Include/PoolAlloc.h
---- Externals/glslang/glslang/Include/PoolAlloc.h.orig
-+++ Externals/glslang/glslang/Include/PoolAlloc.h
-@@ -304,7 +304,6 @@ class pool_allocator { (public)
- size_type max_size() const { return static_cast<size_type>(-1) / sizeof(T); }
- size_type max_size(int size) const { return static_cast<size_type>(-1) / size; }
-
-- void setAllocator(TPoolAllocator* a) { allocator = *a; }
- TPoolAllocator& getAllocator() const { return allocator; }
-
- protected:
Index: patches/patch-Externals_soundtouch_SoundTouch_cpp
===================================================================
RCS file: /cvs/ports/emulators/dolphin/patches/patch-Externals_soundtouch_SoundTouch_cpp,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-Externals_soundtouch_SoundTouch_cpp
--- patches/patch-Externals_soundtouch_SoundTouch_cpp 11 Mar 2022 18:59:34 -0000 1.3
+++ patches/patch-Externals_soundtouch_SoundTouch_cpp 4 Apr 2024 09:47:00 -0000
@@ -1,7 +1,7 @@
Index: Externals/soundtouch/SoundTouch.cpp
--- Externals/soundtouch/SoundTouch.cpp.orig
+++ Externals/soundtouch/SoundTouch.cpp
-@@ -75,7 +75,7 @@
+@@ -68,7 +68,7 @@
#include <math.h>
#include <stdio.h>

Index: patches/patch-Externals_soundtouch_SoundTouch_h
===================================================================
RCS file: /cvs/ports/emulators/dolphin/patches/patch-Externals_soundtouch_SoundTouch_h,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 patch-Externals_soundtouch_SoundTouch_h
--- patches/patch-Externals_soundtouch_SoundTouch_h 11 Mar 2022 18:59:34 -0000 1.3
+++ patches/patch-Externals_soundtouch_SoundTouch_h 4 Apr 2024 09:47:00 -0000
@@ -1,11 +1,12 @@
Avoid picking up SoundTouch.h from audio/soundtouch if installed.
+
CMakeLists.txt: "Unable to use system soundtouch library: We require shorts, not
floats"

Index: Externals/soundtouch/SoundTouch.h
--- Externals/soundtouch/SoundTouch.h.orig
+++ Externals/soundtouch/SoundTouch.h
-@@ -69,8 +69,8 @@
+@@ -62,8 +62,8 @@
//
////////////////////////////////////////////////////////////////////////////////

Index: patches/patch-Source_Core_AudioCommon_AudioStretcher_h
===================================================================
RCS file: /cvs/ports/emulators/dolphin/patches/patch-Source_Core_AudioCommon_AudioStretcher_h,v
retrieving revision 1.2
diff -u -p -u -p -r1.2 patch-Source_Core_AudioCommon_AudioStretcher_h
--- patches/patch-Source_Core_AudioCommon_AudioStretcher_h 11 Mar 2022 18:59:34 -0000 1.2
+++ patches/patch-Source_Core_AudioCommon_AudioStretcher_h 4 Apr 2024 09:47:00 -0000
@@ -1,12 +1,12 @@
Index: Source/Core/AudioCommon/AudioStretcher.h
--- Source/Core/AudioCommon/AudioStretcher.h.orig
+++ Source/Core/AudioCommon/AudioStretcher.h
-@@ -6,7 +6,7 @@
+@@ -5,7 +5,7 @@

#include <array>

--#include <soundtouch/SoundTouch.h>
-+#include <soundtouch/ExtSoundTouch.h>
+-#include <SoundTouch.h>
++#include <ExtSoundTouch.h>

namespace AudioCommon
{
Index: patches/patch-Source_Core_Common_CMakeLists_txt
===================================================================
RCS file: patches/patch-Source_Core_Common_CMakeLists_txt
diff -N patches/patch-Source_Core_Common_CMakeLists_txt
--- patches/patch-Source_Core_Common_CMakeLists_txt 11 Mar 2022 18:59:34 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,14 +0,0 @@
-fmt::fmt => fmt, to use system lib
-
-Index: Source/Core/Common/CMakeLists.txt
---- Source/Core/Common/CMakeLists.txt.orig
-+++ Source/Core/Common/CMakeLists.txt
-@@ -132,7 +132,7 @@ target_link_libraries(common
- PUBLIC
- ${CMAKE_THREAD_LIBS_INIT}
- enet
-- fmt::fmt
-+ fmt
- ${MBEDTLS_LIBRARIES}
-
- PRIVATE
Index: patches/patch-Source_Core_Core_CMakeLists_txt
===================================================================
RCS file: patches/patch-Source_Core_Core_CMakeLists_txt
diff -N patches/patch-Source_Core_Core_CMakeLists_txt
--- patches/patch-Source_Core_Core_CMakeLists_txt 11 Mar 2022 18:59:34 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,12 +0,0 @@
-Index: Source/Core/Core/CMakeLists.txt
---- Source/Core/Core/CMakeLists.txt.orig
-+++ Source/Core/Core/CMakeLists.txt
-@@ -557,7 +557,7 @@ PUBLIC
- videovulkan
-
- PRIVATE
-- fmt::fmt
-+ fmt
- ${LZO}
- ZLIB::ZLIB
- )
Index: patches/patch-Source_Core_Core_ConfigManager_cpp
===================================================================
RCS file: patches/patch-Source_Core_Core_ConfigManager_cpp
diff -N patches/patch-Source_Core_Core_ConfigManager_cpp
--- patches/patch-Source_Core_Core_ConfigManager_cpp 11 Mar 2022 18:59:34 -0000 1.4
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,27 +0,0 @@
-Disable Fastmem by default. This is an option for fast, but unsafe
-memory use by the JIT that triggers SIGSEGV by design that is meant to
-be caught and then replaced by the emulator. However, on OpenBSD this
-just results in segfault on start of dolphin. Therefore set it to
-'false' by default.
-
-Index: Source/Core/Core/ConfigManager.cpp
---- Source/Core/Core/ConfigManager.cpp.orig
-+++ Source/Core/Core/ConfigManager.cpp
-@@ -479,7 +479,7 @@ void SConfig::LoadCoreSettings(IniFile& ini)
- core->Get("CPUCore", &cpu_core, PowerPC::CPUCore::Interpreter);
-

No comments:

Post a Comment