homebrew-core/Formula/gst-plugins-base.rb
2017-06-29 04:06:26 -07: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.12.1.tar.xz"
sha256 "0cce9fadb574a840b3c9d31b69faf57aad6c5543c3b134a7b935de866c9e0465"
bottle do
sha256 "d34ac9c0ab02d8aa9f4271079f5417b871a77451db60d898d93e5ccbc16387bf" => :sierra
sha256 "184edc7dcf64473a8b38018b5583d7c73e1095ec37c2cde6376cac83078e95ba" => :el_capitan
sha256 "a5a98b2430d1c64f99f56fe6656f266e26bc9df99b55a770e52f2d067f32b11b" => :yosemite
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
# https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/REQUIREMENTS
# and Homebrew formulae
depends_on "gobject-introspection"
depends_on "orc" => :recommended
depends_on "libogg" => :optional
depends_on "opus" => :optional
depends_on "pango" => :optional
depends_on "theora" => :optional
depends_on "libvorbis" => :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