gnu: raylib: Fix audio and use system glfw.
* gnu/packages/game-development.scm (raylib)[inputs]: Use glfw and pluseaudio. [arguments]: Set flags for glfw and pulseaudio.
This commit is contained in:
parent
733c8a6c54
commit
1fa30c597b
1 changed files with 16 additions and 8 deletions
|
@ -2868,14 +2868,22 @@ progresses the level, or you may regenerate tiles as the world changes.")
|
||||||
(arguments
|
(arguments
|
||||||
(list #:tests? #f ;no test
|
(list #:tests? #f ;no test
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
#~(list "-DBUILD_SHARED_LIBS=ON" )))
|
#~(list "-DBUILD_SHARED_LIBS=ON"
|
||||||
(inputs (list alsa-lib
|
"-DUSE_EXTERNAL_GLFW=ON"
|
||||||
libx11
|
"-DCMAKE_C_FLAGS=-lpulse")
|
||||||
libxrandr
|
#:phases
|
||||||
libxi
|
#~(modify-phases %standard-phases
|
||||||
libxinerama
|
(add-before 'configure 'configure-miniaudio
|
||||||
libxcursor
|
;; Use PulseAudio as raudio backend.
|
||||||
mesa))
|
(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))
|
(native-inputs (list pkg-config))
|
||||||
(synopsis "C library for videogame programming")
|
(synopsis "C library for videogame programming")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue