homebrew-core/Formula/gstreamer.rb
2016-04-23 02:29:06 +01:00

60 lines
1.8 KiB
Ruby

class Gstreamer < Formula
desc "GStreamer is a development framework for multimedia applications"
homepage "https://gstreamer.freedesktop.org/"
url "https://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.8.1.tar.xz"
sha256 "5a3722fb9302dd977c17ced4240293dc777cb716dc98c8cca63d75c27e5e3107"
bottle do
sha256 "9de09a9fb66c27dd8f113614851342d393ce96ec1570053fda6fd7c5461d3f92" => :el_capitan
sha256 "e30d3e2df4bd46813c6bab038ff5a2fd3aabbb4d9787f94f5e2c44448cb8b0c3" => :yosemite
sha256 "d514dccba952a9a9a89282efd28f0174576135322d29a2b27c4dffc13b299b71" => :mavericks
end
head do
url "https://anongit.freedesktop.org/git/gstreamer/gstreamer.git"
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