efraim pushed a commit to branch rust-team
in repository guix.

commit 828e2165f9984dc83ba42a8f51349f21fe06c1e4
Author: Efraim Flashner <efr...@flashner.co.il>
AuthorDate: Thu Sep 19 15:11:01 2024 +0300

    gnu: ffmpeg: Build with rav1e on more systems.
    
    * gnu/packages/video.scm (ffmpeg)[inputs]: Add rav1e on all systems
    where it is supported.
    [arguments]: Add flag to use rav1e when it is added as an input.
    
    Change-Id: I53cc11cd406b165dc366ebe547ae6574ea9f58a3
---
 gnu/packages/video.scm | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 406d1a4f9c..b4a6b10116 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1680,9 +1680,7 @@ operate properly.")
     (build-system gnu-build-system)
     (inputs
      (append
-      ;; XXX: rav1e depends on rust, which currently only works on x86_64.
-      ;; See also the related configure flag when changing this.
-      (if (target-x86-64?) (list rav1e) '())
+      (if (supported-package? rav1e) (list rav1e) '())
       (list dav1d
             fontconfig
             freetype
@@ -1795,7 +1793,7 @@ operate properly.")
          "--enable-libmp3lame"
          "--enable-libopus"
          "--enable-libpulse"
-         #$@(if (target-x86-64?)
+         #$@(if (this-package-input "rav1e")
                 '("--enable-librav1e")
                 '())
          "--enable-libsoxr"

Reply via email to