gnu: libavif: Update to 0.11.1.

* gnu/packages/image.scm (libavif): Update to 0.11.1.
[arguments]: Remove check phase.
[native-inputs]: Add GOOGLETEST.
[inputs]: Add LIBJPEG-TURBO, LIBPNG, and ZLIB.  While at it, remove labels.
This commit is contained in:
Marius Bakke 2022-11-17 04:36:18 +01:00
parent 7aa5c9dfb3
commit c9fabf39a8
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -2155,7 +2155,7 @@ (define-public icoutils
(define-public libavif
(package
(name "libavif")
(version "0.9.2")
(version "0.11.1")
(source (origin
(method git-fetch)
(uri (git-reference
@ -2164,7 +2164,7 @@ (define-public libavif
(file-name (git-file-name name version))
(sha256
(base32
"1yxmgjlxm1srm98zyj79bj8r8vmg67daqnq0ggcvxknq54plkznk"))))
"02zmb62g0yx6rfz4w1isyzfrckv5i7dzyz26rp2mspbx9w6v8j4r"))))
(build-system cmake-build-system)
(arguments
`(#:configure-flags '("-DAVIF_CODEC_AOM=ON" "-DAVIF_CODEC_DAV1D=ON"
@ -2176,22 +2176,24 @@ (define-public libavif
"-DAVIF_BUILD_TESTS=ON")
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _
(invoke "./aviftest" "../source/tests/data")))
(add-after 'install 'install-readme
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(doc (string-append out "/share/doc/libavif-" ,version)))
(install-file "../source/README.md" doc)))))))
(native-inputs (list googletest))
(inputs
`(("dav1d" ,dav1d)
("libaom" ,libaom)
(append
(list dav1d
libaom
libjpeg-turbo
libpng
zlib)
;; XXX: rav1e depends on rust, which currently only works on x86_64.
;; See also the related configure flag when changing this.
,@(if (string-prefix? "x86_64" (or (%current-target-system)
(if (string-prefix? "x86_64" (or (%current-target-system)
(%current-system)))
`(("rav1e" ,rav1e))
(list rav1e)
'())))
(synopsis "Encode and decode AVIF files")
(description "Libavif is a C implementation of @acronym{AVIF, the AV1 Image