bbf7b1308e
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
61 lines
1.6 KiB
Ruby
61 lines
1.6 KiB
Ruby
require 'formula'
|
|
|
|
class GstPluginsGood < Formula
|
|
homepage 'http://gstreamer.freedesktop.org/'
|
|
url 'http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.0.10.tar.xz'
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-good-1.0.10.tar.xz'
|
|
sha256 'c60342d6080ac6f794c5c2427dfbdee9140a2f67b82e7e945e286a2d416428ae'
|
|
|
|
head 'git://anongit.freedesktop.org/gstreamer/gst-plugins-good'
|
|
|
|
if build.head?
|
|
depends_on :automake
|
|
depends_on :libtool
|
|
depends_on 'check'
|
|
else
|
|
depends_on 'check' => :optional
|
|
end
|
|
|
|
depends_on :x11
|
|
depends_on 'pkg-config' => :build
|
|
depends_on 'xz' => :build
|
|
depends_on 'gettext'
|
|
depends_on 'gst-plugins-base'
|
|
depends_on 'libsoup'
|
|
|
|
# The set of optional dependencies is based on the intersection of
|
|
# gst-plugins-good-0.10.30/REQUIREMENTS and Homebrew formulae
|
|
depends_on 'orc' => :optional
|
|
depends_on 'gtk+' => :optional
|
|
depends_on 'aalib' => :optional
|
|
depends_on 'libcdio' => :optional
|
|
depends_on 'esound' => :optional
|
|
depends_on 'flac' => :optional
|
|
depends_on 'jpeg' => :optional
|
|
depends_on 'libcaca' => :optional
|
|
depends_on 'libdv' => :optional
|
|
depends_on 'libshout' => :optional
|
|
depends_on 'speex' => :optional
|
|
depends_on 'taglib' => :optional
|
|
|
|
def install
|
|
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
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|