55 lines
1.6 KiB
Ruby
55 lines
1.6 KiB
Ruby
require "formula"
|
|
|
|
class Gstreamer < Formula
|
|
homepage "http://gstreamer.freedesktop.org/"
|
|
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"
|
|
|
|
bottle do
|
|
revision 1
|
|
sha1 "6dc46c6ae68a1edf24ec3d92fac5512cd6c6014f" => :yosemite
|
|
sha1 "2c4db754eab30e5a4a6674ba73b2236e2254757f" => :mavericks
|
|
sha1 "9c0cdab28d02577b949dacbf838bbb1065daa0ef" => :mountain_lion
|
|
end
|
|
|
|
head do
|
|
url "git://anongit.freedesktop.org/gstreamer/gstreamer"
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gobject-introspection"
|
|
depends_on "gettext"
|
|
depends_on "glib"
|
|
depends_on "bison"
|
|
|
|
def install
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
--disable-gtk-doc
|
|
--enable-introspection=yes
|
|
]
|
|
|
|
if build.head?
|
|
ENV["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
|