require "formula" class GstPluginsBase < Formula homepage "http://gstreamer.freedesktop.org/" url "http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.4.3.tar.xz" mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-base-1.4.3.tar.xz" sha256 "f7b4d2b3ba2bcac485896e2c1c36459cb091ebe8b49e91635c27d40f66792d9d" bottle do sha1 "09cb25f86c485f334f4f701eee22125524bd93dd" => :mavericks sha1 "77616a42a385c63d6aace654bb46fd33911064b3" => :mountain_lion sha1 "21f8ab77c6c49b9766c57b628f51019de745693e" => :lion end head do url "git://anongit.freedesktop.org/gstreamer/gst-plugins-base" depends_on :autoconf depends_on :automake depends_on :libtool 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 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 end