aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libcec.rb
blob: 3cbd01940f261466a4cb0aa53941a0c0c80f5ea0 (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
require 'formula'

class Libcec < Formula
  homepage 'http://libcec.pulse-eight.com/'
  url 'https://github.com/Pulse-Eight/libcec/archive/libcec-2.1.4.tar.gz'
  sha1 '3ee241201b3650b97ec4fc41b0f5dd33476080f9'

  bottle do
    cellar :any
    sha1 "2e3d47fd5de28a92572fc112ef28f64f02a25d0b" => :mavericks
    sha1 "b926b847e6a6bd53d42b0af7317846fb73ce20b2" => :mountain_lion
    sha1 "ab69ed933cb155203a69683e8a4ef4248d87d589" => :lion
  end

  depends_on "autoconf" => :build
  depends_on "automake" => :build
  depends_on "libtool" => :build
  depends_on "pkg-config" => :build

  def install
    system "./bootstrap"
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}"
    system "make install"
  end

  test do
    system "#{bin}/cec-client", "--info"
  end
end