forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ports: Add port for Brogue (BrogueCE)
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env -S bash ../.port_include.sh | ||
port=brogue | ||
depends="SDL2 SDL2_image" | ||
version=1.9.3 | ||
workdir="BrogueCE-${version}" | ||
files="https://github.com/tmewett/BrogueCE/archive/refs/tags/v${version}.tar.gz brogue.tar.gz 441182916a16114bedfee614b09a198b4877a25db2544c5e087c86038aae2452" | ||
auth_type=sha256 | ||
makeopts="bin/brogue" | ||
|
||
install() { | ||
datadir="$SERENITY_INSTALL_ROOT/usr/local/share/games/brogue/assets" | ||
mkdir -p "${SERENITY_INSTALL_ROOT}/usr/local/bin" | ||
mkdir -p $datadir | ||
cp $workdir/bin/assets/* $datadir | ||
cp "${workdir}/bin/brogue" "${SERENITY_INSTALL_ROOT}/usr/local/bin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
: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 |