class Gstreamer < Formula desc "GStreamer is a development framework for multimedia applications" homepage "http://gstreamer.freedesktop.org/" url "https://download.gnome.org/sources/gstreamer/1.6/gstreamer-1.6.2.tar.xz" sha256 "5896716bd8e089dba452932a2eff2bb6f6c9d58ff64a96635d157f1ffaf8feb2" bottle do sha256 "685890cb9c1b4e4063d9ba9bd77f4a73dd22d97d5b7dca0bc416000dab80964b" => :el_capitan sha256 "b43979ee2f9b68a1cc95dd9a1bf32ae11e36c5324543f5d26d2b63ecf5b6327f" => :yosemite sha256 "3a650e5b242c7d33bb2c0fd66e9ab5954587769986bc455d0a3a3455402547ec" => :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