mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: openal: Use full path to audio backend libraries.
* gnu/packages/audio.scm (openal)[arguments]: Add build phase to patch in the full paths to backend audio libraries.
This commit is contained in:
parent
594360f508
commit
7ee5db15bf
1 changed files with 19 additions and 1 deletions
|
@ -1052,7 +1052,25 @@ (define-public openal
|
|||
"0mmhdqiyb3c9dzvxspm8h2v8jibhi8pfjxnf6m0wn744y1ia2a8f"))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f)) ; no check target
|
||||
`(#:tests? #f ; no check target
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after
|
||||
'unpack 'use-full-library-paths
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(substitute* "Alc/backends/pulseaudio.c"
|
||||
(("#define PALIB \"libpulse\\.so\\.0\"")
|
||||
(string-append "#define PALIB \""
|
||||
(assoc-ref inputs "pulseaudio")
|
||||
"/lib/libpulse.so.0"
|
||||
"\"")))
|
||||
(substitute* "Alc/backends/alsa.c"
|
||||
(("LoadLib\\(\"libasound\\.so\\.2\"\\)")
|
||||
(string-append "LoadLib(\""
|
||||
(assoc-ref inputs "alsa-lib")
|
||||
"/lib/libasound.so.2"
|
||||
"\")")))
|
||||
#t)))))
|
||||
(inputs
|
||||
`(("alsa-lib" ,alsa-lib)
|
||||
("pulseaudio" ,pulseaudio)))
|
||||
|
|
Loading…
Reference in a new issue