diff options
Diffstat (limited to 'gnu')
-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 |