aboutsummaryrefslogtreecommitdiff
path: root/development/love-legacy072
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-09-03 14:23:58 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:57 +0700
commit0d7fd097aac74b1cbcece672608140e9c74b963f (patch)
treedf5c9c7469473bdda4a002ce094c09735278b32e /development/love-legacy072
parent5a109fd48ac3b74274bca1eb047604c5aa785363 (diff)
development/love-legacy072: Fix -current build.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/love-legacy072')
-rw-r--r--development/love-legacy072/love-legacy072.SlackBuild18
-rw-r--r--development/love-legacy072/love-legacy072.info2
-rw-r--r--development/love-legacy072/newmesafix.diff15
3 files changed, 25 insertions, 10 deletions
diff --git a/development/love-legacy072/love-legacy072.SlackBuild b/development/love-legacy072/love-legacy072.SlackBuild
index 03d26ef7e78c..80edad1cbcd4 100644
--- a/development/love-legacy072/love-legacy072.SlackBuild
+++ b/development/love-legacy072/love-legacy072.SlackBuild
@@ -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" \
diff --git a/development/love-legacy072/love-legacy072.info b/development/love-legacy072/love-legacy072.info
index 15c0fad7e685..822121863211 100644
--- a/development/love-legacy072/love-legacy072.info
+++ b/development/love-legacy072/love-legacy072.info
@@ -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=""
diff --git a/development/love-legacy072/newmesafix.diff b/development/love-legacy072/newmesafix.diff
new file mode 100644
index 000000000000..c60186cf3518
--- /dev/null
+++ b/development/love-legacy072/newmesafix.diff
@@ -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>