development/love-legacy080: Build with lua51.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-11-07 02:10:51 -05:00 committed by Willy Sudiarto Raharjo
parent e641024d68
commit d7f3b75091
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -11,6 +11,7 @@
# #!/usr/bin/env love-0.8.0
# See mari0.SlackBuild for an example.
# 20241107 bkw: BUILD=3, use lua51 (because this won't build with luajit-2.1.x)
# 20241018 bkw: BUILD=2, REQUIRES=luajit instead of lua.
# 20210903 bkw: fix build for current/pre15.
@ -18,7 +19,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=love-legacy080
VERSION=${VERSION:-0.8.0}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -70,6 +71,9 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
# this is the same patch as love-legacy072
zcat $CWD/newmesafix.diff.gz | patch -p1
SLKCFLAGS+=" $(pkg-config --cflags lua51)"
LDFLAGS="$(pkg-config --libs lua51)" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@ -80,7 +84,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--program-suffix=-0.8.0 \
--with-luajit \
--without-luajit \
--build=$ARCH-slackware-linux
make