2010-08-14 11:28:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GstPluginsGood < Formula
|
2010-08-14 11:28:33 +00:00
|
|
|
homepage 'http://gstreamer.freedesktop.org/'
|
|
|
|
|
2013-09-20 15:15:55 +00:00
|
|
|
stable do
|
2014-02-16 18:01:41 +00:00
|
|
|
url 'http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.2.3.tar.xz'
|
|
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-good-1.2.3.tar.xz'
|
|
|
|
sha256 'bfb33536a515bdcc34482f64b8d9cc3e47c753878b254923b419bc2f7485e470'
|
2013-09-20 15:15:55 +00:00
|
|
|
|
|
|
|
depends_on 'check' => :optional
|
|
|
|
end
|
|
|
|
|
|
|
|
head do
|
|
|
|
url 'git://anongit.freedesktop.org/gstreamer/gst-plugins-good'
|
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
|
|
|
|
depends_on 'check'
|
|
|
|
end
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2010-08-14 11:28:33 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'gst-plugins-base'
|
2013-08-14 01:29:19 +00:00
|
|
|
depends_on 'libsoup'
|
2011-02-21 20:33:45 +00:00
|
|
|
|
2014-03-17 23:03:47 +00:00
|
|
|
depends_on :x11 => :optional
|
|
|
|
|
2011-02-21 20:33:45 +00:00
|
|
|
# The set of optional dependencies is based on the intersection of
|
2013-01-26 13:16:55 +00:00
|
|
|
# gst-plugins-good-0.10.30/REQUIREMENTS and Homebrew formulae
|
2011-02-21 20:33:45 +00:00
|
|
|
depends_on 'orc' => :optional
|
|
|
|
depends_on 'gtk+' => :optional
|
|
|
|
depends_on 'aalib' => :optional
|
|
|
|
depends_on 'libcdio' => :optional
|
2012-02-05 11:46:28 +00:00
|
|
|
depends_on 'esound' => :optional
|
2014-03-05 05:30:38 +00:00
|
|
|
depends_on 'flac' => [:optional, 'with-libogg']
|
2012-02-05 11:46:28 +00:00
|
|
|
depends_on 'jpeg' => :optional
|
2010-08-14 11:28:33 +00:00
|
|
|
depends_on 'libcaca' => :optional
|
2010-10-22 22:03:18 +00:00
|
|
|
depends_on 'libdv' => :optional
|
2010-08-14 11:28:33 +00:00
|
|
|
depends_on 'libshout' => :optional
|
|
|
|
depends_on 'speex' => :optional
|
|
|
|
depends_on 'taglib' => :optional
|
|
|
|
|
2013-11-12 23:08:34 +00:00
|
|
|
depends_on 'libogg' if build.with? 'flac'
|
|
|
|
|
2010-08-14 11:28:33 +00:00
|
|
|
def install
|
2013-08-14 01:29:19 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-gtk-doc
|
|
|
|
--disable-goom
|
|
|
|
--with-default-videosink=ximagesink
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
2014-03-17 23:03:47 +00:00
|
|
|
--disable-silent-rules
|
2013-08-14 01:29:19 +00:00
|
|
|
]
|
|
|
|
|
2014-03-17 23:03:47 +00:00
|
|
|
if build.with? "x11"
|
|
|
|
args << "--with-x"
|
|
|
|
else
|
|
|
|
args << "--without-x"
|
|
|
|
end
|
|
|
|
|
2013-08-14 01:29:19 +00:00
|
|
|
if build.head?
|
|
|
|
ENV.append "NOCONFIGURE", "yes"
|
|
|
|
system "./autogen.sh"
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", *args
|
2010-08-14 11:28:33 +00:00
|
|
|
system "make"
|
2013-08-14 01:29:19 +00:00
|
|
|
system "make", "install"
|
2010-08-14 11:28:33 +00:00
|
|
|
end
|
|
|
|
end
|