mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
Ports: Update SDLPoP's patches to use git patches
This commit is contained in:
parent
98260975c0
commit
e24b55db8c
7 changed files with 111 additions and 42 deletions
31
Ports/SDLPoP/patches/0004-Fix-SDL2-include-path.patch
Normal file
31
Ports/SDLPoP/patches/0004-Fix-SDL2-include-path.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
From ddde9196a6a165ff06ac725c567f7e9aebe1d4a8 Mon Sep 17 00:00:00 2001
|
||||
From: Gunnar Beutner <gunnar@beutner.name>
|
||||
Date: Mon, 19 Apr 2021 16:17:10 +0200
|
||||
Subject: [PATCH 4/4] Fix SDL2 include path
|
||||
|
||||
SDL2 headers are installed into /usr/local under SDL2, make it so
|
||||
they're found.
|
||||
---
|
||||
src/CMakeLists.txt | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 3558a6c..d074e48 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -14,10 +14,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${SDLPoP_SOURCE_DIR}/..")
|
||||
|
||||
# On macOS, if you used Homebrew to install SDL2, the location may be something like this:
|
||||
|
||||
-#set(SDL2 "/usr/local/Cellar/sdl2/2.0.5")
|
||||
+set(SDL2 "/usr/local")
|
||||
|
||||
if (NOT(WIN32) AND (DEFINED SDL2))
|
||||
- include_directories(${SDL2}/include)
|
||||
+ include_directories(${SDL2}/include/SDL2)
|
||||
link_directories(${SDL2}/lib)
|
||||
endif()
|
||||
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue