games/pioneer: Fix lua build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-02-14 14:46:32 -05:00 committed by Willy Sudiarto Raharjo
parent 431a979cbe
commit b35748d43b
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 12 additions and 1 deletions

View File

@ -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 \