me
/
guix
Archived
1
0
Fork 0

gnu: lame: Install pkg-config file.

* gnu/packages/mp3.scm (lame)[arguments]: Add 'install-pkg-config phase.
master
Kei Kebreau 2020-12-09 15:08:33 -05:00
parent 64af916d6f
commit fc5f56eaf4
No known key found for this signature in database
GPG Key ID: E6A5EE3C19467A0D
1 changed files with 21 additions and 0 deletions

View File

@ -428,6 +428,27 @@ use with CD-recording software).")
(base32 (base32
"07nsn5sy3a8xbmw1bidxnsj5fj6kg9ai04icmqw40ybkp353dznx")))) "07nsn5sy3a8xbmw1bidxnsj5fj6kg9ai04icmqw40ybkp353dznx"))))
(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 "/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/") (home-page "http://lame.sourceforge.net/")
(synopsis "MPEG Audio Layer III (MP3) encoder") (synopsis "MPEG Audio Layer III (MP3) encoder")
(description "LAME is a high quality MPEG Audio Layer III (MP3) encoder.") (description "LAME is a high quality MPEG Audio Layer III (MP3) encoder.")