me
/
guix
Archived
1
0
Fork 0

gnu: yoshimi: Fix references to /usr/share.

* gnu/packages/music.scm (yoshimi)[arguments]: Add 'fix-paths' phase.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
master
Sughosha 2022-10-20 22:34:24 +02:00 committed by Ludovic Courtès
parent 94984f490c
commit 7699f5e4fe
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 7 additions and 0 deletions

View File

@ -3054,6 +3054,13 @@ capabilities, custom envelopes, effects, etc.")
;; Move SSE compiler optimization flags from generic target to ;; Move SSE compiler optimization flags from generic target to
;; athlon64 and core2 targets, because otherwise the build would fail ;; athlon64 and core2 targets, because otherwise the build would fail
;; on non-Intel machines. ;; on non-Intel machines.
(add-after 'unpack 'fix-paths
(lambda* (#:key outputs #:allow-other-keys)
(substitute* (list "src/Interface/InterChange.cpp"
"src/Misc/Bank.cpp"
"src/Misc/Config.cpp")
(("/usr/share") (string-append (assoc-ref outputs "out")
"/share")))))
(add-after 'unpack 'remove-sse-flags-from-generic-target (add-after 'unpack 'remove-sse-flags-from-generic-target
(lambda _ (lambda _
(substitute* "src/CMakeLists.txt" (substitute* "src/CMakeLists.txt"