gnu: alsa-plugins: Build jack plugin.
* gnu/packages/linux.scm (alsa-plugins)[outputs]: Add "jack". [inputs]: Add jack-1. [arguments]: Install jack plugin in the 'split' phase.
This commit is contained in:
parent
1e3861eb00
commit
624ee211b0
|
@ -50,6 +50,7 @@
|
||||||
#:use-module (gnu packages admin)
|
#:use-module (gnu packages admin)
|
||||||
#:use-module (gnu packages algebra)
|
#:use-module (gnu packages algebra)
|
||||||
#:use-module (gnu packages attr)
|
#:use-module (gnu packages attr)
|
||||||
|
#:use-module (gnu packages audio)
|
||||||
#:use-module (gnu packages autotools)
|
#:use-module (gnu packages autotools)
|
||||||
#:use-module (gnu packages backup)
|
#:use-module (gnu packages backup)
|
||||||
#:use-module (gnu packages base)
|
#:use-module (gnu packages base)
|
||||||
|
@ -1060,7 +1061,7 @@ MIDI functionality to the Linux-based operating system.")
|
||||||
;; TODO: Remove OSS related plugins, they add support to run native
|
;; TODO: Remove OSS related plugins, they add support to run native
|
||||||
;; ALSA applications on OSS however we do not offer OSS and OSS is
|
;; ALSA applications on OSS however we do not offer OSS and OSS is
|
||||||
;; obsolete.
|
;; obsolete.
|
||||||
(outputs '("out" "pulseaudio"))
|
(outputs '("out" "pulseaudio" "jack"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
@ -1068,9 +1069,17 @@ MIDI functionality to the Linux-based operating system.")
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
;; Distribute the binaries to the various outputs.
|
;; Distribute the binaries to the various outputs.
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(jack (assoc-ref outputs "jack"))
|
||||||
|
(jacklib (string-append jack "/lib/alsa-lib"))
|
||||||
(pua (assoc-ref outputs "pulseaudio"))
|
(pua (assoc-ref outputs "pulseaudio"))
|
||||||
(pualib (string-append pua "/lib/alsa-lib"))
|
(pualib (string-append pua "/lib/alsa-lib"))
|
||||||
(puaconf (string-append pua "/share/alsa/alsa.conf.d")))
|
(puaconf (string-append pua "/share/alsa/alsa.conf.d")))
|
||||||
|
;; For jack.
|
||||||
|
(mkdir-p jacklib)
|
||||||
|
(for-each (lambda (file)
|
||||||
|
(rename-file file (string-append jacklib "/" (basename file))))
|
||||||
|
(find-files out ".*jack\\.(la|so)"))
|
||||||
|
;; For pluseaudio.
|
||||||
(mkdir-p puaconf)
|
(mkdir-p puaconf)
|
||||||
(mkdir-p pualib)
|
(mkdir-p pualib)
|
||||||
(chdir (string-append out "/share"))
|
(chdir (string-append out "/share"))
|
||||||
|
@ -1087,6 +1096,7 @@ MIDI functionality to the Linux-based operating system.")
|
||||||
#t))))))
|
#t))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("alsa-lib" ,alsa-lib)
|
`(("alsa-lib" ,alsa-lib)
|
||||||
|
("jack" ,jack-1)
|
||||||
("speex" ,speex) ; libspeexdsp resampling plugin
|
("speex" ,speex) ; libspeexdsp resampling plugin
|
||||||
("libsamplerate" ,libsamplerate) ; libsamplerate resampling plugin
|
("libsamplerate" ,libsamplerate) ; libsamplerate resampling plugin
|
||||||
("ffmpeg" ,ffmpeg) ; libavcodec resampling plugin, a52 plugin
|
("ffmpeg" ,ffmpeg) ; libavcodec resampling plugin, a52 plugin
|
||||||
|
|
Loading…
Reference in New Issue