games/meandmyshadow: 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 16:03:41 -05:00 committed by Willy Sudiarto Raharjo
parent b35748d43b
commit c90a8578ff
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 30 additions and 4 deletions

View file

@ -1,3 +1,5 @@
A puzzle/plateform game with a player and its shadow.
A puzzle/platform game with a player and its shadow.
Optional: lua53
Optional: lua53 can be used in place of lua52. If you have both
installed, lua53 will be used unless you export LUAVER="5.2" in the
environment.

View file

@ -22,6 +22,9 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20210214 bkw: Modified by SlackBuilds.org to allow building on a
# system that has both lua and lua52 (or lua53) installed.
PRGNAM=meandmyshadow
VERSION=${VERSION:-0.5a}
BUILD=${BUILD:-1}
@ -56,6 +59,23 @@ fi
set -e
# 20210214 bkw: cmake can't be told to ignore lua-5.1 when both 5.1
# and 5.2 are installed, so help it out a little. LUAVER is used in
# the cmake command, below.
if [ -z "$LUAVER" ]; then
if [ -x /usr/bin/lua5.3 ]; then
LUAVER=5.3
elif [ -x /usr/bin/lua5.2 ]; then
LUAVER=5.2
fi
fi
case "$LUAVER" in
5.[23]) ;; # OK
*) echo "$0: No supported lua version found, install lua52 or lua53." 2>&1
exit 0 ;;
esac
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@ -75,6 +95,10 @@ sed -i 's/\r//' docs/ThemeDescription.md
mkdir -p build
cd build
cmake -G "Unix Makefiles" \
-DLUA_FOUND=ON \
-DLUA_LIBRARY="/usr/lib$LIBDIRSUFFIX/liblua$LUAVER.so" \
-DLUA_INCLUDE_DIR="/usr/include/lua$LUAVER" \
-DLUA_MATH_LIBRARY="/usr/lib$LIBDIRSUFFIX/libm.so" \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DBINDIR=/usr/games \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \

View file

@ -6,9 +6,9 @@
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
meandmyshadow: meandmyshadow (puzzle/plateform game)
meandmyshadow: meandmyshadow (puzzle/platform game)
meandmyshadow:
meandmyshadow: A puzzle/plateform game with a player and its shadow.
meandmyshadow: A puzzle/platform game with a player and its shadow.
meandmyshadow:
meandmyshadow: Homepage: http://meandmyshadow.sourceforge.net/
meandmyshadow: