gnu: libavif: Use G-expression.

* gnu/packages/image.scm (libavif)[arguments]: Use gexp.
This commit is contained in:
Marius Bakke 2022-11-17 04:39:16 +01:00
parent c9fabf39a8
commit e432688ede
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -2167,20 +2167,21 @@ (define-public libavif
"02zmb62g0yx6rfz4w1isyzfrckv5i7dzyz26rp2mspbx9w6v8j4r")))) "02zmb62g0yx6rfz4w1isyzfrckv5i7dzyz26rp2mspbx9w6v8j4r"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags '("-DAVIF_CODEC_AOM=ON" "-DAVIF_CODEC_DAV1D=ON" (list #:configure-flags
,@(if (string-prefix? "x86_64" #~'("-DAVIF_CODEC_AOM=ON" "-DAVIF_CODEC_DAV1D=ON"
(or (%current-target-system) #$@(if (string-prefix? "x86_64"
(%current-system))) (or (%current-target-system)
'("-DAVIF_CODEC_RAV1E=ON") (%current-system)))
'()) '("-DAVIF_CODEC_RAV1E=ON")
"-DAVIF_BUILD_TESTS=ON") '())
"-DAVIF_BUILD_TESTS=ON")
#:phases #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'install 'install-readme (add-after 'install 'install-readme
(lambda* (#:key outputs #:allow-other-keys) (lambda _
(let* ((out (assoc-ref outputs "out")) (let ((doc (string-append #$output "/share/doc/libavif-"
(doc (string-append out "/share/doc/libavif-" ,version))) #$(package-version this-package))))
(install-file "../source/README.md" doc))))))) (install-file "../source/README.md" doc)))))))
(native-inputs (list googletest)) (native-inputs (list googletest))
(inputs (inputs
(append (append