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.14.0.tar.xz" sha256 "ed5e2badb6f2858f60017b93334d91fe58a0e3f85ed2f37f2e931416fafb4f9f" revision 1 bottle do sha256 "308d9c4c72913fc8765a01448ca32570df1bc502440ff44fbffc340964348b54" => :high_sierra sha256 "84f80a511ddcb9943756c51b7ae6590d1edd56dca35db1db80ec3a525c0de29e" => :sierra sha256 "1d376f912b04d799e2fc4a23c272540520737134995ac5025fd1312946b7a8a6" => :el_capitan end head do url "https://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad.git" depends_on "autoconf" => :build depends_on "automake" => :build end depends_on "libtool" => :build depends_on "pkg-config" => :build depends_on "gettext" depends_on "gst-plugins-base" depends_on "openssl" depends_on "jpeg" => :recommended depends_on "orc" => :recommended depends_on "dirac" => :optional depends_on "faac" => :optional depends_on "faad2" => :optional depends_on "fdk-aac" => :optional depends_on "gnutls" => :optional depends_on "libdvdread" => :optional depends_on "libexif" => :optional depends_on "libmms" => :optional depends_on "libnice" => :optional depends_on "libvo-aacenc" => :optional depends_on "opencv@2" => :optional depends_on "opus" => :optional depends_on "rtmpdump" => :optional depends_on "schroedinger" => :optional depends_on "sound-touch" => :optional depends_on "srt" => :optional def install args = %W[ --prefix=#{prefix} --disable-yadif --disable-examples --disable-debug --disable-dependency-tracking ] if build.head? # autogen is invoked in "stable" build because we patch configure.ac ENV["NOCONFIGURE"] = "yes" system "./autogen.sh" end system "./configure", *args system "make" system "make", "install" 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