mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 14:40:21 -05:00
gnu: libid3tag: Install pkg-config file.
* gnu/packages/mp3.scm (libid3tag)[arguments]: Add 'install-pkg-config phase.
This commit is contained in:
parent
668fa5abaa
commit
14e68191d2
1 changed files with 21 additions and 0 deletions
|
@ -106,6 +106,27 @@ (define-public libid3tag
|
||||||
(base32
|
(base32
|
||||||
"0lb1w883dc46dajbdvnia5870brl5lvnlk7g7y58y9wpg5p4znk3"))))
|
"0lb1w883dc46dajbdvnia5870brl5lvnlk7g7y58y9wpg5p4znk3"))))
|
||||||
(build-system gnu-build-system)
|
(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)))
|
(inputs `(("zlib" ,zlib)))
|
||||||
(synopsis "Library for reading ID3 tags")
|
(synopsis "Library for reading ID3 tags")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue