d6fc1d75bf
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
60 lines
1.6 KiB
Ruby
60 lines
1.6 KiB
Ruby
require 'formula'
|
|
|
|
class GstPluginsBase < Formula
|
|
homepage 'http://gstreamer.freedesktop.org/'
|
|
url 'http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.2.0.tar.xz'
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-base-1.2.0.tar.xz'
|
|
sha256 '8656e20bf4b675e5696fb4af193793351926d428ca02826c5667a6384729a45d'
|
|
|
|
head do
|
|
url 'git://anongit.freedesktop.org/gstreamer/gst-plugins-base'
|
|
|
|
depends_on :automake
|
|
depends_on :libtool
|
|
end
|
|
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'xz' => :build
|
|
depends_on 'gettext'
|
|
if build.with? 'gobject-introspection'
|
|
depends_on 'gstreamer' => 'with-gobject-introspection'
|
|
else
|
|
depends_on 'gstreamer'
|
|
end
|
|
# The set of optional dependencies is based on the intersection of
|
|
# gst-plugins-base-0.10.35/REQUIREMENTS and Homebrew formulae
|
|
depends_on 'gobject-introspection' => :optional
|
|
depends_on 'orc' => :optional
|
|
depends_on 'gtk+' => :optional
|
|
depends_on 'libogg' => :optional
|
|
depends_on 'pango' => :optional
|
|
depends_on 'theora' => :optional
|
|
depends_on 'libvorbis' => :optional
|
|
|
|
def install
|
|
|
|
# gnome-vfs turned off due to lack of formula for it.
|
|
args = %W[
|
|
--prefix=#{prefix}
|
|
--enable-experimental
|
|
--disable-libvisual
|
|
--disable-alsa
|
|
--disable-cdparanoia
|
|
--without-x
|
|
--disable-x
|
|
--disable-xvideo
|
|
--disable-xshm
|
|
--disable-debug
|
|
--disable-dependency-tracking
|
|
]
|
|
|
|
if build.head?
|
|
ENV.append "NOCONFIGURE", "yes"
|
|
system "./autogen.sh"
|
|
end
|
|
|
|
system "./configure", *args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|