74 lines
2.1 KiB
Ruby
74 lines
2.1 KiB
Ruby
class GstPluginsGood < Formula
|
|
desc "GStreamer plugins (well-supported, under the LGPL)"
|
|
homepage "https://gstreamer.freedesktop.org/"
|
|
revision 1
|
|
|
|
stable do
|
|
url "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.14.4.tar.xz"
|
|
sha256 "5f8b553260cb0aac56890053d8511db1528d53cae10f0287cfce2cb2acc70979"
|
|
end
|
|
|
|
bottle do
|
|
rebuild 1
|
|
sha256 "d8990cfef10c265919cebede7dc082dea71bee0b35acb237c6492c296c0b6d4d" => :mojave
|
|
sha256 "9bf3c99d23990e25aa06cecf01901815bc569097899c472abf58c7e671f50f09" => :high_sierra
|
|
sha256 "2827fd1f1435455b886afb045eeaf35fe2176ca443ba7ce973799d9d90b37f49" => :sierra
|
|
end
|
|
|
|
head do
|
|
url "https://anongit.freedesktop.org/git/gstreamer/gst-plugins-good.git"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "check"
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "cairo"
|
|
depends_on "flac"
|
|
depends_on "gettext"
|
|
depends_on "gst-plugins-base"
|
|
depends_on "jpeg"
|
|
depends_on "libpng"
|
|
depends_on "libshout"
|
|
depends_on "libsoup"
|
|
depends_on "libvpx"
|
|
depends_on "orc"
|
|
depends_on "speex"
|
|
depends_on "taglib"
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--disable-gtk-doc
|
|
--disable-goom
|
|
--with-default-videosink=ximagesink
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--disable-silent-rules
|
|
--disable-x
|
|
]
|
|
|
|
# This plugin causes hangs on Snow Leopard (and possibly other versions?)
|
|
# Upstream says it hasn't "been actively tested in a long time";
|
|
# successor is glimagesink (in gst-plugins-bad).
|
|
# https://bugzilla.gnome.org/show_bug.cgi?id=756918
|
|
args << "--disable-osx_video" if MacOS.version == :snow_leopard
|
|
|
|
if build.head?
|
|
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 cairo")
|
|
assert_match version.to_s, output
|
|
end
|
|
end
|