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/'
|
2014-02-16 17:59:45 +00:00
|
|
|
url 'http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.2.3.tar.xz'
|
|
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-base-1.2.3.tar.xz'
|
|
|
|
sha256 '61edec35c270f86928bad434bd059da4efff865d1ef01bcc64ecbd903625dae1'
|
2010-06-16 19:09:57 +00:00
|
|
|
|
2013-09-20 15:15:55 +00:00
|
|
|
head do
|
|
|
|
url 'git://anongit.freedesktop.org/gstreamer/gst-plugins-base'
|
2013-08-14 01:29:19 +00:00
|
|
|
|
2013-11-13 17:01:29 +00:00
|
|
|
depends_on :autoconf
|
2013-08-14 01:29:19 +00:00
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
end
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-06-16 19:09:57 +00:00
|
|
|
depends_on 'gettext'
|
2013-08-23 13:52:29 +00:00
|
|
|
if build.with? 'gobject-introspection'
|
|
|
|
depends_on 'gstreamer' => 'with-gobject-introspection'
|
|
|
|
else
|
|
|
|
depends_on 'gstreamer'
|
|
|
|
end
|
2011-02-21 20:33:06 +00:00
|
|
|
# The set of optional dependencies is based on the intersection of
|
2013-01-26 13:16:55 +00:00
|
|
|
# gst-plugins-base-0.10.35/REQUIREMENTS and Homebrew formulae
|
2013-02-12 15:03:02 +00:00
|
|
|
depends_on 'gobject-introspection' => :optional
|
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
|
2013-08-14 01:29:19 +00:00
|
|
|
|
2012-07-21 03:01:28 +00:00
|
|
|
# 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
|
2013-08-14 01:29:19 +00:00
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
2012-07-21 03:01:28 +00:00
|
|
|
]
|
2013-08-14 01:29:19 +00:00
|
|
|
|
|
|
|
if build.head?
|
|
|
|
ENV.append "NOCONFIGURE", "yes"
|
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
|
|
|
|
2012-07-21 03:01:28 +00:00
|
|
|
system "./configure", *args
|
2010-06-16 19:09:57 +00:00
|
|
|
system "make"
|
2013-08-14 01:29:19 +00:00
|
|
|
system "make", "install"
|
2010-06-16 19:09:57 +00:00
|
|
|
end
|
|
|
|
end
|