homebrew-core/Formula/gstreamer.rb
Jack Nagel b937b25846 gstreamer 0.10.36
- disable introspection

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-01 14:31:39 -05:00

29 lines
1 KiB
Ruby

require 'formula'
class Gstreamer < Formula
homepage 'http://gstreamer.freedesktop.org/'
url 'http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.36.tar.bz2'
sha256 'e556a529e0a8cf1cd0afd0cab2af5488c9524e7c3f409de29b5d82bb41ae7a30'
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",
"--enable-introspection=no"
system "make"
system "make install"
end
end