68 lines
2 KiB
Ruby
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.10.2.tar.xz"
|
|
sha256 "fbc0d40fcb746d2efe2ea47444674029912f66e6107f232766d33b722b97de20"
|
|
|
|
bottle do
|
|
sha256 "3aad84d7b52162c03bb688d5a67a7fcb1714cbd65da2ee9c2d14ac771f9d6a0a" => :sierra
|
|
sha256 "6aa96434fb5cea8ade5298c7cd866e28bf474c12220593511ef8a36a42e3bbc7" => :el_capitan
|
|
sha256 "9335bb7accb89d23c00cd0a4cadbebb8af739917b4215b4b58f9f1cd32e32bc5" => :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
|