homebrew-core/Formula/gstreamer.rb
2016-01-23 12:40:00 +00:00

60 lines
1.8 KiB
Ruby

class Gstreamer < Formula
desc "GStreamer is a development framework for multimedia applications"
homepage "http://gstreamer.freedesktop.org/"
url "http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.6.3.tar.xz"
sha256 "22f9568d67b87cf700a111f381144bd37cb93790a77e4e331db01fe854a37f24"
bottle do
sha256 "cd910a2124e7b240c9c8087ed37629f0f443ff6b6c026d0aa1496ace732f43ea" => :el_capitan
sha256 "5b591159f6ec42693316c8a0e5bede93c2754adbbcf94c0e367a74f4b1a64206" => :yosemite
sha256 "7299e4fbcc7227ceb2ff3ce5e4f7398fa8ef9a4462706ea22b41e805aecf55f1" => :mavericks
end
head do
url "git://anongit.freedesktop.org/gstreamer/gstreamer"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on "pkg-config" => :build
depends_on "gobject-introspection"
depends_on "gettext"
depends_on "glib"
depends_on "bison"
def install
args = %W[
--prefix=#{prefix}
--disable-debug
--disable-dependency-tracking
--disable-gtk-doc
--enable-introspection=yes
]
if build.head?
ENV["NOCONFIGURE"] = "yes"
system "./autogen.sh"
# Ban trying to chown to root.
# https://bugzilla.gnome.org/show_bug.cgi?id=750367
args << "--with-ptp-helper-permissions=none"
end
# Look for plugins in HOMEBREW_PREFIX/lib/gstreamer-1.0 instead of
# HOMEBREW_PREFIX/Cellar/gstreamer/1.0/lib/gstreamer-1.0, so we'll find
# plugins installed by other packages without setting GST_PLUGIN_PATH in
# the environment.
inreplace "configure", 'PLUGINDIR="$full_var"',
"PLUGINDIR=\"#{HOMEBREW_PREFIX}/lib/gstreamer-1.0\""
system "./configure", *args
system "make"
system "make", "install"
end
test do
system bin/"gst-inspect-1.0"
end
end