homebrew-core/Formula/libvpx.rb

47 lines
1.6 KiB
Ruby

class Libvpx < Formula
desc "VP8/VP9 video codec"
homepage "https://www.webmproject.org/code/"
url "https://github.com/webmproject/libvpx/archive/v1.12.0.tar.gz"
sha256 "f1acc15d0fd0cb431f4bf6eac32d5e932e40ea1186fe78e074254d6d003957bb"
license "BSD-3-Clause"
head "https://chromium.googlesource.com/webm/libvpx.git", branch: "main"
bottle do
rebuild 1
sha256 cellar: :any, arm64_monterey: "95d64306db3eb31d8f8da747a067a6560acf9484f33bd8cca64b74835b8073ce"
sha256 cellar: :any, arm64_big_sur: "d571549026b2c719d055a9009ed7ce65060ff448da7a68e014f19d7543379a49"
sha256 cellar: :any, monterey: "5c54abac298c4b6d2113d17343304ae9e0520f284a185f46e1baa03b10f60f9b"
sha256 cellar: :any, big_sur: "79e7d1a069bb6219b094fa9c51cd794e163623cda2b2fd8cbd5e41a77ace0eef"
sha256 cellar: :any, catalina: "9dcef4d29542d3506e3a2c458f6ae2eb36df48599cadf1a82fec972fcfacd935"
sha256 cellar: :any_skip_relocation, x86_64_linux: "763bca80c18bed0bea0704494e7370b919a498ac3521ff6f6f193a8902f78295"
end
depends_on "yasm" => :build
def install
args = %W[
--prefix=#{prefix}
--disable-dependency-tracking
--disable-examples
--disable-unit-tests
--enable-pic
--enable-shared
--enable-vp9-highbitdepth
]
if Hardware::CPU.intel?
ENV.runtime_cpu_detection
args << "--enable-runtime-cpu-detect"
end
mkdir "macbuild" do
system "../configure", *args
system "make", "install"
end
end
test do
system "ar", "-x", "#{lib}/libvpx.a"
end
end