games-emulation/snes9x: Add patch to fix some build failures

Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean 2025-08-15 12:07:55 -07:00
parent e50e5019d8
commit 10df240119
No known key found for this signature in database
GPG Key ID: 953C4CCCF3EEBA80
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,35 @@
diff --git a/external/glslang/SPIRV/SpvBuilder.h b/external/glslang/SPIRV/SpvBuilder.h
index 02e9cf40..f5d9c2c6 100644
--- a/external/glslang/SPIRV/SpvBuilder.h
+++ b/external/glslang/SPIRV/SpvBuilder.h
@@ -61,6 +61,7 @@ namespace spv {
#include <set>
#include <sstream>
#include <stack>
+#include <cstdint>
#include <unordered_map>
#include <map>
diff --git a/unix/Makefile.in b/unix/Makefile.in
index a87cd079..7c78a0a5 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -37,7 +37,7 @@ GASM = @CXX@
INCLUDES += -I. -I.. -I../apu/ -I../apu/bapu -I../jma/ -I../filter/
CCFLAGS = @S9XFLGS@ @S9XDEFS@ $(DEFS)
-CFLAGS = $(CCFLAGS)
+CFLAGS += $(CCFLAGS)
.SUFFIXES: .o .cpp .c .cc .h .m .i .s .obj
diff --git a/gtk/CMakeLists.txt b/gtk/CMakeLists.txt
index 6d13d493..ef56eea2 100644
--- a/gtk/CMakeLists.txt
+++ b/gtk/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.18)
+cmake_minimum_required(VERSION 4.0)
project(snes9x-gtk VERSION 1.63)
option(USE_SLANG "Build support for Vulkan output and .slangp shaders" ON)

View File

@ -72,6 +72,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-1.63-flags.patch
"${FILESDIR}"/${PN}-1.63-optional-wayland.patch
"${FILESDIR}"/${PN}-1.63-vulkan-fix.patch
"${FILESDIR}"/${PN}-1.63-compile.patch
)
pkg_setup() {