homebrew-core/Formula/gst-plugins-bad.rb

38 lines
1.3 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class GstPluginsBad < Formula
homepage 'http://gstreamer.freedesktop.org/'
2013-03-23 22:01:12 +00:00
url 'http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.0.6.tar.xz'
sha256 '92130899d0b78b71f1551cada9b10b550e91506c2d7b8b748e5cc18a620d302d'
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"
system "./configure", "--prefix=#{prefix}",
"--disable-debug",
"--disable-dependency-tracking",
"--disable-sdl"
system "make"
system "make install"
end
end