homebrew-core/Formula/gst-plugins-good.rb
2015-12-15 02:48:05 +00:00

85 lines
2.5 KiB
Ruby

class GstPluginsGood < Formula
desc "GStreamer plugins (well-supported, under the LGPL)"
homepage "http://gstreamer.freedesktop.org/"
stable do
url "https://download.gnome.org/sources/gst-plugins-good/1.6/gst-plugins-good-1.6.2.tar.xz"
sha256 "876e54dfce93274b98e024f353258d35fa4d49d1f9010069e676c530f6eb6a92"
depends_on "check" => :optional
end
bottle do
sha256 "2b270292dd58a8b0a703ee00f80f50100eeb48617cfbf024eb4d3beeb25c40d5" => :el_capitan
sha256 "5d76d76b1914d9a1f589a32a6795f3e17870ca68820ddce07ab23554e2bd42a9" => :yosemite
sha256 "4990905eb444d443e8488858c3cf362da11e66d9c886e25f5fd0f9245d7a5de4" => :mavericks
end
head do
url "git://anongit.freedesktop.org/gstreamer/gst-plugins-good"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "check"
end
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "gst-plugins-base"
depends_on "libsoup"
depends_on :x11 => :optional
# The set of optional dependencies is based on the intersection of
# gst-plugins-good-0.10.30/REQUIREMENTS and Homebrew formulae
depends_on "orc" => :optional
depends_on "gtk+" => :optional
depends_on "aalib" => :optional
depends_on "libcdio" => :optional
depends_on "esound" => :optional
depends_on "flac" => [:optional, "with-libogg"]
depends_on "jpeg" => :optional
depends_on "libcaca" => :optional
depends_on "libdv" => :optional
depends_on "libshout" => :optional
depends_on "speex" => :optional
depends_on "taglib" => :optional
depends_on "libpng" => :optional
depends_on "libvpx" => :optional
depends_on "libogg" if build.with? "flac"
def install
args = %W[
--prefix=#{prefix}
--disable-gtk-doc
--disable-goom
--with-default-videosink=ximagesink
--disable-debug
--disable-dependency-tracking
--disable-silent-rules
]
if build.with? "x11"
args << "--with-x"
else
args << "--disable-x"
end
# 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
end