2014-04-29 03:42:17 +00:00
|
|
|
require "formula"
|
2010-06-16 19:09:39 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Gstreamer < Formula
|
2014-04-29 03:42:17 +00:00
|
|
|
homepage "http://gstreamer.freedesktop.org/"
|
2014-12-22 11:51:08 +00:00
|
|
|
url "http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.4.5.tar.xz"
|
|
|
|
mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gstreamer-1.4.5.tar.xz"
|
|
|
|
sha256 "40801aa7f979024526258a0e94707ba42b8ab6f7d2206e56adbc4433155cb0ae"
|
2010-06-16 19:09:39 +00:00
|
|
|
|
2014-06-09 16:05:56 +00:00
|
|
|
bottle do
|
2015-01-01 14:32:22 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "6dc46c6ae68a1edf24ec3d92fac5512cd6c6014f" => :yosemite
|
|
|
|
sha1 "2c4db754eab30e5a4a6674ba73b2236e2254757f" => :mavericks
|
|
|
|
sha1 "9c0cdab28d02577b949dacbf838bbb1065daa0ef" => :mountain_lion
|
2014-06-09 16:05:56 +00:00
|
|
|
end
|
|
|
|
|
2013-09-20 15:15:56 +00:00
|
|
|
head do
|
2014-04-29 03:42:17 +00:00
|
|
|
url "git://anongit.freedesktop.org/gstreamer/gstreamer"
|
2013-08-14 01:29:19 +00:00
|
|
|
|
2014-12-04 17:01:23 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2013-08-14 01:29:19 +00:00
|
|
|
end
|
|
|
|
|
2014-04-29 03:42:17 +00:00
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "gobject-introspection"
|
|
|
|
depends_on "gettext"
|
|
|
|
depends_on "glib"
|
2014-07-21 13:08:57 +00:00
|
|
|
depends_on "bison"
|
2010-06-16 19:09:39 +00:00
|
|
|
|
|
|
|
def install
|
2013-08-14 01:29:19 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--disable-gtk-doc
|
2014-04-29 03:42:17 +00:00
|
|
|
--enable-introspection=yes
|
2013-08-14 01:29:19 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
if build.head?
|
2014-05-15 17:38:45 +00:00
|
|
|
ENV["NOCONFIGURE"] = "yes"
|
2013-08-14 01:29:19 +00:00
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
|
|
|
|
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
|
|
|
|
2013-08-14 01:29:19 +00:00
|
|
|
system "./configure", *args
|
2010-06-16 19:09:39 +00:00
|
|
|
system "make"
|
2013-08-14 01:29:19 +00:00
|
|
|
system "make", "install"
|
2010-06-16 19:09:39 +00:00
|
|
|
end
|
|
|
|
end
|