aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/mp3.scm
diff options
context:
space:
mode:
authorKei Kebreau <kkebreau@posteo.net>2020-08-02 15:58:45 -0400
committerKei Kebreau <kkebreau@posteo.net>2020-12-27 16:42:02 -0500
commit14e68191d204ab9e7f2302902bb891ed03ea0442 (patch)
tree9406a5bcf148942643667289702e0edcc1d4b32c /gnu/packages/mp3.scm
parent668fa5abaa57632d7cc2bc30d67d06d18d195e4f (diff)
downloadguix-14e68191d204ab9e7f2302902bb891ed03ea0442.tar
guix-14e68191d204ab9e7f2302902bb891ed03ea0442.tar.gz
gnu: libid3tag: Install pkg-config file.
* gnu/packages/mp3.scm (libid3tag)[arguments]: Add 'install-pkg-config phase.
Diffstat (limited to 'gnu/packages/mp3.scm')
-rw-r--r--gnu/packages/mp3.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/gnu/packages/mp3.scm b/gnu/packages/mp3.scm
index 4bdbe8b487..591bc274a6 100644
--- a/gnu/packages/mp3.scm
+++ b/gnu/packages/mp3.scm
@@ -106,6 +106,27 @@ 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