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.8.2.tar.xz"
|
|
sha256 "9d7109c8fb0a5dec8edb17b0053c59a46aba7ddf48dc48ea822ebbbd4339d38d"
|
|
|
|
bottle do
|
|
sha256 "493fbda9d56d37063da03f069ec73ed253af73d028ef6a94676645f8ceeb2c9a" => :el_capitan
|
|
sha256 "fc1e5a934a0e7293fcd6bde38f627beae7c59069bcae2ae1fdd812961ccb9613" => :yosemite
|
|
sha256 "dfef2ed4a9041298eb621cf079dec31d43785c41f1b92435ee94dddae4a05962" => :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
|