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.0.tar.xz"
|
|
sha256 "762abdd1a950809a1cea62fff7f86b5f7d6bd5f6841e3e585c700b823cdb7897"
|
|
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 "6a4bc0eb83b7da19c9bdf7dd90c5a6ac0b48893042a43bac03dcbfeef340e592" => :catalina
|
|
sha256 "f07de5c70880b4c54bf89a1dc60c4ce69330314fb90fea344c2b5f3b6025d8de" => :mojave
|
|
sha256 "f25b8273bc5fd5d921dde74831b9ccb6bb3fc123c7565027017a459176732a1d" => :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
|