homebrew-core/Formula/gst-plugins-bad.rb
2013-09-21 19:29:54 -05:00

58 lines
1.6 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.0.10.tar.xz'
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-bad-1.0.10.tar.xz'
sha256 '91da60ba2ee5c681f11188a4a456894e7f989435c2102c15eff97bbd4fc4c726'
head do
url 'git://anongit.freedesktop.org/gstreamer/gst-plugins-bad'
depends_on :automake
depends_on :libtool
end
depends_on 'pkg-config' => :build
depends_on 'xz' => :build
depends_on 'gettext'
depends_on 'gst-plugins-base'
# These optional dependencies are based on the intersection of
# gst-plugins-bad-0.10.21/REQUIREMENTS and Homebrew formulae
depends_on 'dirac' => :optional
depends_on 'libdvdread' => :optional
depends_on 'libmms' => :optional
# These are not mentioned in REQUIREMENTS, but configure look for them
depends_on 'libexif' => :optional
depends_on 'faac' => :optional
depends_on 'faad2' => :optional
depends_on 'libsndfile' => :optional
depends_on 'schroedinger' => :optional
depends_on 'rtmpdump' => :optional
def install
ENV.append "CFLAGS", "-no-cpp-precomp" unless ENV.compiler == :clang
ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing"
args = %W[
--prefix=#{prefix}
--disable-apple_media
--disable-yadif
--disable-sdl
--disable-osx_video
--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