gnu: libavif: Add configure-flag for rav1e when available.

* gnu/packages/image.scm (libavif)[arguments]: Adjust configure-flags to
build with rav1e support when it is in the build closure.
This commit is contained in:
Efraim Flashner 2023-01-03 22:37:09 +02:00
parent 9c098979a2
commit fe1ed81d28
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -2172,11 +2172,9 @@ (define-public libavif
(list
#:configure-flags
#~(list "-DAVIF_CODEC_AOM=ON" "-DAVIF_CODEC_DAV1D=ON"
#$@(if (string-prefix? "x86_64"
(or (%current-target-system)
(%current-system)))
'("-DAVIF_CODEC_RAV1E=ON")
'())
#$@(if (this-package-input "rav1e")
'("-DAVIF_CODEC_RAV1E=ON")
'())
"-DAVIF_BUILD_TESTS=ON" "-DAVIF_BUILD_APPS=ON")
#:phases
#~(modify-phases %standard-phases