From e9d0a98dab38b73d501ec5687309ef7cf1331a31 Mon Sep 17 00:00:00 2001 From: rc_05 Date: Wed, 17 Apr 2024 21:51:44 +0700 Subject: libraries/raylib: Updated for version 5.0. Signed-off-by: Willy Sudiarto Raharjo --- libraries/raylib/README | 8 ++++---- libraries/raylib/raylib.SlackBuild | 14 +++++++++----- libraries/raylib/raylib.info | 10 +++++----- 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 +# Copyright 2024 rc_05 # 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" -- cgit v1.2.3