summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author B. Watson2021-02-14 20:46:32 +0100
committer Willy Sudiarto Raharjo2021-02-20 18:05:06 +0100
commitb35748d43b246ecb420d10ccb82061275124a7e4 (patch)
tree7317f7509853cd3f77f6092a9f7f9175d86d8670 /games
parent431a979cbee8f227a9bdf86265383108b9681daf (diff)
downloadslackbuilds-b35748d43b246ecb420d10ccb82061275124a7e4.tar.gz
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 68c6bc6feb..ffa3e095a1 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 \