aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/audio.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2015-09-20 13:03:38 +0200
committerRicardo Wurmus <rekado@elephly.net>2015-09-20 13:43:38 +0200
commit7ee5db15bfa336bb0472669b29eeb2c3b99449b8 (patch)
tree3afae2d927a006a9cefa965dc31de11b7c7b0e28 /gnu/packages/audio.scm
parent594360f508dad72dea67ecd28463e460fbe00f15 (diff)
downloadgnu-guix-7ee5db15bfa336bb0472669b29eeb2c3b99449b8.tar
gnu-guix-7ee5db15bfa336bb0472669b29eeb2c3b99449b8.tar.gz
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.
Diffstat (limited to 'gnu/packages/audio.scm')
-rw-r--r--gnu/packages/audio.scm20
1 files changed, 19 insertions, 1 deletions
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index eed72c31a9..029f40c37d 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -1052,7 +1052,25 @@ lv2-c++-tools.")
"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)))