homebrew-core/Formula/gst-plugins-bad.rb
2014-12-04 12:01:22 -05:00

56 lines
1.5 KiB
Ruby

require 'formula'
class GstPluginsBad < Formula
homepage 'http://gstreamer.freedesktop.org/'
url 'http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.4.4.tar.xz'
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-bad-1.4.4.tar.xz'
sha256 'e41b36105c0a13a2cb1ff9f559714e839b82dc3841484cd664790fb7947e55c7'
bottle do
sha1 "305cae1ca296427ae68f4b641ea985466486586e" => :yosemite
sha1 "96b48ba16e465cdf8fd6db64fcf3a22a8b89d5f8" => :mavericks
sha1 "f395b147b64092881bab0cc79b8bad9f44c6690f" => :mountain_lion
end
head do
url 'git://anongit.freedesktop.org/gstreamer/gst-plugins-bad'
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
depends_on 'pkg-config' => :build
depends_on 'gettext'
depends_on 'gst-plugins-base'
depends_on 'dirac' => :optional
depends_on 'faac' => :optional
depends_on 'faad2' => :optional
depends_on 'gnutls' => :optional
depends_on 'libdvdread' => :optional
depends_on 'libexif' => :optional
depends_on 'libmms' => :optional
depends_on 'rtmpdump' => :optional
depends_on 'schroedinger' => :optional
def install
args = %W[
--prefix=#{prefix}
--disable-apple_media
--disable-yadif
--disable-sdl
--disable-debug
--disable-dependency-tracking
]
if build.head?
ENV["NOCONFIGURE"] = "yes"
system "./autogen.sh"
end
system "./configure", *args
system "make"
system "make", "install"
end
end