homebrew-core/Formula/gst-plugins-bad.rb
2017-12-08 11:23:27 -08:00

71 lines
2.2 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.12.4.tar.xz"
sha256 "0c7857be16686d5c1ba6e34bd338664d3d4599d32714a8eca5c8a41a101e2d08"
bottle do
sha256 "8d38081505c63703e4edfe3cf6d2f8437640a7eb44d8e5ebf6b52e3f6d4e8ea8" => :high_sierra
sha256 "6b3d989d5ded213f9e95cc1d4bdfe331fa3309b509bf2a4ccb90b063102305b4" => :sierra
sha256 "fcd792f52f7b573a844d9829d14272157aec878dd6d27f6ad7388e5a4f916196" => :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 "gtk+3" => :optional
depends_on "libdvdread" => :optional
depends_on "libexif" => :optional
depends_on "libmms" => :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 "srtp@1.6" => :optional
depends_on "libvo-aacenc" => :optional
def install
args = %W[
--prefix=#{prefix}
--disable-yadif
--disable-examples
--disable-debug
--disable-dependency-tracking
]
args << "--with-gtk=3.0" if build.with? "gtk+3"
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