summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorgpotter2 <gabriel@potter.fr>2021-08-05 17:55:03 +0200
committerGitHub <noreply@github.com>2021-08-05 10:55:03 -0500
commit4af6d6bb1b11d9b167307d842d1652f4d462eee8 (patch)
tree5e3e1098d573c740fef0f5f47fd79fa7234f7ef8 /var
parent8f238c03ad63d72fdf2f6fe419dffe04c27a5f4d (diff)
downloadspack-4af6d6bb1b11d9b167307d842d1652f4d462eee8.tar.gz
spack-4af6d6bb1b11d9b167307d842d1652f4d462eee8.tar.bz2
spack-4af6d6bb1b11d9b167307d842d1652f4d462eee8.tar.xz
spack-4af6d6bb1b11d9b167307d842d1652f4d462eee8.zip
Add libvpx to ffmpeg (#25155)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/ffmpeg/package.py5
-rw-r--r--var/spack/repos/builtin/packages/libvpx/package.py31
2 files changed, 35 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/ffmpeg/package.py b/var/spack/repos/builtin/packages/ffmpeg/package.py
index 9589712cab..0e7e66f562 100644
--- a/var/spack/repos/builtin/packages/ffmpeg/package.py
+++ b/var/spack/repos/builtin/packages/ffmpeg/package.py
@@ -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 @@ class Ffmpeg(AutotoolsPackage):
'libopus',
'libspeex',
'libvorbis',
+ 'libvpx',
'avresample',
'openssl',
'shared',
diff --git a/var/spack/repos/builtin/packages/libvpx/package.py b/var/spack/repos/builtin/packages/libvpx/package.py
new file mode 100644
index 0000000000..f6a4c11bfa
--- /dev/null
+++ b/var/spack/repos/builtin/packages/libvpx/package.py
@@ -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