mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: lmdb: Install pkg-config file.
* gnu/packages/databases.scm (lmdb)[arguments]: Add phase to create a lmdb.pc file.
This commit is contained in:
parent
f80ddc64c6
commit
46c2cf6902
1 changed files with 19 additions and 1 deletions
|
@ -2352,7 +2352,25 @@ database.")
|
||||||
(chdir "libraries/liblmdb")
|
(chdir "libraries/liblmdb")
|
||||||
(substitute* "Makefile"
|
(substitute* "Makefile"
|
||||||
(("/usr/local") (assoc-ref outputs "out")))
|
(("/usr/local") (assoc-ref outputs "out")))
|
||||||
#t)))))
|
#t))
|
||||||
|
(add-after 'install 'create-pkg-config-file
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(mkdir-p (string-append out "/lib/pkgconfig"))
|
||||||
|
(with-output-to-file (string-append out "/lib/pkgconfig/liblmdb.pc")
|
||||||
|
(lambda _
|
||||||
|
(format #t "prefix=~a~@
|
||||||
|
exec_prefix=~a~@
|
||||||
|
libdir=~a/lib~@
|
||||||
|
includedir=~a/include~@
|
||||||
|
~@
|
||||||
|
Name: liblmdb~@
|
||||||
|
Version: ~a~@
|
||||||
|
Description: Lightning Memory-Mapped Database library~@
|
||||||
|
Libs: -L${libdir} -llmdb~@
|
||||||
|
Cflags: -I${includedir}~%"
|
||||||
|
out out out out ,version)))
|
||||||
|
#t))))))
|
||||||
(home-page "https://symas.com/lmdb/")
|
(home-page "https://symas.com/lmdb/")
|
||||||
(synopsis "Lightning Memory-Mapped Database library")
|
(synopsis "Lightning Memory-Mapped Database library")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue