60 lines
1.9 KiB
Ruby
60 lines
1.9 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.3.tar.xz"
|
|
sha256 "dbfa20283848f0347a223dd8523dfb62e09e5220b21b1d157a8b0c8b67ba9f52"
|
|
license "LGPL-2.0-or-later"
|
|
head "https://gitlab.freedesktop.org/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 arm64_big_sur: "8dc45556d4090a686375d78f50f3187b88121023f3024ffaa9cc65e1fc8ebb15"
|
|
sha256 big_sur: "c386d9f8ee2700a3dc9acd8cc73f4bd5e2ead2baceca3ff17b995f6723da6a24"
|
|
sha256 catalina: "564476c1219d2850bf6282700f8641580921d0c9d6fa1e8f18bde4981345dd0f"
|
|
sha256 mojave: "ceec6241e4c5f756770f9f780449f5a3eec67ad2782406fdb12b4d5320ea4b5f"
|
|
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
|