From 11f0a7cbbf43a7c20c767b1267391fef98c041b5 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 18 Oct 2024 03:12:03 -0400 Subject: [PATCH] development/love-legacy080: Build with luajit (lua 5.4 unsupported). Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- .../love-legacy080/love-legacy080.SlackBuild | 6 ++++-- development/love-legacy080/love-legacy080.info | 2 +- development/love-legacy080/newmesafix.diff | 15 --------------- development/love-legacy080/newmesafix.diff.gz | Bin 0 -> 328 bytes 4 files changed, 5 insertions(+), 18 deletions(-) delete mode 100644 development/love-legacy080/newmesafix.diff create mode 100644 development/love-legacy080/newmesafix.diff.gz diff --git a/development/love-legacy080/love-legacy080.SlackBuild b/development/love-legacy080/love-legacy080.SlackBuild index 6562b0dd9f..547f32de2d 100644 --- a/development/love-legacy080/love-legacy080.SlackBuild +++ b/development/love-legacy080/love-legacy080.SlackBuild @@ -11,13 +11,14 @@ # #!/usr/bin/env love-0.8.0 # See mari0.SlackBuild for an example. +# 20241018 bkw: BUILD=2, REQUIRES=luajit instead of lua. # 20210903 bkw: fix build for current/pre15. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=love-legacy080 VERSION=${VERSION:-0.8.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -67,7 +68,7 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # this is the same patch as love-legacy072 -patch -p1 < $CWD/newmesafix.diff +zcat $CWD/newmesafix.diff.gz | patch -p1 CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -79,6 +80,7 @@ CXXFLAGS="$SLKCFLAGS" \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ --program-suffix=-0.8.0 \ + --with-luajit \ --build=$ARCH-slackware-linux make diff --git a/development/love-legacy080/love-legacy080.info b/development/love-legacy080/love-legacy080.info index 222a7229c4..9e88a5efe5 100644 --- a/development/love-legacy080/love-legacy080.info +++ b/development/love-legacy080/love-legacy080.info @@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/love2d/love/releases/download/0.8.0/love-0.8.0-linu MD5SUM="9db9c32585fc7c7da3eba7e438783099" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="lua DevIL physfs libmodplug" +REQUIRES="luajit DevIL physfs libmodplug" MAINTAINER="B. Watson" EMAIL="urchlay@slackware.uk" diff --git a/development/love-legacy080/newmesafix.diff b/development/love-legacy080/newmesafix.diff deleted file mode 100644 index c60186cf35..0000000000 --- a/development/love-legacy080/newmesafix.diff +++ /dev/null @@ -1,15 +0,0 @@ -diff -Naur love-HEAD/src/modules/graphics/opengl/GLee.h love-HEAD.patched/src/modules/graphics/opengl/GLee.h ---- love-HEAD/src/modules/graphics/opengl/GLee.h 2011-05-04 12:00:10.000000000 -0400 -+++ love-HEAD.patched/src/modules/graphics/opengl/GLee.h 2021-09-03 14:16:42.123563880 -0400 -@@ -62,8 +62,9 @@ - #define GL_GLEXT_LEGACY - #include - #else // GLX -- #define __glext_h_ /* prevent glext.h from being included */ -- #define __glxext_h_ /* prevent glxext.h from being included */ -+ #define GL_GLEXT_LEGACY -+ #define GLX_GLEXT_LEGACY -+ #define GLX_GLXEXT_LEGACY - #define GLX_GLXEXT_PROTOTYPES - #include - #include diff --git a/development/love-legacy080/newmesafix.diff.gz b/development/love-legacy080/newmesafix.diff.gz new file mode 100644 index 0000000000000000000000000000000000000000..a540daf5ed40184370f0f3aee1066bf5e1136089 GIT binary patch literal 328 zcmV-O0k{4iiwFoqP5@^D18!w^ZDn&|W@&gXWNBt*0G*IcZ-PJ&hR>4tA12`@U3M4H zC}|o@OXz_V(|W)Yu`qljD-ck_&+lp^tu+0d!yMjs=9%3$Dbf_k)ArDSsE$Y;-Q@#q zo0#sZCBwZd${8OnHe{8&}3hL<0x<{HNmtf z5j;Qgd^cQ2zUwXTH)91xYEj1GkRaR!@|x$