aboutsummaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-10-18 00:51:29 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-11-02 19:28:32 +0700
commit65029c7f2a2c8fed5c8613c49580d718d4e10dbf (patch)
tree4ac5c0440250bbede4fe80a784f8b6878c023366 /development
parent9ace335e3dda62826190e58b420bb2267b1d2137 (diff)
development/love-legacy072: Build with luajit (lua 5.4 unsupported).
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r--development/love-legacy072/love-legacy072.SlackBuild8
-rw-r--r--development/love-legacy072/love-legacy072.info2
-rw-r--r--development/love-legacy072/newmesafix.diff15
-rw-r--r--development/love-legacy072/newmesafix.diff.gzbin0 -> 328 bytes
4 files changed, 6 insertions, 19 deletions
diff --git a/development/love-legacy072/love-legacy072.SlackBuild b/development/love-legacy072/love-legacy072.SlackBuild
index 5138a3f66f4f..691fbe3dac18 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.
+# 20241018 bkw: BUILD=2, use luajit instead of lua (also, gzip patch).
# 20210903 bkw: fix build for current/pre15, BUILD=2
cd $(dirname $0) ; CWD=$(pwd)
@@ -67,10 +68,10 @@ rm -rf $SRCNAM-$SRCVER
tar xvf $CWD/$SRCNAM-$VERSION-linux-src.tar.gz
cd $SRCNAM-$SRCVER
chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
-patch -p1 < $CWD/newmesafix.diff
+zcat $CWD/newmesafix.diff.gz | patch -p1
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -82,6 +83,7 @@ CXXFLAGS="$SLKCFLAGS" \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--program-suffix=-0.7.2 \
+ --enable-luajit \
--build=$ARCH-slackware-linux
make
diff --git a/development/love-legacy072/love-legacy072.info b/development/love-legacy072/love-legacy072.info
index 852461e452bf..588c94f0f332 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="lua DevIL physfs libmodplug"
+REQUIRES="luajit DevIL physfs libmodplug"
MAINTAINER="B. Watson"
EMAIL="urchlay@slackware.uk"
diff --git a/development/love-legacy072/newmesafix.diff b/development/love-legacy072/newmesafix.diff
deleted file mode 100644
index c60186cf3518..000000000000
--- a/development/love-legacy072/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 <OpenGL/gl.h>
- #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 <GL/gl.h>
- #include <GL/glx.h>
diff --git a/development/love-legacy072/newmesafix.diff.gz b/development/love-legacy072/newmesafix.diff.gz
new file mode 100644
index 000000000000..2165463929d4
--- /dev/null
+++ b/development/love-legacy072/newmesafix.diff.gz
Binary files differ