homebrew-core/Formula/gst-libav.rb

41 lines
1.3 KiB
Ruby

class GstLibav < Formula
desc "GStreamer plugins for Libav (a fork of FFmpeg)"
homepage "https://gstreamer.freedesktop.org/"
url "https://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.18.1.tar.xz"
sha256 "39a717bc2613efbbba19df3cf5cacff0987471fc8281ba2c5dcdeaded79c2ed8"
license "LGPL-2.1-or-later"
head "https://anongit.freedesktop.org/git/gstreamer/gst-libav.git"
livecheck do
url "https://gstreamer.freedesktop.org/src/gst-libav/"
regex(/href=.*?gst-libav[._-]v?(\d+\.\d*[02468](?:\.\d+)*)\.t/i)
end
bottle do
cellar :any
sha256 "ec5a17778ac65516a680720bf043c3b24b0179206feb73f51af93c9561c5a9f4" => :catalina
sha256 "1c2ad08f4f370312dbd76147adfab701add6dede88f2e33fbe235863d1593c4c" => :mojave
sha256 "a52885ace509f56e539632ea7dcfbb03d2e93221a5575ddce2afe06dd99a599d" => :high_sierra
end
depends_on "meson" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on "yasm" => :build
depends_on "ffmpeg"
depends_on "gst-plugins-base"
depends_on "xz" # For LZMA
def install
mkdir "build" do
system "meson", *std_meson_args, ".."
system "ninja", "-v"
system "ninja", "install", "-v"
end
end
test do
system "#{Formula["gstreamer"].opt_bin}/gst-inspect-1.0", "libav"
end
end