2010-06-16 19:09:57 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GstPluginsBase < Formula
|
2010-06-16 19:09:57 +00:00
|
|
|
homepage 'http://gstreamer.freedesktop.org/'
|
2012-06-01 19:11:47 +00:00
|
|
|
url 'http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-0.10.36.tar.bz2'
|
|
|
|
sha256 '2cd3b0fa8e9b595db8f514ef7c2bdbcd639a0d63d154c00f8c9b609321f49976'
|
2010-06-16 19:09:57 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-06-16 19:09:57 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'gstreamer'
|
2011-02-21 20:33:06 +00:00
|
|
|
|
|
|
|
# The set of optional dependencies is based on the intersection of
|
2012-02-05 11:45:54 +00:00
|
|
|
# gst-plugins-base-0.10.35/REQUIREMENTS and Homebrew formulas
|
2011-02-21 20:33:06 +00:00
|
|
|
depends_on 'orc' => :optional
|
2010-06-16 19:09:57 +00:00
|
|
|
depends_on 'gtk+' => :optional
|
|
|
|
depends_on 'libogg' => :optional
|
|
|
|
depends_on 'pango' => :optional
|
|
|
|
depends_on 'theora' => :optional
|
|
|
|
depends_on 'libvorbis' => :optional
|
|
|
|
|
|
|
|
def install
|
2012-07-21 03:01:28 +00:00
|
|
|
# gnome-vfs turned off due to lack of formula for it.
|
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
--enable-introspection=no
|
|
|
|
--enable-experimental
|
|
|
|
--disable-libvisual
|
|
|
|
--disable-alsa
|
|
|
|
--disable-cdparanoia
|
|
|
|
--without-x
|
|
|
|
--disable-x
|
|
|
|
--disable-xvideo
|
|
|
|
--disable-xshm
|
|
|
|
--disable-gnome_vfs
|
|
|
|
]
|
|
|
|
system "./configure", *args
|
2010-06-16 19:09:57 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|