diff --git a/emulators/flycast/Makefile b/emulators/flycast/Makefile index 2366f019499b..770d580c03ca 100644 --- a/emulators/flycast/Makefile +++ b/emulators/flycast/Makefile @@ -1,67 +1,67 @@ PORTNAME= flycast DISTVERSIONPREFIX= v DISTVERSION= 2.5 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= emulators MAINTAINER= bsdcode@disroot.org COMMENT= Multi-platform Sega Dreamcast emulator WWW= https://github.com/flyinghead/flycast LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= asio>0:net/asio LIB_DEPENDS= libchdr.so:devel/libchdr \ libcurl.so:ftp/curl \ libminiupnpc.so:net/miniupnpc \ libzip.so:archivers/libzip USES= cmake compiler:c++20-lang pkgconfig sdl USE_GITHUB= yes GH_ACCOUNT= flyinghead GH_TUPLE= vinniefalco:LuaBridge:5d21e35633a1f87ed08af115b07d3386096f792b:LuaBridge/core/deps/luabridge \ GPUOpen-LibrariesAndSDKs:VulkanMemoryAllocator:6eb62e1515072827db992c2befd80b71b2d04329:VulkanMemoryAllocator/core/deps/VulkanMemoryAllocator \ RetroAchievements:rcheevos:563230b1c249774b4852c944dc7cdcb952c9e8e8:rcheevos/core/deps/rcheevos USE_SDL= sdl2 CMAKE_ON= USE_HOST_LIBCHDR OPTIONS_DEFINE= DOCS LUA OPENMP VULKAN OPTIONS_DEFAULT= ALSA AO LUA OPENMP OSS VULKAN OPTIONS_GROUP= AUDIO OPTIONS_GROUP_AUDIO= ALSA AO OSS PULSEAUDIO # building with lua support fails on i386, see also # https://github.com/vinniefalco/LuaBridge/issues/302 OPTIONS_EXCLUDE_i386= LUA VULKAN_DESC= Build with Vulkan support ALSA_LIB_DEPENDS= libasound.so:audio/alsa-lib ALSA_CMAKE_BOOL= USE_ALSA AO_LIB_DEPENDS= libao.so:audio/libao AO_CMAKE_BOOL= USE_LIBAO LUA_USES= lua:52+ LUA_CMAKE_BOOL= USE_LUA OPENMP_CMAKE_BOOL= USE_OPENMP OSS_CMAKE_BOOL= USE_OSS PULSEAUDIO_LIB_DEPENDS= libpulse.so:audio/pulseaudio PULSEAUDIO_CMAKE_BOOL= USE_PULSEAUDIO VULKAN_BUILD_DEPENDS= glslang>0:graphics/glslang \ vulkan-headers>0:graphics/vulkan-headers VULKAN_CMAKE_BOOL= USE_HOST_GLSLANG \ USE_VULKAN post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} (cd ${WRKSRC}/docs && \ ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}) .include diff --git a/emulators/flycast/files/patch-core_network_dcnet.cpp b/emulators/flycast/files/patch-core_network_dcnet.cpp new file mode 100644 index 000000000000..cf7c76d929cf --- /dev/null +++ b/emulators/flycast/files/patch-core_network_dcnet.cpp @@ -0,0 +1,38 @@ +--- core/network/dcnet.cpp.orig 2025-07-18 15:30:48 UTC ++++ core/network/dcnet.cpp +@@ -222,7 +222,7 @@ class EthSocket (private) + } + + private: +- using iterator = asio::buffers_iterator; ++ using iterator = asio::buffers_iterator; + + std::pair + static packetMatcher(iterator begin, iterator end) +@@ -502,7 +502,7 @@ class AccessPointFinder (private) + { + std::error_code e; + socket.close(e); +- timer.cancel(e); ++ timer.cancel(); + if (ec) { + handler(ec, {}, {}); + } +@@ -584,7 +584,7 @@ class DCNetThread (public) + { + if (io_context == nullptr || pppSocket == nullptr) + return; +- io_context->post([this, v]() { ++ asio::post([this, v]() { + pppSocket->send(v); + }); + } +@@ -593,7 +593,7 @@ class DCNetThread (public) + if (io_context != nullptr && ethSocket != nullptr) + { + std::vector vbuf(frame, frame + len); +- io_context->post([this, vbuf]() { ++ asio::post([this, vbuf]() { + ethSocket->send(vbuf.data(), vbuf.size()); + }); + }