aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-02-14 14:46:32 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-02-21 00:05:06 +0700
commitb35748d43b246ecb420d10ccb82061275124a7e4 (patch)
tree7317f7509853cd3f77f6092a9f7f9175d86d8670 /games
parent431a979cbee8f227a9bdf86265383108b9681daf (diff)
games/pioneer: Fix lua build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/pioneer/pioneer.SlackBuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/games/pioneer/pioneer.SlackBuild b/games/pioneer/pioneer.SlackBuild
index 68c6bc6feb8c..ffa3e095a110 100644
--- a/games/pioneer/pioneer.SlackBuild
+++ b/games/pioneer/pioneer.SlackBuild
@@ -81,12 +81,23 @@ GLEW=OFF
LUA=OFF
pkg-config --exists glew && GLEW=ON
-pkg-config --exists lua5.2 && LUA=ON
+
+# 20210214 bkw: cmake can't easily be told to ignore lua 5.1 on a
+# system where both 5.1 and 5.2 are installed. In that case, we'll
+# use the bundled lua source. Note that there's no problem with 5.3,
+# as cmake seems to search for them in order.
+pkg-config --exists lua5.2 && ! pkg-config --exists lua && LUA=ON
# Workaround 32-bit build failure
# https://github.com/pioneerspacesim/pioneer/issues/4691
patch -p1 < $CWD/alignment.patch
+# 20210214 bkw: prevent the build from writing to /root/, without
+# breaking ccache if it's in use.
+mkdir -p tmphome
+export CCACHE_DIR=${CCACHE_DIR:-$HOME/.ccache}
+export HOME=$( pwd )/tmphome
+
mkdir -p build
cd build
cmake \