aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorKei Kebreau <kkebreau@posteo.net>2020-12-09 14:34:43 -0500
committerKei Kebreau <kkebreau@posteo.net>2020-12-27 16:42:02 -0500
commit64af916d6f08ae5c59ee76c15fdd9cff343595a4 (patch)
tree812599e21fe60d608d163d3532bfd6735ec06f95 /gnu
parent83afa4e9a6aa4dc69f86651d795007dc96a31e64 (diff)
downloadguix-64af916d6f08ae5c59ee76c15fdd9cff343595a4.tar.gz
guix-64af916d6f08ae5c59ee76c15fdd9cff343595a4.zip
gnu: portmidi: Install pkg-config file.
* gnu/packages/music.scm (portmidi)[arguments]: Add 'install-pkg-config phase.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/music.scm21
1 files changed, 19 insertions, 2 deletions
diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 8fcc22f26d..3c8d3c5881 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -2411,8 +2411,25 @@ main purpose is to liberate raw audio rendering from audio and MIDI drivers.")
(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
0. * tests/crate.scm (test-foo-dependencies) (test-root-dependencies, test-intermediate-1-dependencies) (test-intermediate-2-dependencies): Remove trailing commas. * tests/gem.scm (test-bar-json): Likewise. * tests/pypi.scm (test-json): Likewise. Ludovic Courtès 2020-01-16import: crate: Export 'string->license'....* guix/import/crate.scm (string->license): Export. * tests/crate.scm (string->license): Remove. Ludovic Courtès 2019-12-11import: crate: Better handle license expressions....* guix/import/crate.scm (%dual-license-rx): Removed function. (crate->guix-package): Handle most of the multi-licensing cases. * tests/crate.scm (licenses): Add tests for some licenses. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Brice Waegeneire 2019-12-11import: crate: Add recursive import test....* tests/crate.scm (test-crate): Rename to... (test-foo-crate): ... this. (test-dependencies): Rename to... (test-foo-dependencies): ... this. (test-root-crate, test-root-dependencies, test-intermediate-1-crate) (test-intermediate-1-dependencies, test-intermediate-2-crate) (test-intermediate-2-dependencies, test-leaf-alice-crate) (test-leaf-alice-dependencies, test-leaf-bob-crate) (test-leaf-bob-dependencies): New variables. ("crate->guix-package"): Adjust accordingly. ("cargo-recursive-import"): New test. Co-authored-by: Ludovic Courtès <ludo@gnu.org> Brian Leung