* [bug#39616] Add libavif @ 2020-02-15 18:24 Leo Famulari 2020-02-15 18:32 ` [bug#39616] [PATCH 1/2] gnu: libaom: Add AVIF support Leo Famulari 2020-02-29 19:48 ` bug#39616: " Leo Famulari 0 siblings, 2 replies; 4+ messages in thread From: Leo Famulari @ 2020-02-15 18:24 UTC (permalink / raw) To: 39616 These patches add support for the AVIF image format to libaom and add the libavif library. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#39616] [PATCH 1/2] gnu: libaom: Add AVIF support. 2020-02-15 18:24 [bug#39616] Add libavif Leo Famulari @ 2020-02-15 18:32 ` Leo Famulari 2020-02-15 18:32 ` [bug#39616] [PATCH 2/2] gnu: Add libavif Leo Famulari 2020-02-29 19:48 ` bug#39616: " Leo Famulari 1 sibling, 1 reply; 4+ messages in thread From: Leo Famulari @ 2020-02-15 18:32 UTC (permalink / raw) To: 39616 * gnu/packages/video.scm (libaom): Update to 1.0.0-errata1-avif. --- gnu/packages/video.scm | 66 ++++++++++++++++++++---------------------- 1 file changed, 31 insertions(+), 35 deletions(-) diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index ed104b7c3f..d9246f4ba2 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -272,41 +272,37 @@ television and DVD. It is also known as AC-3.") (license license:gpl2+))) (define-public libaom - ;; The 1.0.0-errata1 release installs a broken pkg-config .pc file. This - ;; is fixed in libaom commit 0ddc150, but we use an even later commit. - (let ((commit "22b150bf040608028a56d8bf39e72f771383d836") - (revision "0")) - (package - (name "libaom") - (version (git-version "1.0.0-errata1" revision commit)) - (source (origin - (method git-fetch) - (uri (git-reference - (url "https://aomedia.googlesource.com/aom/") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1pdd5h3n42607n6qmggz4yv8izhjr2kl6knb3kh7gh4v0vy47h1r")))) - (build-system cmake-build-system) - (native-inputs - `(("perl" ,perl) - ("pkg-config" ,pkg-config) - ("python" ,python))) ; to detect the version - (arguments - `(#:tests? #f ;no check target - #:configure-flags - ;; build dynamic library - (list "-DBUILD_SHARED_LIBS=YES" - "-DENABLE_PIC=TRUE" - "-DAOM_TARGET_CPU=generic" - (string-append "-DCMAKE_INSTALL_PREFIX=" - (assoc-ref %outputs "out"))))) - (home-page "https://aomedia.googlesource.com/aom/") - (synopsis "AV1 video codec") - (description "Libaom is the reference implementation of AV1. It includes -a shared library and encoder and decoder command-line executables.") - (license license:bsd-2)))) + (package + (name "libaom") + (version "1.0.0-errata1-avif") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://aomedia.googlesource.com/aom/") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "169yfgh7zigc21h71qclfyr7s4wwp2i9vbr4z6pkabypvass4v7m")))) + (build-system cmake-build-system) + (native-inputs + `(("perl" ,perl) + ("pkg-config" ,pkg-config) + ("python" ,python))) ; to detect the version + (arguments + `(#:tests? #f ;no check target + #:configure-flags + ;; build dynamic library + (list "-DBUILD_SHARED_LIBS=YES" + "-DENABLE_PIC=TRUE" + "-DAOM_TARGET_CPU=generic" + (string-append "-DCMAKE_INSTALL_PREFIX=" + (assoc-ref %outputs "out"))))) + (home-page "https://aomedia.googlesource.com/aom/") + (synopsis "AV1 video codec") + (description "Libaom is the reference implementation of AV1. It includes a +shared library and encoder and decoder command-line executables.") + (license license:bsd-2))) (define-public libmpeg2 (package -- 2.25.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#39616] [PATCH 2/2] gnu: Add libavif. 2020-02-15 18:32 ` [bug#39616] [PATCH 1/2] gnu: libaom: Add AVIF support Leo Famulari @ 2020-02-15 18:32 ` Leo Famulari 0 siblings, 0 replies; 4+ messages in thread From: Leo Famulari @ 2020-02-15 18:32 UTC (permalink / raw) To: 39616 * gnu/packages/image.scm (libavif): New variable. --- gnu/packages/image.scm | 45 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index f9da1e9e89..e077b05215 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -7,7 +7,7 @@ ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com> ;;; Copyright © 2015 Amirouche Boubekki <amirouche@hypermove.net> ;;; Copyright © 2014, 2017 John Darrington <jmd@gnu.org> -;;; Copyright © 2016, 2017, 2018 Leo Famulari <leo@famulari.name> +;;; Copyright © 2016, 2017, 2018, 2020 Leo Famulari <leo@famulari.name> ;;; Copyright © 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org> @@ -72,6 +72,7 @@ #:use-module (gnu packages xml) #:use-module (gnu packages xorg) #:use-module (gnu packages qt) + #:use-module (gnu packages video) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) @@ -1844,3 +1845,45 @@ using only text tools. SNG is implemented by a compiler/decompiler called sng that losslessly translates between SNG and PNG.") (license license:zlib))) + +(define-public libavif + (package + (name "libavif") + (version "0.5.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/AOMediaCodec/libavif") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0hb4izd2n3wb4vp8qhx542hdzwl74qrh0qnll6935n4f6ypq2gxq")))) + (build-system cmake-build-system) + (arguments + `(#:configure-flags '("-DAVIF_CODEC_AOM=ON" "-DAVIF_CODEC_DAV1D=ON" + "-DAVIF_CODEC_RAV1E=OFF" ; not packaged yet + "-DAVIF_BUILD_TESTS=ON") + #:phases + (modify-phases %standard-phases + (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))))) +;; The test suite runs tests for all supported codecs and fails because we don't +;; have rav1e yet. +;; (replace 'check +;; (lambda _ +;; (invoke "./aviftest" "../source/tests/data")))) + #:tests? #f)) + (inputs + `(("libaom" ,libaom) + ("dav1d" ,dav1d))) + (synopsis "Encode and decode AVIF files") + (description "Libavif is a C implementation of the AV1 Image File Format +(AVIF). It can encode and decode all AOM supported YUV formats and bit depths, +including with alpha.") + (home-page "https://github.com/AOMediaCodec/libavif") + (license license:bsd-2))) ; Audit -- 2.25.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#39616: Add libavif 2020-02-15 18:24 [bug#39616] Add libavif Leo Famulari 2020-02-15 18:32 ` [bug#39616] [PATCH 1/2] gnu: libaom: Add AVIF support Leo Famulari @ 2020-02-29 19:48 ` Leo Famulari 1 sibling, 0 replies; 4+ messages in thread From: Leo Famulari @ 2020-02-29 19:48 UTC (permalink / raw) To: 39616-done I updated the libavif package to 0.5.6 and pushed as fecd608f37a428e4efcf3acd47facc59dc3ec49a ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-02-29 19:49 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2020-02-15 18:24 [bug#39616] Add libavif Leo Famulari 2020-02-15 18:32 ` [bug#39616] [PATCH 1/2] gnu: libaom: Add AVIF support Leo Famulari 2020-02-15 18:32 ` [bug#39616] [PATCH 2/2] gnu: Add libavif Leo Famulari 2020-02-29 19:48 ` bug#39616: " Leo Famulari
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/guix.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.