blob: f607977f36fcc631316d73e18f083b3bb839d991 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
 | require 'formula'
class GstPluginsGood < Formula
  homepage 'http://gstreamer.freedesktop.org/'
  stable do
    url 'http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.4.5.tar.xz'
    mirror 'http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-good-1.4.5.tar.xz'
    sha256 "79b1b5f3f7bcaa8a615202eb5e176121eeb8336960f70687e536ad78dbc7e641"
    depends_on 'check' => :optional
  end
  bottle do
    sha1 "184f6be9e300566f37e7b014cca49f78018c36d4" => :yosemite
    sha1 "a05a8f0dc08ea2626623f30dcb2cc458bd973b7e" => :mavericks
    sha1 "7ce582ddab67b58d87469d112745144a0cf0edd2" => :mountain_lion
  end
  head do
    url 'git://anongit.freedesktop.org/gstreamer/gst-plugins-good'
    depends_on "autoconf" => :build
    depends_on "automake" => :build
    depends_on "libtool" => :build
    depends_on 'check'
  end
  depends_on 'pkg-config' => :build
  depends_on 'gettext'
  depends_on 'gst-plugins-base'
  depends_on 'libsoup'
  depends_on :x11 => :optional
  # The set of optional dependencies is based on the intersection of
  # gst-plugins-good-0.10.30/REQUIREMENTS and Homebrew formulae
  depends_on 'orc' => :optional
  depends_on 'gtk+' => :optional
  depends_on 'aalib' => :optional
  depends_on 'libcdio' => :optional
  depends_on 'esound' => :optional
  depends_on 'flac' => [:optional, 'with-libogg']
  depends_on 'jpeg' => :optional
  depends_on 'libcaca' => :optional
  depends_on 'libdv' => :optional
  depends_on 'libshout' => :optional
  depends_on 'speex' => :optional
  depends_on 'taglib' => :optional
  depends_on 'libpng' => :optional
  depends_on 'libvpx' => :optional
  depends_on 'libogg' if build.with? 'flac'
  def install
    args = %W[
      --prefix=#{prefix}
      --disable-gtk-doc
      --disable-goom
      --with-default-videosink=ximagesink
      --disable-debug
      --disable-dependency-tracking
      --disable-silent-rules
    ]
    if build.with? "x11"
      args << "--with-x"
    else
      args << "--disable-x"
    end
    if build.head?
      ENV["NOCONFIGURE"] = "yes"
      system "./autogen.sh"
    end
    system "./configure", *args
    system "make"
    system "make", "install"
  end
end
 |