gstreamer: 1.0.5

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Thijs Vermeir 2013-02-12 16:03:02 +01:00 committed by Adam Vandenberg
parent a223b588fc
commit b1119dae6f
6 changed files with 43 additions and 39 deletions

22
Formula/gst-libav.rb Normal file
View file

@ -0,0 +1,22 @@
require 'formula'
class GstLibav < Formula
homepage 'http://gstreamer.freedesktop.org'
url 'http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.0.5.tar.xz'
sha1 '7c186f82743cca7fb8fc78848d4e79c1d3bcd5e4'
depends_on "pkg-config" => :build
depends_on "xz" => :build
depends_on "gst-plugins-base"
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
def test
system "gst-inspect-1.0 libav"
end
end

View file

@ -2,10 +2,11 @@ require 'formula'
class GstPluginsBad < Formula class GstPluginsBad < Formula
homepage 'http://gstreamer.freedesktop.org/' homepage 'http://gstreamer.freedesktop.org/'
url 'http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.23.tar.bz2' url 'http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.0.5.tar.xz'
sha256 '0eae7d1a1357ae8377fded6a1b42e663887beabe0e6cc336e2ef9ada42e11491' sha256 '2e8f5b9a2fd274142d0a916b6425b9466028978b85858dc835dc80de744b276a'
depends_on 'pkg-config' => :build depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'gettext' depends_on 'gettext'
depends_on 'gst-plugins-base' depends_on 'gst-plugins-base'

View file

@ -2,15 +2,17 @@ require 'formula'
class GstPluginsBase < Formula class GstPluginsBase < Formula
homepage 'http://gstreamer.freedesktop.org/' homepage 'http://gstreamer.freedesktop.org/'
url 'http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-0.10.36.tar.bz2' url 'http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.0.5.tar.xz'
sha256 '2cd3b0fa8e9b595db8f514ef7c2bdbcd639a0d63d154c00f8c9b609321f49976' sha256 '37ce6e09b99ef3879111c861ee5090582b4fd4c764e81ab6eb2b2b4dd77d7173'
depends_on 'pkg-config' => :build depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'gettext' depends_on 'gettext'
depends_on 'gstreamer' depends_on 'gstreamer'
# The set of optional dependencies is based on the intersection of # The set of optional dependencies is based on the intersection of
# gst-plugins-base-0.10.35/REQUIREMENTS and Homebrew formulae # gst-plugins-base-0.10.35/REQUIREMENTS and Homebrew formulae
depends_on 'gobject-introspection' => :optional
depends_on 'orc' => :optional depends_on 'orc' => :optional
depends_on 'gtk+' => :optional depends_on 'gtk+' => :optional
depends_on 'libogg' => :optional depends_on 'libogg' => :optional
@ -24,7 +26,6 @@ class GstPluginsBase < Formula
--prefix=#{prefix} --prefix=#{prefix}
--disable-debug --disable-debug
--disable-dependency-tracking --disable-dependency-tracking
--enable-introspection=no
--enable-experimental --enable-experimental
--disable-libvisual --disable-libvisual
--disable-alsa --disable-alsa

View file

@ -2,11 +2,12 @@ require 'formula'
class GstPluginsGood < Formula class GstPluginsGood < Formula
homepage 'http://gstreamer.freedesktop.org/' homepage 'http://gstreamer.freedesktop.org/'
url 'http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-0.10.31.tar.bz2' url 'http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.0.5.tar.xz'
sha256 '7e27840e40a7932ef2dc032d7201f9f41afcaf0b437daf5d1d44dc96d9e35ac6' sha256 '53bd0b848e7896f1b22548ca4e8be56cf425e5100e121c472dff8272d5140bc5'
depends_on :x11 depends_on :x11
depends_on 'pkg-config' => :build depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'gettext' depends_on 'gettext'
depends_on 'gst-plugins-base' depends_on 'gst-plugins-base'

View file

@ -2,10 +2,11 @@ require 'formula'
class GstPluginsUgly < Formula class GstPluginsUgly < Formula
homepage 'http://gstreamer.freedesktop.org/' homepage 'http://gstreamer.freedesktop.org/'
url 'http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-0.10.19.tar.bz2' url 'http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.0.5.tar.xz'
sha256 '1ca90059275c0f5dca71d4d1601a8f429b7852baed0723e820703b977e2c8df0' sha256 'a62a182ea96d9b2783b493b46d531914db9d2ebb9e537e9c84668fe752791331'
depends_on 'pkg-config' => :build depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'gettext' depends_on 'gettext'
depends_on 'gst-plugins-base' depends_on 'gst-plugins-base'
@ -22,7 +23,6 @@ class GstPluginsUgly < Formula
depends_on 'aalib' => :optional depends_on 'aalib' => :optional
depends_on 'libcaca' => :optional depends_on 'libcaca' => :optional
depends_on 'libdvdread' => :optional depends_on 'libdvdread' => :optional
depends_on 'sdl' => :optional
depends_on 'libmpeg2' => :optional depends_on 'libmpeg2' => :optional
depends_on 'a52dec' => :optional depends_on 'a52dec' => :optional
depends_on 'liboil' => :optional depends_on 'liboil' => :optional

View file

@ -2,50 +2,29 @@ require 'formula'
class Gstreamer < Formula class Gstreamer < Formula
homepage 'http://gstreamer.freedesktop.org/' homepage 'http://gstreamer.freedesktop.org/'
url 'http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-0.10.36.tar.bz2' url 'http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.0.5.tar.xz'
sha256 'e556a529e0a8cf1cd0afd0cab2af5488c9524e7c3f409de29b5d82bb41ae7a30' sha256 '26c2827567f09a46d0a3bc1e7f8696b2ae72b047306539178079abae487c5b77'
depends_on 'pkg-config' => :build depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'gobject-introspection' => :optional
depends_on 'gettext' depends_on 'gettext'
depends_on 'glib' depends_on 'glib'
# Fix sed version detection for 10.8
# Reported and fixed upstream:
# https://bugzilla.gnome.org/show_bug.cgi?id=680428
def patches
DATA
end
def install def install
# Look for plugins in HOMEBREW_PREFIX/lib/gstreamer-0.10 instead of # Look for plugins in HOMEBREW_PREFIX/lib/gstreamer-1.0 instead of
# HOMEBREW_PREFIX/Cellar/gstreamer/0.10/lib/gstreamer-0.10, so we'll find # 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 # plugins installed by other packages without setting GST_PLUGIN_PATH in
# the environment. # the environment.
inreplace "configure", 'PLUGINDIR="$full_var"', inreplace "configure", 'PLUGINDIR="$full_var"',
"PLUGINDIR=\"#{HOMEBREW_PREFIX}/lib/gstreamer-0.10\"" "PLUGINDIR=\"#{HOMEBREW_PREFIX}/lib/gstreamer-1.0\""
ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing -fno-common" ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing -fno-common"
system "./configure", "--prefix=#{prefix}", system "./configure", "--prefix=#{prefix}",
"--disable-debug", "--disable-debug",
"--disable-dependency-tracking", "--disable-dependency-tracking"
"--enable-introspection=no"
system "make" system "make"
system "make install" system "make install"
end end
end end
__END__
diff --git a/configure b/configure
index 0af896d..20e6576 100755
--- a/configure
+++ b/configure
@@ -21304,7 +21304,7 @@ fi
fi
flex_min_version=2.5.31
- flex_version=`$FLEX_PATH --version | head -n 1 | sed 's/^.* //' | sed 's/[a-zA-Z]*$//' | cut -d' ' -f1`
+ flex_version=`$FLEX_PATH --version | head -n 1 | awk '{print $2'}`
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking flex version $flex_version >= $flex_min_version" >&5
$as_echo_n "checking flex version $flex_version >= $flex_min_version... " >&6; }
if perl -w <<EOF