development/love-legacy072: Fix -current build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2021-09-03 14:23:58 -04:00 committed by Willy Sudiarto Raharjo
parent 5a109fd48a
commit 0d7fd097aa
No known key found for this signature in database
GPG key ID: 3F617144D7238786
3 changed files with 25 additions and 10 deletions

View file

@ -6,16 +6,20 @@
# Modified for 0.7.2 legacy version by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# If you're packaging up a LÖVE game that needs this version (won't work
# with 0.8), make sure the shebang line in the .love file says:
# #!/usr/bin/env love-0.7.2
# See notpacman.SlackBuild for an example.
# 20210903 bkw: fix build for current/pre15, BUILD=2
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=love-legacy072
VERSION=${VERSION:-0.7.2}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -27,9 +31,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -66,11 +67,10 @@ rm -rf $SRCNAM-$SRCVER
tar xvf $CWD/$SRCNAM-$VERSION-linux-src.tar.gz
cd $SRCNAM-$SRCVER
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -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
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \

View file

@ -1,6 +1,6 @@
PRGNAM="love-legacy072"
VERSION="0.7.2"
HOMEPAGE="http://love2d.org"
HOMEPAGE="https://love2d.org"
DOWNLOAD="https://github.com/love2d/love/releases/download/0.7.2/love-0.7.2-linux-src.tar.gz"
MD5SUM="c3e678606bb9a870c31168e85b269e7e"
DOWNLOAD_x86_64=""

View file

@ -0,0 +1,15 @@
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>