Add libvpx to ffmpeg (#25155)
This commit is contained in:
parent
8f238c03ad
commit
4af6d6bb1b
2 changed files with 35 additions and 1 deletions
|
@ -52,6 +52,7 @@ class Ffmpeg(AutotoolsPackage):
|
|||
variant('libspeex', default=False, description='Speex de/encoding')
|
||||
variant('libssh', default=False, description='SFTP protocol')
|
||||
variant('libvorbis', default=False, description='Vorbis en/decoding')
|
||||
variant('libvpx', default=False, description='VP9 en/decoding')
|
||||
variant('libwebp', default=False, description='WebP encoding via libwebp')
|
||||
# TODO: There is an issue with the spack headers property in the libxml2
|
||||
# package recipe. Comment out the libxml2 variant until that is resolved.
|
||||
|
@ -77,6 +78,7 @@ class Ffmpeg(AutotoolsPackage):
|
|||
depends_on('lame', when='+libmp3lame')
|
||||
depends_on('libssh', when='+libssh')
|
||||
depends_on('libvorbis', when='+libvorbis')
|
||||
depends_on('libvpx', when='+libvpx')
|
||||
depends_on('libwebp', when='+libwebp')
|
||||
# TODO: enable libxml2 when libxml2 header issue is resolved
|
||||
# depends_on('libxml2', when='+libxml2')
|
||||
|
@ -164,6 +166,7 @@ def configure_args(self):
|
|||
'libopus',
|
||||
'libspeex',
|
||||
'libvorbis',
|
||||
'libvpx',
|
||||
'avresample',
|
||||
'openssl',
|
||||
'shared',
|
||||
|
|
31
var/spack/repos/builtin/packages/libvpx/package.py
Normal file
31
var/spack/repos/builtin/packages/libvpx/package.py
Normal file
|
@ -0,0 +1,31 @@
|
|||
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
|
||||
# Spack Project Developers. See the top-level COPYRIGHT file for details.
|
||||
#
|
||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||
|
||||
from spack import *
|
||||
|
||||
|
||||
class Libvpx(AutotoolsPackage):
|
||||
"""libvpx is a free software video codec library from Google and the
|
||||
Alliance for Open Media.
|
||||
It serves as the reference software implementation for the VP8 and VP9
|
||||
video coding formats, and for AV1 a special fork named libaom that was
|
||||
stripped of backwards compatibility.
|
||||
"""
|
||||
|
||||
homepage = "https://chromium.googlesource.com/webm/libvpx"
|
||||
url = "https://github.com/webmproject/libvpx/archive/refs/tags/v1.10.0.tar.gz"
|
||||
|
||||
version('1.10.0', sha256='85803ccbdbdd7a3b03d930187cb055f1353596969c1f92ebec2db839fa4f834a')
|
||||
|
||||
variant('pic', default=True,
|
||||
description='Produce position-independent code (for shared libs)')
|
||||
|
||||
depends_on('yasm')
|
||||
|
||||
def configure_args(self):
|
||||
extra_args = []
|
||||
if "+pic" in self.spec:
|
||||
extra_args.append('--enable-pic')
|
||||
return extra_args
|
Loading…
Reference in a new issue