aboutsummaryrefslogtreecommitdiff
path: root/games/bstone
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-06-21 16:46:03 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-06-24 08:32:52 +0700
commita27a0e4bbaf339793ea1ce99df6b8337d7cb8dbc (patch)
treed62b2ddd147cf7732ecc9c0e7d46d3672f028c46 /games/bstone
parentdf8c4bbc9535d54b46d56fa9a61c31c733a82547 (diff)
games/bstone: Fix build for -current.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/bstone')
-rw-r--r--games/bstone/bstone.SlackBuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/games/bstone/bstone.SlackBuild b/games/bstone/bstone.SlackBuild
index 07a36fa60d24..d64d16cdf4c7 100644
--- a/games/bstone/bstone.SlackBuild
+++ b/games/bstone/bstone.SlackBuild
@@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20170621 bkw: fix build on -current
+
PRGNAM=bstone
VERSION=${VERSION:-1.1.7}
BUILD=${BUILD:-1}
@@ -53,6 +55,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# fix a missing include, needed for gcc7
+sed -i '1i#include <memory>' bstone_memory_binary_reader.cpp
+
# look in /usr/share/games/bstone for game data files, not the
# directory the executable lives in. the --data_dir option can
# still override this.