70 lines
2.3 KiB
Ruby
70 lines
2.3 KiB
Ruby
class GstPluginsBad < Formula
|
|
desc "GStreamer plugins less supported, not fully tested"
|
|
homepage "https://gstreamer.freedesktop.org/"
|
|
url "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.20.3.tar.xz"
|
|
sha256 "7a11c13b55dd1d2386dd902219e41cbfcdda8e1e0aa3e738186c95074b35da4f"
|
|
license "LGPL-2.0-or-later"
|
|
head "https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad.git", branch: "master"
|
|
|
|
livecheck do
|
|
url "https://gstreamer.freedesktop.org/src/gst-plugins-bad/"
|
|
regex(/href=.*?gst-plugins-bad[._-]v?(\d+\.\d*[02468](?:\.\d+)*)\.t/i)
|
|
end
|
|
|
|
bottle do
|
|
sha256 arm64_monterey: "46da6999173d22ef0fd829526a64b3f3f89f616303b0ac1afe893fadfaec3232"
|
|
sha256 arm64_big_sur: "de6fdaac3c569c9a78a499faf6966272a183a1d9f61694e78122a2dcd977c133"
|
|
sha256 monterey: "976262867aad49f38d0a731c1c9df014a47cff8ae8db884640fd87062d2f99a5"
|
|
sha256 big_sur: "1a847ff34650437ed1b5c1f05e49f815f52286b2ec8b7740c6dd44269cd6c285"
|
|
sha256 catalina: "3d57ee5dcf5458c0478435c8f8b327b37a20d80f2483e7c06216752c26831d41"
|
|
sha256 x86_64_linux: "3b2c2623d83f2a701b4ec8c09dd7770c6694414d4dc9b290f3ea0c8d5e638792"
|
|
end
|
|
|
|
depends_on "gobject-introspection" => :build
|
|
depends_on "meson" => :build
|
|
depends_on "ninja" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "faac"
|
|
depends_on "faad2"
|
|
depends_on "gettext"
|
|
depends_on "gst-plugins-base"
|
|
depends_on "jpeg"
|
|
depends_on "libnice"
|
|
depends_on "libusrsctp"
|
|
depends_on "openssl@1.1"
|
|
depends_on "opus"
|
|
depends_on "orc"
|
|
depends_on "rtmpdump"
|
|
depends_on "srtp"
|
|
|
|
on_macos do
|
|
# musepack is not bottled on Linux
|
|
# https://github.com/Homebrew/homebrew-core/pull/92041
|
|
depends_on "musepack"
|
|
end
|
|
|
|
def install
|
|
# Plugins with GPL-licensed dependencies: faad
|
|
args = std_meson_args + %w[
|
|
-Dgpl=enabled
|
|
-Dintrospection=enabled
|
|
-Dexamples=disabled
|
|
]
|
|
|
|
# The apple media plug-in uses API that was added in Mojave
|
|
args << "-Dapplemedia=disabled" if MacOS.version <= :high_sierra
|
|
|
|
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 dvbsuboverlay")
|
|
assert_match version.to_s, output
|
|
end
|
|
end
|