homebrew-core/Formula/gst-plugins-bad.rb

61 lines
1.8 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.0.tar.xz"
sha256 "f382ab1caddd64aaa7acb7c4787487f63fd39bd0fde9c757655cbaa457c1185f"
license "LGPL-2.0-or-later"
head "https://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad.git"
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 "f12df9ec7b12b106ab72ae58d2955bae9e4a4d65223e2df4837613bf519b0c73" => :catalina
sha256 "7fc1ad19c1c314ae6ea745d899463c5055ed6ebab6cc5fdb715a37b107ecefc5" => :mojave
sha256 "0854322c4f59be22497fa315490e13e84b12a3c7203e36d572f1458db788e225" => :high_sierra
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