guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

09/52: gnu: poppler: Find pkg-config when cross-compiling.


From: guix-commits
Subject: 09/52: gnu: poppler: Find pkg-config when cross-compiling.
Date: Mon, 20 Sep 2021 07:19:28 -0400 (EDT)

mothacehe pushed a commit to branch core-updates-frozen
in repository guix.

commit c3db377d2b4c217adad24ac7ab3fde7326a8436e
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Tue Aug 24 11:01:03 2021 +0200

    gnu: poppler: Find pkg-config when cross-compiling.
    
    * gnu/packages/pdf.scm
      (poppler)[arguments]<#:phases>{set-PKG_CONFIG}: New phase.
---
 gnu/packages/pdf.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 859bb1d..abe3f44 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -21,6 +21,7 @@
 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
 ;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
 ;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -264,7 +265,14 @@ please install the @code{flyer-composer-gui} package.")))
               "-DENABLE_ZLIB=ON"
               "-DENABLE_BOOST=OFF"      ;disable Boost to save size
               (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")
    (description
     "Poppler is a PDF rendering library based on the xpdf-3.0 code base.")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]