diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-04-02 23:20:07 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2018-04-02 23:20:07 +0200 |
commit | a374d9c9b00a7248a366bf8ad747e9cd6dbb51eb (patch) | |
tree | 49fa0d654865893381a6cdb40cfe16fedc952fdc /gnu/packages | |
parent | b948c04745dffeda9b19c2eadd765e2cb622f2a1 (diff) | |
download | guix-patches-a374d9c9b00a7248a366bf8ad747e9cd6dbb51eb.tar guix-patches-a374d9c9b00a7248a366bf8ad747e9cd6dbb51eb.tar.gz |
gnu: portmidi: Create "libporttime.so" symlink.
* gnu/packages/music.scm (portmidi): Add an `add-portime' phase.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/music.scm | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm index 9949e8e38f..ae35678357 100644 --- a/gnu/packages/music.scm +++ b/gnu/packages/music.scm @@ -1768,7 +1768,19 @@ projects.") #:build-type "Release" ; needed to have PMALSA set #:configure-flags (list "-DPORTMIDI_ENABLE_JAVA=Off" - "-DPORTMIDI_ENABLE_TEST=Off"))) ; tests fail linking + "-DPORTMIDI_ENABLE_TEST=Off") ; tests fail linking + #:phases + (modify-phases %standard-phases + ;; Some packages, e.g., MuseScore, expect "libporttime.so" instead of + ;; "libportmidi.so". Distributions get away with it by creating an + ;; appropriate symlink. + (add-after 'install 'add-porttime + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (lib (string-append out "/lib"))) + (with-directory-excursion lib + (symlink "libportmidi.so" "libporttime.so"))) + #t))))) (inputs `(("alsa-lib" ,alsa-lib))) (native-inputs |