homebrew-core/Formula/gst-plugins-bad.rb
2019-06-18 08:24:31 +02:00

60 lines
1.7 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.16.0.tar.xz"
sha256 "22139de35626ada6090bdfa3423b27b7fc15a0198331d25c95e6b12cb1072b05"
revision 1
bottle do
sha256 "22cad057848653fed6dbbe94f95d13d158fd4bca5b0168f3a06c30bdb96a2225" => :mojave
sha256 "d03cde706f512aa5d15b77895aa2988b41d0241de7bcd567bb7c59e6baad139a" => :high_sierra
sha256 "5c28732cc6646aad8fffbacc0a0156ce7ae1083c5ea3083ffcdc5d76dc4d66a1" => :sierra
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 "gobject-introspection" => :build
depends_on "libtool" => :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 "openssl"
depends_on "opus"
depends_on "orc"
def install
args = %W[
--prefix=#{prefix}
--disable-yadif
--disable-examples
--disable-debug
--disable-dependency-tracking
--enable-introspection=yes
]
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