mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: rtaudio: Fix include path.
* gnu/packages/audio.scm (rtaudio)[arguments]: Add phase 'fix-inc-path to move the header to where pkg-config expects it. * gnu/packages/music.scm (muse-sequencer)[arguments]{#:phases}: Remove 'fix-include. Don't return #t. Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
parent
ffc04f5cc6
commit
177ff0775b
2 changed files with 14 additions and 7 deletions
|
@ -32,7 +32,7 @@
|
|||
;;; Copyright © 2020, 2021 Guillaume Le Vaillant <glv@posteo.net>
|
||||
;;; Copyright © 2020 Jonathan Frederickson <jonathan@terracrypt.net>
|
||||
;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
|
||||
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
||||
;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
|
||||
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
|
@ -2345,6 +2345,18 @@ (define-public rtaudio
|
|||
(sha256
|
||||
(base32 "156c2dgh6jrsyfn1y89nslvaxm4yifmxridsb708yvkaym02w2l8"))))
|
||||
(build-system cmake-build-system)
|
||||
(arguments
|
||||
`(#:phases
|
||||
(modify-phases %standard-phases
|
||||
;; The header that pkg-config expects is include/rtaudio/RtAudio.h,
|
||||
;; but this package installs it as include/RtAudio.h by default.
|
||||
(add-after 'install 'fix-inc-path
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(inc (string-append out "/include")))
|
||||
(mkdir-p (string-append inc "/rtaudio"))
|
||||
(rename-file (string-append inc "/RtAudio.h")
|
||||
(string-append inc "/rtaudio/RtAudio.h"))))))))
|
||||
(native-inputs
|
||||
`(("pkg-config" ,pkg-config)))
|
||||
(inputs
|
||||
|
|
|
@ -4841,12 +4841,7 @@ (define-public muse-sequencer
|
|||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'chdir
|
||||
(lambda _ (chdir "src") #t))
|
||||
(add-after 'chdir 'fix-include
|
||||
(lambda _
|
||||
(substitute* "muse/driver/rtaudio.h"
|
||||
(("rtaudio/RtAudio.h") "RtAudio.h"))
|
||||
#t)))))
|
||||
(lambda _ (chdir "src"))))))
|
||||
(inputs
|
||||
`(("alsa-lib" ,alsa-lib)
|
||||
("dssi" ,dssi)
|
||||
|
|
Loading…
Reference in a new issue