From: Kei Kebreau <kkebreau@posteo.net>
To: 45150@debbugs.gnu.org
Cc: Kei Kebreau <kkebreau@posteo.net>
Subject: [bug#45150] [PATCH 4/5] gnu: lame: Install pkg-config file.
Date: Wed, 9 Dec 2020 17:13:32 -0500 [thread overview]
Message-ID: <20201209221333.23645-3-kkebreau@posteo.net> (raw)
In-Reply-To: <20201209221333.23645-1-kkebreau@posteo.net>
* gnu/packages/mp3.scm (lame)[arguments]: Add 'install-pkg-config phase.
---
gnu/packages/mp3.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 9dd6f5c4a7..3591372d6b 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -430,6 +430,28 @@ use with CD-recording software).")
(base32
"07nsn5sy3a8xbmw1bidxnsj5fj6kg9ai04icmqw40ybkp353dznx"))))
(build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (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 "/lame.pc")
+ (lambda _
+ (format #t
+ "prefix=~@*~a~@
+ libdir=${prefix}/lib~@
+ includedir=${prefix}/include~@
+
+ Name: lame~@
+ Description:~@
+ Version: ~a~@
+ Libs: -L${libdir} -lmp3lame~@
+ Cflags: -I${includedir}~%"
+ out
+ ,version)))))))))
(home-page "http://lame.sourceforge.net/")
(synopsis "MPEG Audio Layer III (MP3) encoder")
(description "LAME is a high quality MPEG Audio Layer III (MP3) encoder.")
--
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 ` [bug#45150] [PATCH 2/5] gnu: libmad: " Kei Kebreau
2020-12-09 22:13 ` [bug#45150] [PATCH 3/5] gnu: portmidi: " Kei Kebreau
2020-12-09 22:13 ` Kei Kebreau [this message]
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-3-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.