From a374d9c9b00a7248a366bf8ad747e9cd6dbb51eb Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 2 Apr 2018 23:20:07 +0200 Subject: gnu: portmidi: Create "libporttime.so" symlink. * gnu/packages/music.scm (portmidi): Add an `add-portime' phase. --- gnu/packages/music.scm | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3