summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/libvpx/package.py
blob: 063c76c9bc1083b0c7f44f39f2b97fb85239904b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 2013-2024 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.package 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"

    license("BSD-3-Clause")

    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