Add libvpx to ffmpeg (#25155)
This commit is contained in:
parent
8f238c03ad
commit
4af6d6bb1b
2 changed files with 35 additions and 1 deletions
|
@ -15,7 +15,7 @@ class Ffmpeg(AutotoolsPackage):
|
|||
|
||||
maintainers = ['xjrc']
|
||||
|
||||
version('4.3.2', sha256='ab3a6d6a70358ba0a5f67f37f91f6656b7302b02e98e5b8c846c16763c99913a')
|
||||
version('4.3.2', sha256='ab3a6d6a70358ba0a5f67f37f91f6656b7302b02e98e5b8c846c16763c99913a')
|
||||
version('4.2.2', sha256='b620d187c26f76ca19e74210a0336c3b8380b97730df5cdf45f3e69e89000e5c')
|
||||
version('4.1.1', sha256='0cb40e3b8acaccd0ecb38aa863f66f0c6e02406246556c2992f67bf650fab058')
|
||||
version('4.1', sha256='b684fb43244a5c4caae652af9022ed5d85ce15210835bce054a33fb26033a1a5')
|
||||
|
@ -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