homebrew-core/Formula/gst-plugins-base.rb
2016-08-20 15:05:43 +01:00

68 lines
2 KiB
Ruby

class GstPluginsBase < Formula
desc "GStreamer plugins (well-supported, basic set)"
homepage "https://gstreamer.freedesktop.org/"
url "https://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.8.3.tar.xz"
sha256 "114871d4d63606b4af424a8433cd923e4ff66896b244bb7ac97b9da47f71e79e"
bottle do
sha256 "dfd0c8607e2d6a9d8787213f7744c8e85eecfd38b15e650a39db5bbff348f5d5" => :el_capitan
sha256 "0f8e7e32dcb0e5eb2cececd4bb22bb4e881f41be658c68000359a0426b254c79" => :yosemite
sha256 "ea0334a619a8e73df462c5d805041301db6b1c91c905c8245170a660e7c94804" => :mavericks
end
head do
url "https://anongit.freedesktop.org/git/gstreamer/gst-plugins-base.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "gettext"
depends_on "gstreamer"
# The set of optional dependencies is based on the intersection of
# gst-plugins-base-0.10.35/REQUIREMENTS and Homebrew formulae
depends_on "gobject-introspection"
depends_on "orc" => :optional
depends_on "gtk+" => :optional
depends_on "libogg" => :optional
depends_on "pango" => :optional
depends_on "theora" => :optional
depends_on "libvorbis" => :optional
depends_on "opus" => :optional
def install
# gnome-vfs turned off due to lack of formula for it.
args = %W[
--prefix=#{prefix}
--enable-experimental
--disable-libvisual
--disable-alsa
--disable-cdparanoia
--without-x
--disable-x
--disable-xvideo
--disable-xshm
--disable-debug
--disable-dependency-tracking
--enable-introspection=yes
]
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 volume")
assert_match version.to_s, output
end
end