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-04-29 10:59:35 +00:00
|
|
|
url 'http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.0.7.tar.xz'
|
|
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gstreamer-1.0.7.tar.xz'
|
|
|
|
sha256 '68cada7ee24ede23e15dc81ccde11898eed1a7a3c6a2d81a8c31596fccb1b5ce'
|
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
|