summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author rc_052024-04-17 16:51:44 +0200
committer Willy Sudiarto Raharjo2024-04-19 16:32:42 +0200
commite9d0a98dab38b73d501ec5687309ef7cf1331a31 (patch)
tree72e20fae4b81d09e78d4826094fdf4e4a8826d4d
parentb713867fb73ed493b07339768a076ce86ae8d01c (diff)
downloadslackbuilds-e9d0a98dab38b73d501ec5687309ef7cf1331a31.tar.gz
libraries/raylib: Updated for version 5.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--libraries/raylib/README8
-rw-r--r--libraries/raylib/raylib.SlackBuild14
-rw-r--r--libraries/raylib/raylib.info10
3 files changed, 18 insertions, 14 deletions
diff --git a/libraries/raylib/README b/libraries/raylib/README
index 594b0b4a6b..f8da3e89dd 100644
--- a/libraries/raylib/README
+++ b/libraries/raylib/README
@@ -2,8 +2,8 @@ raylib is a simple and easy-to-use library to enjoy videogames
programming and it is highly inspired by Borland BGI graphics lib
and by XNA framework.
-Wayland support can be enabled with WAYLAND=ON when building the
-package.
+Set JARXM_LINEAR_INTERPOLATION=1 to patch jarxm to use linear
+interpolation instead of no interpolation when playing back XM
+(FastTracker II) music modules.
-Set GLFW=ON to use a system-wide installation of GLFW instead
-of raylib's bundled one.
+Set WAYLAND=1 to make Raylib work on Wayland instead of X11.
diff --git a/libraries/raylib/raylib.SlackBuild b/libraries/raylib/raylib.SlackBuild
index ced5ee1f3c..73efeb0417 100644
--- a/libraries/raylib/raylib.SlackBuild
+++ b/libraries/raylib/raylib.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for raylib
-# Copyright 2022-2023 rc-05 <rc_o5@protonmail.com>
+# Copyright 2024 rc_05 <contact@rc-05.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=raylib
-VERSION=${VERSION:-4.5.0}
+VERSION=${VERSION:-5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -47,6 +47,9 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+JARXM_LINEAR_INTERPOLATION=${JARXM_LINEAR_INTERPOLATION:-0}
+WAYLAND=${WAYLAND:-0}
+
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -76,7 +79,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-patch -d src < $CWD/jarxm_linear_interpolation.patch
+if [ $JARXM_LINEAR_INTERPOLATION -eq 1 ]; then
+ patch -d src < $CWD/jarxm_linear_interpolation.patch
+fi
mkdir -p build
cd build
@@ -86,8 +91,7 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
- -DUSE_EXTERNAL_GLFW=${GLFW:-OFF} \
- -DUSE_WAYLAND=${WAYLAND:-OFF} \
+ -DUSE_WAYLAND=`[[ $WAYLAND -eq 1 ]] && echo "ON" || echo "OFF"` \
-DBUILD_EXAMPLES=OFF ..
make RAYLIB_MODULE_RAYGUI=TRUE
make install DESTDIR=$PKG
diff --git a/libraries/raylib/raylib.info b/libraries/raylib/raylib.info
index e5566592be..eb78b09007 100644
--- a/libraries/raylib/raylib.info
+++ b/libraries/raylib/raylib.info
@@ -1,10 +1,10 @@
PRGNAM="raylib"
-VERSION="4.5.0"
+VERSION="5.0"
HOMEPAGE="https://raylib.com/"
-DOWNLOAD="https://github.com/raysan5/raylib/archive/refs/tags/4.5.0/raylib-4.5.0.tar.gz"
-MD5SUM="feb608a91e27f71f9b33f0073177b1ee"
+DOWNLOAD="https://github.com/raysan5/raylib/archive/refs/tags/5.0/raylib-5.0.tar.gz"
+MD5SUM="6d855d7bd87b506eb58308d4ed67ab97"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="rc-05"
-EMAIL="rc_o5@protonmail.com"
+MAINTAINER="rc_05"
+EMAIL="contact@rc-05.com"