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