59 lines
1.8 KiB
Ruby
59 lines
1.8 KiB
Ruby
class GstPluginsBase < Formula
|
|
desc "GStreamer plugins (well-supported, basic set)"
|
|
homepage "https://gstreamer.freedesktop.org/"
|
|
url "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.18.1.tar.xz"
|
|
sha256 "1ba654d7de30f7284b4c7071b32f881b609733ce02ab6d9d9ea29386a036c641"
|
|
license "LGPL-2.0-or-later"
|
|
head "https://anongit.freedesktop.org/git/gstreamer/gst-plugins-base.git"
|
|
|
|
livecheck do
|
|
url "https://gstreamer.freedesktop.org/src/gst-plugins-base/"
|
|
regex(/href=.*?gst-plugins-base[._-]v?(\d+\.\d*[02468](?:\.\d+)*)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 "e934967b8bae91c04b35ffe6fa1ad07f2e24c344e016cfe70485778c516a9772" => :catalina
|
|
sha256 "13286fe98cc25bd06d45fa7455be504dbe601719f96acbb6668f8efc4abba8be" => :mojave
|
|
sha256 "b0e5f10235f772947a1c9b51a88f4cca5d37beec3e869013525b05bd5658dfda" => :high_sierra
|
|
end
|
|
|
|
depends_on "gobject-introspection" => :build
|
|
depends_on "meson" => :build
|
|
depends_on "ninja" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gettext"
|
|
depends_on "graphene"
|
|
depends_on "gstreamer"
|
|
depends_on "libogg"
|
|
depends_on "libvorbis"
|
|
depends_on "opus"
|
|
depends_on "orc"
|
|
depends_on "pango"
|
|
depends_on "theora"
|
|
|
|
def install
|
|
# gnome-vfs turned off due to lack of formula for it.
|
|
args = std_meson_args + %w[
|
|
-Dintrospection=enabled
|
|
-Dlibvisual=disabled
|
|
-Dalsa=disabled
|
|
-Dcdparanoia=disabled
|
|
-Dx11=disabled
|
|
-Dxvideo=disabled
|
|
-Dxshm=disabled
|
|
]
|
|
|
|
mkdir "build" do
|
|
system "meson", *args, ".."
|
|
system "ninja", "-v"
|
|
system "ninja", "install", "-v"
|
|
end
|
|
end
|
|
|
|
test do
|
|
gst = Formula["gstreamer"].opt_bin/"gst-inspect-1.0"
|
|
output = shell_output("#{gst} --plugin volume")
|
|
assert_match version.to_s, output
|
|
end
|
|
end
|