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/'
|
2013-08-09 15:04:49 +00:00
|
|
|
url 'http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.0.9.tar.xz'
|
|
|
|
mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-bad-1.0.9.tar.xz'
|
|
|
|
sha256 '69d236b1d8188270a3f51f6710146d0ca63c2f1a9f6cfbab3399ef01b9498f75'
|
2010-10-22 22:15:43 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
2013-02-12 15:03:02 +00:00
|
|
|
depends_on 'xz' => :build
|
2010-10-22 22:15:43 +00:00
|
|
|
depends_on 'gettext'
|
|
|
|
depends_on 'gst-plugins-base'
|
|
|
|
|
|
|
|
# These optional dependencies are based on the intersection of
|
2013-01-26 13:16:55 +00:00
|
|
|
# gst-plugins-bad-0.10.21/REQUIREMENTS and Homebrew formulae
|
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
|
2013-03-23 22:42:12 +00:00
|
|
|
ENV.append "CFLAGS", "-no-cpp-precomp" unless ENV.compiler == :clang
|
|
|
|
ENV.append "CFLAGS", "-funroll-loops -fstrict-aliasing"
|
2012-03-16 02:15:30 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--disable-debug",
|
|
|
|
"--disable-dependency-tracking",
|
2013-03-23 22:42:24 +00:00
|
|
|
"--disable-sdl",
|
|
|
|
# gst/interfaces/propertyprobe.h is missing from gst-plugins-base 1.0.x
|
|
|
|
"--disable-osx_video"
|
2010-10-22 22:15:43 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|