2010-10-22 22:15:43 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class GstPluginsBad < Formula
|
2010-10-22 22:15:43 +00:00
|
|
|
homepage 'http://gstreamer.freedesktop.org/'
|
2012-06-01 19:11:18 +00:00
|
|
|
url 'http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.23.tar.bz2'
|
|
|
|
sha256 '0eae7d1a1357ae8377fded6a1b42e663887beabe0e6cc336e2ef9ada42e11491'
|
2010-10-22 22:15:43 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'gst-plugins-base'
|
|
|
|
|
|
|
|
# These optional dependencies are based on the intersection of
|
2011-02-21 20:35:14 +00:00
|
|
|
# gst-plugins-bad-0.10.21/REQUIREMENTS and Homebrew formulas
|
2010-10-22 22:15:43 +00:00
|
|
|
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
|
2012-01-24 03:57:32 +00:00
|
|
|
depends_on 'rtmpdump' => :optional
|
2010-10-22 22:15:43 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.append "CFLAGS", "-no-cpp-precomp -funroll-loops -fstrict-aliasing"
|
2012-03-16 02:15:30 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
|
|
|
"--disable-sdl"
|
2010-10-22 22:15:43 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|