mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-17 12:17:10 -05:00
gnu: portmidi: Install pkg-config file.
* gnu/packages/music.scm (portmidi)[arguments]: Add 'install-pkg-config phase.
This commit is contained in:
parent
83afa4e9a6
commit
64af916d6f
1 changed files with 19 additions and 2 deletions
|
@ -2411,8 +2411,25 @@ (define-public portmidi
|
|||
(let* ((out (assoc-ref outputs "out"))
|
||||
(lib (string-append out "/lib")))
|
||||
(with-directory-excursion lib
|
||||
(symlink "libportmidi.so" "libporttime.so")))
|
||||
#t)))))
|
||||
(symlink "libportmidi.so" "libporttime.so")))))
|
||||
(add-after 'install 'install-pkg-config
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(pkg-config-dir (string-append out "/lib/pkgconfig")))
|
||||
(mkdir-p pkg-config-dir)
|
||||
(with-output-to-file (string-append pkg-config-dir "/portmidi.pc")
|
||||
(lambda _
|
||||
(format #t
|
||||
"prefix=~@*~a~@
|
||||
libdir=${prefix}/lib~@
|
||||
includedir=${prefix}/include~@
|
||||
|
||||
Name: portmidi~@
|
||||
Description:~@
|
||||
Version: ~a~@
|
||||
Libs: -L${libdir} -lportmidi~@
|
||||
Cflags: -I${includedir}~%"
|
||||
out ,version)))))))))
|
||||
(inputs
|
||||
`(("alsa-lib" ,alsa-lib)))
|
||||
(native-inputs
|
||||
|
|
Loading…
Reference in a new issue