summaryrefslogtreecommitdiff
path: root/app-emulation/punes
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/punes')
-rw-r--r--app-emulation/punes/Manifest3
-rw-r--r--app-emulation/punes/files/punes-0.111-FULLSCREEN_RESFREQ-fix.patch33
-rw-r--r--app-emulation/punes/punes-0.111.ebuild4
3 files changed, 39 insertions, 1 deletions
diff --git a/app-emulation/punes/Manifest b/app-emulation/punes/Manifest
index 92377d5f9efe..7a88264fcff9 100644
--- a/app-emulation/punes/Manifest
+++ b/app-emulation/punes/Manifest
@@ -1,3 +1,4 @@
+AUX punes-0.111-FULLSCREEN_RESFREQ-fix.patch 985 BLAKE2B b68b81b68eabcab5af17a2a9852eb542f4b81866de94552fd0d12b45b72effaf7bb197bf87e083126dd30a0d757774fbdcbe579c73087e5214968c8c7d240ada SHA512 70a868177c62fc9f03332995104cc72dedef83d75524f53c3c057ac3ccbc8c0e667d33e5eee9a53a8bbe63e5bffbe7335e27c7e361b988b7ce91cbbc5b00551a
DIST punes-0.111.tar.gz 57538299 BLAKE2B a900fe2bc9117e6739e58a43e457bfa466053d5a96ae5ad1333d7e0bc11eafb2408a96dc7e35ddf1a3cee50cafe99549a43d2abb629b106bbb1082878a845cc6 SHA512 6388cdf2b303e217adfe43b1b3b1ef66a75b6adfdb0363b213c47fc129b5815f3e96814ee25a3637147dc184203cef0438930c280f0c6249085ecac1220b435c
-EBUILD punes-0.111.ebuild 1209 BLAKE2B d26e08ca07c1e628d08a6b9f77ef857416ad1c74ec7fdc007b8a05e4b19c83c35b2f73148d79453151a1b619aa8d53285a903b2ffb46ad0fb49b515c622776b0 SHA512 2f2bbc3f4629c8e0cff7aa50bdb8ee1f523144d91163def6d6a6dd9dc443836dcaef14d29b126a2b7e8c9881034b272034873903520769104b58522a952d6307
+EBUILD punes-0.111.ebuild 1278 BLAKE2B 8e691c404eb60562ace44fe9162258e62dbe786e651e7926305da14c6cdfefef9671d8816a2cf767660d5d748ad9d1d3742f56286c7cd222db53d13679390b46 SHA512 9cadbd208979488347ad552274afc79a65eaa62bbaf9e626e83a5b89153188c5b0e7e98b840b0259d468e40ed12d1d2f1db3d7a2a5871d565f563a7962f43de1
MISC metadata.xml 560 BLAKE2B ea221c8fefa3fc3e9f8942ae7cfd642384cde9ec10949bc148e17727e0633f718140fa15675a3268674c80e6b55177ff5573460abd687bc76420673f76aecc8a SHA512 7676ca51eb1d02c6564dfd9ef47975f349856ae9536e3f1d9771bf4c56a2aebe86622461ae50b5989c56fffa1cfa92fc6185f1d62d933c4db5016acc4c280a8f
diff --git a/app-emulation/punes/files/punes-0.111-FULLSCREEN_RESFREQ-fix.patch b/app-emulation/punes/files/punes-0.111-FULLSCREEN_RESFREQ-fix.patch
new file mode 100644
index 000000000000..065483ad058f
--- /dev/null
+++ b/app-emulation/punes/files/punes-0.111-FULLSCREEN_RESFREQ-fix.patch
@@ -0,0 +1,33 @@
+From e1516fcefe3dcc9710ae85cce0f536fd2d9fdcd6 Mon Sep 17 00:00:00 2001
+From: Fabio Cavallo <punes.development@gmail.com>
+Date: Sat, 23 Mar 2024 10:34:34 +0100
+Subject: [PATCH] Fixed compilation with FULLSCREEN_RESFREQ disabled (#388).
+
+--- a/src/core/emu.c
++++ b/src/core/emu.c
+@@ -43,11 +43,11 @@
+ #include "recent_roms.h"
+ #include "../../c++/crc/crc.h"
+ #include "gui.h"
++#include "nes20db.h"
+ #include "video/effects/pause.h"
+ #include "video/effects/tv_noise.h"
+ #if defined (FULLSCREEN_RESFREQ)
+ #include "video/gfx_monitor.h"
+-#include "nes20db.h"
+ #endif
+
+ #define RS_SCALE (1.0f / (1.0f + (float)RAND_MAX))
+--- a/src/gui/wdgOverlayUi.cpp
++++ b/src/gui/wdgOverlayUi.cpp
+@@ -34,9 +34,9 @@
+ #include "rewind.h"
+ #include "version.h"
+ #include "nes.h"
++#include "input/standard_controller.h"
+ #if defined (FULLSCREEN_RESFREQ)
+ #include "video/gfx_monitor.h"
+-#include "input/standard_controller.h"
+ #endif
+
+ void overlay_info_append_qstring(BYTE alignment, const QString &msg);
diff --git a/app-emulation/punes/punes-0.111.ebuild b/app-emulation/punes/punes-0.111.ebuild
index 16b8811e4a80..03071411bec5 100644
--- a/app-emulation/punes/punes-0.111.ebuild
+++ b/app-emulation/punes/punes-0.111.ebuild
@@ -46,6 +46,10 @@ BDEPEND="
qt6? ( dev-qt/qttools[linguist] )
!qt6? ( dev-qt/linguist-tools:5 )"
+PATCHES=(
+ "${FILESDIR}/punes-0.111-FULLSCREEN_RESFREQ-fix.patch"
+)
+
src_configure() {
local mycmakeargs=(
-DENABLE_GIT_INFO=OFF