me
/
guix
Archived
1
0
Fork 0

gnu: poppler: Find pkg-config when cross-compiling.

* gnu/packages/pdf.scm
  (poppler)[arguments]<#:phases>{set-PKG_CONFIG}: New phase.
master
Maxime Devos 2021-08-24 11:01:03 +02:00 committed by Mathieu Othacehe
parent d09822c394
commit c3db377d2b
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 9 additions and 1 deletions

View File

@ -21,6 +21,7 @@
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de> ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si> ;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -264,7 +265,14 @@ please install the @code{flyer-composer-gui} package.")))
"-DENABLE_ZLIB=ON" "-DENABLE_ZLIB=ON"
"-DENABLE_BOOST=OFF" ;disable Boost to save size "-DENABLE_BOOST=OFF" ;disable Boost to save size
(string-append "-DCMAKE_INSTALL_LIBDIR=" lib) (string-append "-DCMAKE_INSTALL_LIBDIR=" lib)
(string-append "-DCMAKE_INSTALL_RPATH=" lib))))) (string-append "-DCMAKE_INSTALL_RPATH=" lib)))
,@(if (%current-target-system)
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'set-PKG_CONFIG
(lambda _
(setenv "PKG_CONFIG" ,(pkg-config-for-target))))))
'())))
(synopsis "PDF rendering library") (synopsis "PDF rendering library")
(description (description
"Poppler is a PDF rendering library based on the xpdf-3.0 code base.") "Poppler is a PDF rendering library based on the xpdf-3.0 code base.")