63 lines
2.0 KiB
Ruby
63 lines
2.0 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.18.5.tar.xz"
|
|
sha256 "a164923b94f0d08578a6fcaeaac6e0c05da788a46903a1086870e9ca45ad678e"
|
|
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: "dde4d6cfd0155909796ec64257b341771b9290de2d810ddf6c73d3e0082777d4"
|
|
sha256 arm64_big_sur: "5f6a7d9ec44b87eb2329a28081690e0dedc92a8249ee1917555b599c12c9b34f"
|
|
sha256 monterey: "12c0770c68276b0d7aacb5e1cdeae1bcff7625a132047c7bdf17d3ae560393f6"
|
|
sha256 big_sur: "09ffdb7a6ad9b236eb3280e122452c51db5f88680e54937393f7b0199e82e5ea"
|
|
sha256 catalina: "1d7244264c14c8a311513162769b37fb4a6537d1e4398636096b920e05deb16c"
|
|
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 "libmms"
|
|
depends_on "libnice"
|
|
depends_on "libusrsctp"
|
|
depends_on "musepack"
|
|
depends_on "openssl@1.1"
|
|
depends_on "opus"
|
|
depends_on "orc"
|
|
depends_on "rtmpdump"
|
|
depends_on "srtp"
|
|
|
|
def install
|
|
args = std_meson_args + %w[
|
|
-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
|