2017-03-10 18:50:35 +00:00
|
|
|
class GstPluginsGoodAT010 < Formula
|
2017-03-13 17:02:05 +00:00
|
|
|
desc "GStreamer plugins (well-supported, under the LGPL)"
|
2017-03-13 17:02:54 +00:00
|
|
|
homepage "https://gstreamer.freedesktop.org/"
|
2017-03-10 18:50:35 +00:00
|
|
|
url "https://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-0.10.31.tar.bz2"
|
|
|
|
sha256 "7e27840e40a7932ef2dc032d7201f9f41afcaf0b437daf5d1d44dc96d9e35ac6"
|
|
|
|
|
2017-03-13 19:07:52 +00:00
|
|
|
bottle do
|
|
|
|
sha256 "34901e80453e914f5b9d0c177676bad5eed5df7f516fbfa4644661937c9dcca1" => :sierra
|
|
|
|
sha256 "c83939d0c7e928717ced578b1d406790e3c5d594a727cf8ad16f18fb2ce808a4" => :el_capitan
|
|
|
|
sha256 "b62bc4ff67d0f82fc3a6d35b8b525a26d77dd5ccdf8640ac1b1516b64c146bde" => :yosemite
|
|
|
|
end
|
|
|
|
|
2017-03-10 18:50:35 +00:00
|
|
|
depends_on :x11
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "gettext"
|
2017-03-13 17:03:41 +00:00
|
|
|
depends_on "gst-plugins-base@0.10"
|
2017-03-10 18:50:35 +00:00
|
|
|
depends_on "cairo"
|
|
|
|
|
|
|
|
# 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 "check" => :optional
|
|
|
|
depends_on "aalib" => :optional
|
|
|
|
depends_on "libcdio" => :optional
|
|
|
|
depends_on "flac" => :optional
|
|
|
|
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 "libsoup" => :optional
|
|
|
|
|
|
|
|
def install
|
2017-03-13 16:58:17 +00:00
|
|
|
args = %W[
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-schemas-install
|
|
|
|
--disable-gtk-doc
|
|
|
|
--disable-goom
|
|
|
|
--with-default-videosink=ximagesink
|
|
|
|
]
|
|
|
|
|
|
|
|
# Prevent "fatal error: 'QuickTime/QuickTime.h' file not found"
|
|
|
|
args << "--disable-osx_video" if DevelopmentTools.clang_build_version >= 800
|
|
|
|
|
|
|
|
system "./configure", *args
|
2017-03-10 18:50:35 +00:00
|
|
|
system "make"
|
|
|
|
system "make", "install"
|
|
|
|
end
|
2017-03-13 17:11:18 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
gst = Formula["gstreamer@0.10"].opt_bin/"gst-inspect-0.10"
|
|
|
|
output = shell_output("#{gst} --plugin cairo")
|
|
|
|
assert_match version.to_s, output
|
|
|
|
end
|
2017-03-10 18:50:35 +00:00
|
|
|
end
|