mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/love-legacy080: Build with luajit (lua 5.4 unsupported).
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
5b5b8034e0
commit
11f0a7cbbf
4 changed files with 5 additions and 18 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
BIN
development/love-legacy080/newmesafix.diff.gz
Normal file
BIN
development/love-legacy080/newmesafix.diff.gz
Normal file
Binary file not shown.
Loading…
Reference in a new issue