From: Kei Kebreau <kkebreau@posteo.net>
To: 45150@debbugs.gnu.org
Cc: Kei Kebreau <kkebreau@posteo.net>
Subject: [bug#45150] [PATCH 2/5] gnu: libmad: Install pkg-config file.
Date: Wed, 9 Dec 2020 17:13:30 -0500 [thread overview]
Message-ID: <20201209221333.23645-1-kkebreau@posteo.net> (raw)
In-Reply-To: <20201209221143.23539-1-kkebreau@posteo.net>
* gnu/packages/mp3.scm (libmad)[arguments]: Add 'install-pkg-config phase.
---
gnu/packages/mp3.scm | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index d5c8ee14b4..9dd6f5c4a7 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -81,7 +81,26 @@
(lambda _
;; remove option that is not supported by gcc any more
(substitute* "configure" ((" -fforce-mem") ""))
- #t)))))
+ #t))
+ (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 "/mad.pc")
+ (lambda _
+ (format #t
+ "prefix=~@*~a~@
+ libdir=${prefix}/lib~@
+ includedir=${prefix}/include~@
+
+ Name: libmad~@
+ Description:~@
+ Version: ~a~@
+ Libs: -L${libdir} -lmad~@
+ Cflags: -I${includedir}~%"
+ out
+ ,version)))))))))
(synopsis "MPEG audio decoder")
(description
"MAD (MPEG Audio Decoder) supports MPEG-1 and the MPEG-2 extension to
--
2.29.2
next prev parent 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 ` Kei Kebreau [this message]
2020-12-09 22:13 ` [bug#45150] [PATCH 3/5] gnu: portmidi: " Kei Kebreau
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201209221333.23645-1-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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).