Skip to content
Snippets Groups Projects
Commit 21481a28 authored by Ricardo Wurmus's avatar Ricardo Wurmus
Browse files

gnu: ardour: Add library dirs to RUNPATH.

* gnu/packages/audio.scm (ardour)[arguments]: Add a build phase to add all
  library output directories to the rpath using linker flags.
parent eb7c43c3
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,29 @@ (define-public ardour
(file-name (string-append name "-" version))))
(build-system waf-build-system)
(arguments
`(#:tests? #f ; no check target
`(#:phases
(modify-phases %standard-phases
(add-after
'unpack 'set-rpath-in-LDFLAGS
(lambda _
(substitute* "wscript"
(("linker_flags = \\[\\]")
(string-append "linker_flags = [\""
"-Wl,-rpath="
(assoc-ref %outputs "out")
"/lib/ardour3/" ":"
(assoc-ref %outputs "out")
"/lib/ardour3/backends" ":"
(assoc-ref %outputs "out")
"/lib/ardour3/engines" ":"
(assoc-ref %outputs "out")
"/lib/ardour3/panners" ":"
(assoc-ref %outputs "out")
"/lib/ardour3/surfaces" ":"
(assoc-ref %outputs "out")
"/lib/ardour3/vamp" "\"]")))
#t)))
#:tests? #f ; no check target
#:python ,python-2))
(inputs
`(("alsa-lib" ,alsa-lib)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment