62 lines
1.9 KiB
Ruby
62 lines
1.9 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.3.tar.xz"
|
|
sha256 "b7e34b6b86272588fbd8b314dadfa6ceff895198cfb59e2950378e9e31ff22e0"
|
|
license "LGPL-2.0-or-later"
|
|
head "https://gitlab.freedesktop.org/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 arm64_big_sur: "b3951a8d9abd3071641d858de2e0c4c561f054b2127ac0d9b91ef4e1bc7c58b2"
|
|
sha256 big_sur: "9b048da6ad514372eae4666162531568a220fb1f1bb5d8f2d6059ffe68c61aec"
|
|
sha256 catalina: "ffe6a9b602bf2d81ca8e84f1f3f1631633905edee1e7285da5ca8f418366811d"
|
|
sha256 mojave: "6b27d94add3cd30dc376019974738dff6547a22d668d53213c3b43c4167ed0ee"
|
|
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
|