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
|
2013-11-12 19:18:21 +00:00
|
|
|
url 'http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.2.1.tar.xz'
|
|
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-good-1.2.1.tar.xz'
|
|
|
|
sha256 '660fa02dbe01086fcf702d87acc0ba5dde2559d6a11ecf438874afe504c50517'
|
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
|
|
|
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
|
|
|
depends_on 'check'
|
|
|
|
end
|
|
|
|
|
2013-02-05 18:58:53 +00:00
|
|
|
depends_on :x11
|
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
|
|
|
|
|
|
|
# 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
|
2010-08-14 11:28:33 +00:00
|
|
|
depends_on 'flac' => :optional
|
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
|
|
|
|
|
|
|
|
def install
|
2013-08-14 01:29:19 +00:00
|
|
|
args = %W[
|
|
|
|
--prefix=#{prefix}
|
|
|
|
--disable-schemas-install
|
|
|
|
--disable-gtk-doc
|
|
|
|
--disable-goom
|
|
|
|
--with-default-videosink=ximagesink
|
|
|
|
--disable-debug
|
|
|
|
--disable-dependency-tracking
|
|
|
|
]
|
|
|
|
|
|
|
|
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
|