summaryrefslogtreecommitdiffstats
path: root/libraries/raylib
diff options
context:
space:
mode:
author rc-05 <rc_o5@protonmail.com>2023-07-21 21:57:08 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2023-07-21 21:57:08 +0700
commit7c2bc871204b79d6c42363b7b6ad4f67608b3e25 (patch)
tree1cf5f84ae9bb7bd1b11bc05064e241d35c50db13 /libraries/raylib
parentf1876b8c3620ff811f39312623aeba2368c44cd0 (diff)
downloadslackbuilds-7c2bc871204b79d6c42363b7b6ad4f67608b3e25.tar.gz
slackbuilds-7c2bc871204b79d6c42363b7b6ad4f67608b3e25.tar.xz
libraries/raylib: Updated for version 4.5.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/raylib')
-rw-r--r--libraries/raylib/README5
-rw-r--r--libraries/raylib/raylib.SlackBuild12
-rw-r--r--libraries/raylib/raylib.info8
3 files changed, 16 insertions, 9 deletions
diff --git a/libraries/raylib/README b/libraries/raylib/README
index ae541fd1b1..594b0b4a6b 100644
--- a/libraries/raylib/README
+++ b/libraries/raylib/README
@@ -2,5 +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=yes when building the
+Wayland support can be enabled with WAYLAND=ON when building the
package.
+
+Set GLFW=ON to use a system-wide installation of GLFW instead
+of raylib's bundled one.
diff --git a/libraries/raylib/raylib.SlackBuild b/libraries/raylib/raylib.SlackBuild
index 32b5495d2b..ced5ee1f3c 100644
--- a/libraries/raylib/raylib.SlackBuild
+++ b/libraries/raylib/raylib.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for raylib
-# Copyright 2022 rc-05 <rc_o5@protonmail.com>
+# Copyright 2022-2023 rc-05 <rc_o5@protonmail.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.2.0}
+VERSION=${VERSION:-4.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -86,8 +86,8 @@ cd build
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
- -DUSE_EXTERNAL_GLFW=IF_POSSIBLE \
- -DUSE_WAYLAND=${WAYLAND:-no} \
+ -DUSE_EXTERNAL_GLFW=${GLFW:-OFF} \
+ -DUSE_WAYLAND=${WAYLAND:-OFF} \
-DBUILD_EXAMPLES=OFF ..
make RAYLIB_MODULE_RAYGUI=TRUE
make install DESTDIR=$PKG
@@ -98,6 +98,10 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+cat <<EOF > $PKG/usr/doc/$PRGNAM-$VERSION/build-flags
+WAYLAND="$WAYLAND"
+GLFW="$GLFW"
+EOF
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/libraries/raylib/raylib.info b/libraries/raylib/raylib.info
index 38d6ed358e..e5566592be 100644
--- a/libraries/raylib/raylib.info
+++ b/libraries/raylib/raylib.info
@@ -1,10 +1,10 @@
PRGNAM="raylib"
-VERSION="4.2.0"
+VERSION="4.5.0"
HOMEPAGE="https://raylib.com/"
-DOWNLOAD="https://github.com/raysan5/raylib/archive/refs/tags/4.2.0/raylib-4.2.0.tar.gz"
-MD5SUM="8b63a4d4a1e4356fc332fa16eb85d87e"
+DOWNLOAD="https://github.com/raysan5/raylib/archive/refs/tags/4.5.0/raylib-4.5.0.tar.gz"
+MD5SUM="feb608a91e27f71f9b33f0073177b1ee"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="rc-05"
-EMAIL="rc_O5@protonmail.com"
+EMAIL="rc_o5@protonmail.com"