aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-11-07 02:07:57 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-16 16:41:15 +0700
commite641024d68f99f5ba600b34b8e580b9e324dc52c (patch)
tree9f859fc214d81c7ceee9a4e201651991d25e0343
parentd952a76370ad7ff209b60483d8f0c5b990bb7a29 (diff)
development/love-legacy072: Build with lua51.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/love-legacy072/love-legacy072.SlackBuild8
-rw-r--r--development/love-legacy072/love-legacy072.info2
2 files changed, 7 insertions, 3 deletions
diff --git a/development/love-legacy072/love-legacy072.SlackBuild b/development/love-legacy072/love-legacy072.SlackBuild
index 691fbe3dac187..28bce23f58098 100644
--- a/development/love-legacy072/love-legacy072.SlackBuild
+++ b/development/love-legacy072/love-legacy072.SlackBuild
@@ -13,6 +13,7 @@
# #!/usr/bin/env love-0.7.2
# See notpacman.SlackBuild for an example.
+# 20241107 bkw: BUILD=3, use lua51 (because this won't build with luajit-2.1.x)
# 20241018 bkw: BUILD=2, use luajit instead of lua (also, gzip patch).
# 20210903 bkw: fix build for current/pre15, BUILD=2
@@ -20,7 +21,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=love-legacy072
VERSION=${VERSION:-0.7.2}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -73,6 +74,9 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
zcat $CWD/newmesafix.diff.gz | patch -p1
+SLKCFLAGS+=" $(pkg-config --cflags lua51)"
+
+LDFLAGS="$(pkg-config --libs lua51)" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
@@ -83,7 +87,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--program-suffix=-0.7.2 \
- --enable-luajit \
+ --disable-luajit \
--build=$ARCH-slackware-linux
make
diff --git a/development/love-legacy072/love-legacy072.info b/development/love-legacy072/love-legacy072.info
index 588c94f0f332e..2b317cd5df20d 100644
--- a/development/love-legacy072/love-legacy072.info
+++ b/development/love-legacy072/love-legacy072.info
@@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/love2d/love/releases/download/0.7.2/love-0.7.2-linu
MD5SUM="c3e678606bb9a870c31168e85b269e7e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="luajit DevIL physfs libmodplug"
+REQUIRES="lua51 DevIL physfs libmodplug"
MAINTAINER="B. Watson"
EMAIL="urchlay@slackware.uk"