97 lines
2.7 KiB
Ruby
97 lines
2.7 KiB
Ruby
class GstPluginsGood < Formula
|
|
desc "GStreamer plugins (well-supported, under the LGPL)"
|
|
homepage "https://gstreamer.freedesktop.org/"
|
|
|
|
stable do
|
|
url "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.10.3.tar.xz"
|
|
sha256 "4e07e93e34d4b93208f1579c21e7d91a236577b36f128a5332ffee85b4465955"
|
|
|
|
depends_on "check" => :optional
|
|
end
|
|
|
|
bottle do
|
|
sha256 "f55cef2e8236944ab7b51d658eaa7d241a66418a2e566be904e912eff8048757" => :sierra
|
|
sha256 "d33856fdc5b7f937c875d426fa4a48e19fc67a2e6f79fc462e13e00e701548fd" => :el_capitan
|
|
sha256 "e7b506ccb9d86c0d4198cc3d277de2b77d273609fe35f55dd6a2ce8176ed5187" => :yosemite
|
|
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 "gettext"
|
|
depends_on "gst-plugins-base"
|
|
depends_on "libsoup"
|
|
|
|
depends_on :x11 => :optional
|
|
|
|
# Dependencies based on the intersection of
|
|
# https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/REQUIREMENTS
|
|
# and Homebrew formulae.
|
|
depends_on "jpeg" => :recommended
|
|
depends_on "orc" => :recommended
|
|
depends_on "gdk-pixbuf" => :optional
|
|
depends_on "aalib" => :optional
|
|
depends_on "cairo" => :optional
|
|
depends_on "flac" => [:optional, "with-libogg"]
|
|
depends_on "libcaca" => :optional
|
|
depends_on "libdv" => :optional
|
|
depends_on "libpng" => :optional
|
|
depends_on "libshout" => :optional
|
|
depends_on "speex" => :optional
|
|
depends_on "taglib" => :optional
|
|
|
|
depends_on "libvpx" => :optional
|
|
depends_on "pulseaudio" => :optional
|
|
depends_on "jack" => :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
|
|
if MacOS.version == :snow_leopard
|
|
args << "--disable-osx_video"
|
|
end
|
|
|
|
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
|