aboutsummaryrefslogtreecommitdiff
path: root/games/rogue
diff options
context:
space:
mode:
authorpghvlaans <74497663+pghvlaans@users.noreply.github.com>2021-04-30 15:06:39 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-05-02 17:21:05 +0700
commitfa03de9437ee82c1698255653f67a76a488c322d (patch)
treeb164c7351f47fd912f86bb490041ea2a2c32bcb0 /games/rogue
parent130594c2e1c46c5920dedccfef24e19ad56c2c56 (diff)
games/rogue: Fix build failure with latest ncurses.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/rogue')
-rw-r--r--games/rogue/ncurses.patch10
-rw-r--r--games/rogue/rogue.SlackBuild3
2 files changed, 13 insertions, 0 deletions
diff --git a/games/rogue/ncurses.patch b/games/rogue/ncurses.patch
new file mode 100644
index 000000000000..b0e873591499
--- /dev/null
+++ b/games/rogue/ncurses.patch
@@ -0,0 +1,10 @@
+--- ./mdport.c 2016-07-23 11:24:54.000000000 +0900
++++ ./mdport.c 2021-04-10 21:46:28.000004331 +0900
+@@ -84,6 +84,7 @@
+ #include <curses.h> /* AIX requires curses.h be included before term.h */
+
+ #if defined(HAVE_TERM_H)
++#define NCURSES_INTERNALS
+ #include <term.h>
+ #elif defined(HAVE_NCURSES_TERM_H)
+ #include <ncurses/term.h>
diff --git a/games/rogue/rogue.SlackBuild b/games/rogue/rogue.SlackBuild
index a175d9f61a4a..ac909bfe1ffb 100644
--- a/games/rogue/rogue.SlackBuild
+++ b/games/rogue/rogue.SlackBuild
@@ -69,6 +69,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Patching for ncurses include statement
+patch -p1 < $CWD/ncurses.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \