5ee23a1631
Building from gstreamer master is required for development purpose. Also gest-plugins-* and gst-libav get --HEAD. Closes Homebrew/homebrew#21665. Signed-off-by: Samuel John <github@SamuelJohn.de>
48 lines
1.3 KiB
Ruby
48 lines
1.3 KiB
Ruby
require 'formula'
|
|
|
|
class Gstreamer < Formula
|
|
homepage 'http://gstreamer.freedesktop.org/'
|
|
url 'http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.0.9.tar.xz'
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gstreamer-1.0.9.tar.xz'
|
|
sha256 '17a2c60a82baa461ef685ad3de187edb9c03a2c7e07513daba58a5a32efacaa3'
|
|
|
|
head 'git://anongit.freedesktop.org/gstreamer/gstreamer'
|
|
|
|
if build.head?
|
|
depends_on :automake
|
|
depends_on :libtool
|
|
end
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'xz' => :build
|
|
depends_on 'gobject-introspection' => :optional
|
|
depends_on 'gettext'
|
|
depends_on 'glib'
|
|
|
|
def install
|
|
ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing -fno-common"
|
|
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--disable-gtk-doc
|
|
]
|
|
|
|
if build.head?
|
|
ENV.append "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
|