gnu: portmidi: Create "libporttime.so" symlink.

* gnu/packages/music.scm (portmidi): Add an `add-portime' phase.
This commit is contained in:
Nicolas Goaziou 2018-04-02 23:20:07 +02:00
parent b948c04745
commit a374d9c9b0
No known key found for this signature in database
GPG Key ID: A834B9E080A93738
1 changed files with 13 additions and 1 deletions

View File

@ -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