69 lines
2 KiB
Ruby
69 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.14.0.tar.xz"
|
|
sha256 "7e904660ff56e02b036cf7fdfb77a50a540828ca9d2614d69ba931772e5b6940"
|
|
revision 1
|
|
|
|
bottle do
|
|
sha256 "0a82c40cf5b175045cf16a08f53e7ef0eee5ea11c4c1b27bc3d0a210b2de0919" => :high_sierra
|
|
sha256 "a7b042843228bc8524ae462214283daa56b2ff9145959d64272698b8db52df34" => :sierra
|
|
sha256 "5c43f575a15843ef1432c9fe59cecea79376619f5abd6edf9da6e18594c89192" => :el_capitan
|
|
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 "gobject-introspection" => :build
|
|
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 "orc" => :recommended
|
|
depends_on "libogg" => :optional
|
|
depends_on "opus" => :optional
|
|
depends_on "pango" => :recommended
|
|
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
|