homebrew-core/Formula/gstreamer.rb
Aria Stewart 68e48659c5 Upgrade gstreamer to 0.10.31
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2010-12-19 20:43:02 +00:00

26 lines
902 B
Ruby

require 'formula'
class Gstreamer <Formula
homepage 'http://gstreamer.freedesktop.org/'
url 'http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.31.tar.bz2'
md5 'a21fb08bdb578d972c7c14e77da8fbb6'
depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on 'glib'
def install
# Look for plugins in HOMEBREW_PREFIX/lib/gstreamer-0.10 instead of
# HOMEBREW_PREFIX/Cellar/gstreamer/0.10/lib/gstreamer-0.10, 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-0.10\""
ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing -fno-common"
system "./configure", "--prefix=#{prefix}", "--disable-debug",
"--disable-dependency-tracking"
system "make"
system "make install"
end
end