gnu: leptonica: Add giflib reference in Libtool- and pkg-config files.
* gnu/packages/image.scm (leptonica)[arguments]: Add phase "provide-absolute-giflib-reference".
This commit is contained in:
parent
1c60bd3244
commit
08dfff747b
1 changed files with 10 additions and 1 deletions
|
@ -612,7 +612,16 @@ collection of tools for doing simple manipulations of TIFF images.")
|
||||||
(string-append " " (which "sh") " "))
|
(string-append " " (which "sh") " "))
|
||||||
(("which gnuplot")
|
(("which gnuplot")
|
||||||
"true"))
|
"true"))
|
||||||
#t)))))
|
#t))
|
||||||
|
(add-after 'install 'provide-absolute-giflib-reference
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out"))
|
||||||
|
(giflib (assoc-ref inputs "giflib")))
|
||||||
|
;; Add an absolute reference to giflib to avoid propagation.
|
||||||
|
(with-directory-excursion (string-append out "/lib")
|
||||||
|
(substitute* '("liblept.la" "pkgconfig/lept.pc")
|
||||||
|
(("-lgif") (string-append "-L" giflib "/lib -lgif"))))
|
||||||
|
#t))))))
|
||||||
(home-page "http://www.leptonica.com/")
|
(home-page "http://www.leptonica.com/")
|
||||||
(synopsis "Library and tools for image processing and analysis")
|
(synopsis "Library and tools for image processing and analysis")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue