2013-01-27 21:09:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libcec < Formula
|
|
|
|
homepage 'http://libcec.pulse-eight.com/'
|
2013-03-29 20:40:17 +00:00
|
|
|
url 'https://github.com/Pulse-Eight/libcec/archive/libcec-2.1.1.tar.gz'
|
|
|
|
sha1 '81597f9cd0923371bdfb5045ca9d88897152fb3f'
|
2013-01-27 21:09:53 +00:00
|
|
|
|
2013-02-02 05:44:58 +00:00
|
|
|
depends_on :autoconf
|
|
|
|
depends_on :automake
|
|
|
|
depends_on :libtool
|
2013-01-27 21:09:53 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./bootstrap"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/cec-client", "--info"
|
|
|
|
end
|
|
|
|
end
|