homebrew-core/Formula/gstreamer.rb

56 lines
1.6 KiB
Ruby
Raw Normal View History

require "formula"
2011-03-10 05:11:03 +00:00
class Gstreamer < Formula
homepage "http://gstreamer.freedesktop.org/"
url "http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.4.5.tar.xz"
mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gstreamer-1.4.5.tar.xz"
sha256 "40801aa7f979024526258a0e94707ba42b8ab6f7d2206e56adbc4433155cb0ae"
2014-06-09 16:05:56 +00:00
bottle do
2015-01-01 14:32:22 +00:00
revision 1
sha1 "6dc46c6ae68a1edf24ec3d92fac5512cd6c6014f" => :yosemite
sha1 "2c4db754eab30e5a4a6674ba73b2236e2254757f" => :mavericks
sha1 "9c0cdab28d02577b949dacbf838bbb1065daa0ef" => :mountain_lion
2014-06-09 16:05:56 +00:00
end
2013-09-20 15:15:56 +00:00
head do
url "git://anongit.freedesktop.org/gstreamer/gstreamer"
2014-12-04 17:01:23 +00:00
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"
2014-07-21 13:08:57 +00:00
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"
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
end