2010-06-16 19:09:39 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gstreamer < Formula
|
2010-06-16 19:09:39 +00:00
|
|
|
homepage 'http://gstreamer.freedesktop.org/'
|
2013-07-14 13:26:48 +00:00
|
|
|
url 'http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.0.8.tar.xz'
|
|
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gstreamer-1.0.8.tar.xz'
|
|
|
|
sha256 'ff70f45509566b88e35986971ace5e89cb6cb232e9ca249f84502abceef1762d'
|
2010-06-16 19:09:39 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-12 15:03:02 +00:00
|
|
|
depends_on 'xz' => :build
|
|
|
|
depends_on 'gobject-introspection' => :optional
|
2010-06-16 19:09:39 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'glib'
|
|
|
|
|
|
|
|
def install
|
2013-02-12 15:03:02 +00:00
|
|
|
# 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
|
2010-06-16 19:09:39 +00:00
|
|
|
# plugins installed by other packages without setting GST_PLUGIN_PATH in
|
|
|
|
# the environment.
|
|
|
|
inreplace "configure", 'PLUGINDIR="$full_var"',
|
2013-02-12 15:03:02 +00:00
|
|
|
"PLUGINDIR=\"#{HOMEBREW_PREFIX}/lib/gstreamer-1.0\""
|
2010-06-16 19:09:39 +00:00
|
|
|
|
|
|
|
ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing -fno-common"
|
2012-06-01 19:10:55 +00:00
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
2013-02-12 15:03:02 +00:00
|
|
|
"--disable-dependency-tracking"
|
2010-06-16 19:09:39 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|