GNU bug report logs -
#63347
[PATCH 1/2] gnu: raylib: Update to 4.5.0.
Previous Next
Reported by: iyzsong <at> envs.net
Date: Sun, 7 May 2023 11:50:02 UTC
Severity: normal
Tags: patch
Done: 宋文武 <iyzsong <at> envs.net>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 63347 <at> debbugs.gnu.org (full text, mbox):
From: 宋文武 <iyzsong <at> member.fsf.org>
* gnu/packages/game-development.scm (raylib)[inputs]: Use glfw and pluseaudio.
[arguments]: Set flags for glfw and pulseaudio.
---
gnu/packages/game-development.scm | 24 ++++++++++++++++--------
1 file changed, 16 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 560765fd64..0d519fb7ed 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -2868,14 +2868,22 @@ (define-public raylib
(arguments
(list #:tests? #f ;no test
#:configure-flags
- #~(list "-DBUILD_SHARED_LIBS=ON" )))
- (inputs (list alsa-lib
- libx11
- libxrandr
- libxi
- libxinerama
- libxcursor
- mesa))
+ #~(list "-DBUILD_SHARED_LIBS=ON"
+ "-DUSE_EXTERNAL_GLFW=ON"
+ "-DCMAKE_C_FLAGS=-lpulse")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'configure 'configure-miniaudio
+ ;; Use PulseAudio as raudio backend.
+ (lambda _
+ (substitute* "src/raudio.c"
+ (("^#include \"external/miniaudio\\.h\"") "
+#define MA_NO_RUNTIME_LINKING
+#define MA_ENABLE_ONLY_SPECIFIC_BACKENDS
+#define MA_ENABLE_PULSEAUDIO
+#include \"external/miniaudio.h\"
+")))))))
+ (inputs (list glfw pulseaudio))
(native-inputs (list pkg-config))
(synopsis "C library for videogame programming")
(description
--
2.39.2
This bug report was last modified 2 years and 70 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.