me
/
guix
Archived
1
0
Fork 0

gnu: libaom: Add AVIF support.

* gnu/packages/video.scm (libaom): Update to 1.0.0-errata1-avif.
master
Leo Famulari 2020-02-15 12:28:43 -05:00
parent b5aa17adea
commit 08cc13974f
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
1 changed files with 31 additions and 35 deletions

View File

@ -272,41 +272,37 @@ television and DVD. It is also known as AC-3.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public libaom (define-public libaom
;; The 1.0.0-errata1 release installs a broken pkg-config .pc file. This (package
;; is fixed in libaom commit 0ddc150, but we use an even later commit. (name "libaom")
(let ((commit "22b150bf040608028a56d8bf39e72f771383d836") (version "1.0.0-errata1-avif")
(revision "0")) (source (origin
(package (method git-fetch)
(name "libaom") (uri (git-reference
(version (git-version "1.0.0-errata1" revision commit)) (url "https://aomedia.googlesource.com/aom/")
(source (origin (commit (string-append "v" version))))
(method git-fetch) (file-name (git-file-name name version))
(uri (git-reference (sha256
(url "https://aomedia.googlesource.com/aom/") (base32
(commit commit))) "169yfgh7zigc21h71qclfyr7s4wwp2i9vbr4z6pkabypvass4v7m"))))
(file-name (git-file-name name version)) (build-system cmake-build-system)
(sha256 (native-inputs
(base32 `(("perl" ,perl)
"1pdd5h3n42607n6qmggz4yv8izhjr2kl6knb3kh7gh4v0vy47h1r")))) ("pkg-config" ,pkg-config)
(build-system cmake-build-system) ("python" ,python))) ; to detect the version
(native-inputs (arguments
`(("perl" ,perl) `(#:tests? #f ;no check target
("pkg-config" ,pkg-config) #:configure-flags
("python" ,python))) ; to detect the version ;; build dynamic library
(arguments (list "-DBUILD_SHARED_LIBS=YES"
`(#:tests? #f ;no check target "-DENABLE_PIC=TRUE"
#:configure-flags "-DAOM_TARGET_CPU=generic"
;; build dynamic library (string-append "-DCMAKE_INSTALL_PREFIX="
(list "-DBUILD_SHARED_LIBS=YES" (assoc-ref %outputs "out")))))
"-DENABLE_PIC=TRUE" (home-page "https://aomedia.googlesource.com/aom/")
"-DAOM_TARGET_CPU=generic" (synopsis "AV1 video codec")
(string-append "-DCMAKE_INSTALL_PREFIX=" (description "Libaom is the reference implementation of AV1. It includes a
(assoc-ref %outputs "out"))))) shared library and encoder and decoder command-line executables.")
(home-page "https://aomedia.googlesource.com/aom/") (license license:bsd-2)))
(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 (define-public libmpeg2
(package (package