all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kei Kebreau <kkebreau@posteo.net>
To: 45150@debbugs.gnu.org
Cc: Kei Kebreau <kkebreau@posteo.net>
Subject: [bug#45150] [PATCH 3/5] gnu: portmidi: Install pkg-config file.
Date: Wed,  9 Dec 2020 17:13:31 -0500	[thread overview]
Message-ID: <20201209221333.23645-2-kkebreau@posteo.net> (raw)
In-Reply-To: <20201209221333.23645-1-kkebreau@posteo.net>

* gnu/packages/music.scm (portmidi)[arguments]: Add 'install-pkg-config phase.
---
 gnu/packages/music.scm | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/music.scm b/gnu/packages/music.scm
index 2f75c39dd8..fa58ddd236 100644
--- a/gnu/packages/music.scm
+++ b/gnu/packages/music.scm
@@ -2406,8 +2406,26 @@ 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
-- 
2.29.2





  reply	other threads:[~2020-12-09 22:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 22:11 [bug#45150] [PATCH 1/5] gnu: libid3tag: Install pkg-config file Kei Kebreau
2020-12-09 22:13 ` [bug#45150] [PATCH 2/5] gnu: libmad: " Kei Kebreau
2020-12-09 22:13   ` Kei Kebreau [this message]
2020-12-09 22:13   ` [bug#45150] [PATCH 4/5] gnu: lame: " Kei Kebreau
2020-12-09 22:13   ` [bug#45150] [PATCH 5/5] gnu: audacity: Update to 2.4.2 Kei Kebreau
2020-12-26 20:43 ` [bug#45150] [PATCH 1/5] gnu: libid3tag: Install pkg-config file Efraim Flashner
2020-12-27 22:04   ` bug#45150: " Kei Kebreau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201209221333.23645-2-kkebreau@posteo.net \
    --to=kkebreau@posteo.net \
    --cc=45150@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.