unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#45150] [PATCH 1/5] gnu: libid3tag: Install pkg-config file.
@ 2020-12-09 22:11 Kei Kebreau
  2020-12-09 22:13 ` [bug#45150] [PATCH 2/5] gnu: libmad: " Kei Kebreau
  2020-12-26 20:43 ` [bug#45150] [PATCH 1/5] gnu: libid3tag: Install pkg-config file Efraim Flashner
  0 siblings, 2 replies; 7+ messages in thread
From: Kei Kebreau @ 2020-12-09 22:11 UTC (permalink / raw)
  To: 45150; +Cc: Kei Kebreau

* gnu/packages/mp3.scm (libid3tag)[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 4bdbe8b487..d5c8ee14b4 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -106,6 +106,28 @@ This package contains the library.")
              (base32
               "0lb1w883dc46dajbdvnia5870brl5lvnlk7g7y58y9wpg5p4znk3"))))
    (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 "/id3tag.pc")
+                (lambda _
+                  (format #t
+                          "prefix=~@*~a~@
+                           libdir=${prefix}/lib~@
+                           includedir=${prefix}/include~@
+
+                           Name: libid3tag~@
+                           Description:~@
+                           Version: ~a~@
+                           Libs: -L${libdir} -lid3tag -lz~@
+                           Cflags: -I${includedir}~%"
+                          out
+                          ,version)))))))))
    (inputs `(("zlib" ,zlib)))
    (synopsis "Library for reading ID3 tags")
    (description
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-12-27 22:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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   ` [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

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).