gnu: jack2: Add $libdir to the RUNPATH of all the binaries.

* gnu/packages/audio.scm (jack2)[arguments]: Add #:phases.
This commit is contained in:
宋文武 2015-04-30 00:03:10 +08:00
parent e32316e62f
commit b416c647e9

View file

@ -520,7 +520,18 @@ (define-public jack-2
(arguments
`(#:tests? #f ; no check target
#:configure-flags '("--dbus"
"--alsa")))
"--alsa")
#:phases
(modify-phases %standard-phases
(add-before
'configure 'set-linkflags
(lambda _
;; Add $libdir to the RUNPATH of all the binaries.
(substitute* "wscript"
((".*CFLAGS.*-Wall.*" m)
(string-append m
" conf.env.append_unique('LINKFLAGS',"
"'-Wl,-rpath=" %output "/lib')\n"))))))))
(inputs
`(("alsa-lib" ,alsa-lib)
("dbus" ,dbus)