aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-04-02 23:20:07 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-04-02 23:20:07 +0200
commita374d9c9b00a7248a366bf8ad747e9cd6dbb51eb (patch)
tree49fa0d654865893381a6cdb40cfe16fedc952fdc
parentb948c04745dffeda9b19c2eadd765e2cb622f2a1 (diff)
downloadguix-a374d9c9b00a7248a366bf8ad747e9cd6dbb51eb.tar
guix-a374d9c9b00a7248a366bf8ad747e9cd6dbb51eb.tar.gz
gnu: portmidi: Create "libporttime.so" symlink.
* gnu/packages/music.scm (portmidi): Add an `add-portime' phase.
-rw-r--r--gnu/packages/music.scm14
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