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.2.tar.xz" sha256 "9dbebe079c2ab2004ef7f2649fa317cabea1feb4fb5605c24d40744b90918341" bottle do sha256 "c4ad88725ac277b47e62fdbf4ad4116344e3e05670729143a8f6f99f2cd4462e" => :el_capitan sha256 "82a4d1d72d76c3480a6207fc899289717becd179e227a2b294984ca8e55f3147" => :yosemite sha256 "8381431e671456f375bdc8421dbbcd5d6d1ae1ba1dd4730e35cebe2f1e3f462c" => :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