Ports: Update brogue's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-16 19:21:29 +04:30 committed by Ali Mohammad Pur
parent 3a7d5ca469
commit 8b9302890e
4 changed files with 58 additions and 25 deletions

View file

@ -0,0 +1,23 @@
From c0fa4cf699ff2f02d9f976deed689d968093313c Mon Sep 17 00:00:00 2001
From: nooga <xnooga@gmail.com>
Date: Sat, 15 May 2021 01:21:59 +0200
Subject: [PATCH 1/2] Install the game data to /usr/local
---
config.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config.mk b/config.mk
index b33967b..9655958 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
# Where to look for game data files (found in 'bin'). Must be without trailing slashes!
-DATADIR := .
+DATADIR := /usr/local/share/games/brogue
# Include terminal support. Requires ncurses
TERMINAL := NO
--
2.36.1

View file

@ -0,0 +1,25 @@
From f74e17de5c426ae49522008cb5b5d24571345630 Mon Sep 17 00:00:00 2001
From: nooga <xnooga@gmail.com>
Date: Sat, 15 May 2021 01:21:59 +0200
Subject: [PATCH 2/2] Use pkg-config for SDL2
---
config.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config.mk b/config.mk
index 9655958..0ce2e55 100644
--- a/config.mk
+++ b/config.mk
@@ -7,7 +7,7 @@ TERMINAL := NO
# Include graphical support. Requires SDL2 and SDL2_image
GRAPHICS := YES
# Path to sdl2-config script
-SDL_CONFIG := sdl2-config
+SDL_CONFIG := pkg-config sdl2
# Select web brogue mode. Requires POSIX system.
WEBBROGUE := NO
--
2.36.1

View file

@ -1,5 +1,12 @@
# Patches for brogue
# Patches for brogue on SerenityOS
## `0001-Install-the-game-data-to-usr-local.patch`
Install the game data to /usr/local
## `0002-Use-pkg-config-for-SDL2.patch`
Use pkg-config for SDL2
## `config.patch`
Switches the DATADIR to the installed directory.

View file

@ -1,22 +0,0 @@
:100644 100644 0000000000 0000000000 M config.mk.orig
diff --git a/config.mk.orig b/config.mk
index b33967bf2c..d2b07a8ade 100644
--- a/config.mk.orig
+++ b/config.mk
@@ -1,5 +1,5 @@
# Where to look for game data files (found in 'bin'). Must be without trailing slashes!
-DATADIR := .
+DATADIR := /usr/local/share/games/brogue
# Include terminal support. Requires ncurses
TERMINAL := NO
@@ -7,7 +7,7 @@ TERMINAL := NO
# Include graphical support. Requires SDL2 and SDL2_image
GRAPHICS := YES
# Path to sdl2-config script
-SDL_CONFIG := sdl2-config
+SDL_CONFIG := pkg-config sdl2
# Select web brogue mode. Requires POSIX system.
WEBBROGUE := NO