mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-06 03:17:15 -05:00
gnu: pulseaudio: Use meson build system.
* gnu/packages/pulseaudio.scm (pulseaudio)[build-system]: Switch from gnu to meson. [arguments]: Migrate configure flags for meson. [propagated-inputs]: Replace 'gdbm' with 'tdb', upstream default.
This commit is contained in:
parent
36c1372d64
commit
0c25529c6c
1 changed files with 16 additions and 11 deletions
|
@ -50,7 +50,7 @@ (define-module (gnu packages pulseaudio)
|
||||||
#:use-module (gnu packages avahi)
|
#:use-module (gnu packages avahi)
|
||||||
#:use-module (gnu packages boost)
|
#:use-module (gnu packages boost)
|
||||||
#:use-module (gnu packages check)
|
#:use-module (gnu packages check)
|
||||||
#:use-module (gnu packages dbm)
|
#:use-module (gnu packages databases)
|
||||||
#:use-module (gnu packages glib)
|
#:use-module (gnu packages glib)
|
||||||
#:use-module (gnu packages gettext)
|
#:use-module (gnu packages gettext)
|
||||||
#:use-module (gnu packages gnome)
|
#:use-module (gnu packages gnome)
|
||||||
|
@ -202,14 +202,20 @@ (define-public pulseaudio
|
||||||
(patches (search-patches
|
(patches (search-patches
|
||||||
"pulseaudio-fix-mult-test.patch"
|
"pulseaudio-fix-mult-test.patch"
|
||||||
"pulseaudio-longer-test-timeout.patch"))))
|
"pulseaudio-longer-test-timeout.patch"))))
|
||||||
(build-system gnu-build-system)
|
(build-system meson-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:configure-flags (list "--localstatedir=/var" ;"--sysconfdir=/etc"
|
`(#:configure-flags
|
||||||
"--disable-oss-output"
|
(let ((out (assoc-ref %outputs "out")))
|
||||||
"--enable-bluez5"
|
(list "-Doss-output=disable"
|
||||||
(string-append "--with-udev-rules-dir="
|
"-Dbluez5=true"
|
||||||
(assoc-ref %outputs "out")
|
"-Dlocalstatedir=/var"
|
||||||
"/lib/udev/rules.d"))
|
(string-append "-Dudevrulesdir="
|
||||||
|
out "/lib/udev/rules.d")
|
||||||
|
;; Ensure the RUNPATH contains all installed library locations.
|
||||||
|
(string-append "-Dc_link_args=-Wl,-rpath="
|
||||||
|
out "/lib/pulseaudio:"
|
||||||
|
out "/lib:"
|
||||||
|
out "/lib/pulse-" ,version "/modules")))
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
(add-before 'check 'pre-check
|
(add-before 'check 'pre-check
|
||||||
(lambda _
|
(lambda _
|
||||||
|
@ -221,7 +227,6 @@ (define-public pulseaudio
|
||||||
(setenv "CK_DEFAULT_TIMEOUT" "120")
|
(setenv "CK_DEFAULT_TIMEOUT" "120")
|
||||||
#t)))))
|
#t)))))
|
||||||
(inputs
|
(inputs
|
||||||
;; TODO: Add optional inputs (GTK+?).
|
|
||||||
`(("alsa-lib" ,alsa-lib)
|
`(("alsa-lib" ,alsa-lib)
|
||||||
("bluez" ,bluez)
|
("bluez" ,bluez)
|
||||||
("sbc" ,sbc)
|
("sbc" ,sbc)
|
||||||
|
@ -250,9 +255,9 @@ (define-public pulseaudio
|
||||||
("perl-xml-parser" ,perl-xml-parser)
|
("perl-xml-parser" ,perl-xml-parser)
|
||||||
("pkg-config" ,pkg-config)))
|
("pkg-config" ,pkg-config)))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
;; 'libpulse*.la' contain `-lgdbm' and `-lcap', so propagate them.
|
;; 'libpulse*.la' contain `-ltdb' and `-lcap', so propagate them.
|
||||||
`(("libcap" ,libcap)
|
`(("libcap" ,libcap)
|
||||||
("gdbm" ,gdbm)))
|
("tdb" ,tdb)))
|
||||||
(home-page "http://www.pulseaudio.org/")
|
(home-page "http://www.pulseaudio.org/")
|
||||||
(synopsis "Sound server")
|
(synopsis "Sound server")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue