69 lines
2.1 KiB
Ruby
69 lines
2.1 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.14.1.tar.xz"
|
|
sha256 "2a77c6908032aafdf2cd2e5823fec948f16a25c2d1497a953828d762dc20d61a"
|
|
|
|
bottle do
|
|
sha256 "399b1ced6726d0c85bb39f3f661da278dcfafe315a51b1dbd31c7c1cf7e53464" => :high_sierra
|
|
sha256 "5ce657fdf7376e8fe1cfd226d424b48d376d78d9f56f6e28391f6a4954275706" => :sierra
|
|
sha256 "4e126ce99e66fe3742687c8262652c071aa106778ce114cdb44c815c52b69131" => :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
|