aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/audio.scm
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2015-05-05 06:24:41 +0200
committerRicardo Wurmus <rekado@elephly.net>2015-05-05 06:28:37 +0200
commit21481a284af7b7e9ad33fe072fde9d2ee3274017 (patch)
tree68bbcce8ddcdf365feeb29266e28597d6270a0d5 /gnu/packages/audio.scm
parenteb7c43c387c7a2aee7f8f72f2f68f050fa4996cd (diff)
downloadpatches-21481a284af7b7e9ad33fe072fde9d2ee3274017.tar
patches-21481a284af7b7e9ad33fe072fde9d2ee3274017.tar.gz
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.
Diffstat (limited to 'gnu/packages/audio.scm')
-rw-r--r--gnu/packages/audio.scm24
1 files changed, 23 insertions, 1 deletions
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index 6cba704b6d..af7533b8f9 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -151,7 +151,29 @@ namespace ARDOUR { const char* revision = \"3.5-403-gec2cb31\" ; }"))))
(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)