2013-01-27 21:09:53 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libcec < Formula
|
|
|
|
homepage 'http://libcec.pulse-eight.com/'
|
2014-02-15 18:06:57 +00:00
|
|
|
url 'https://github.com/Pulse-Eight/libcec/archive/libcec-2.1.4.tar.gz'
|
|
|
|
sha1 '3ee241201b3650b97ec4fc41b0f5dd33476080f9'
|
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
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2013-01-27 21:09:53 +00:00
|
|
|
system "#{bin}/cec-client", "--info"
|
|
|
|
end
|
|
|
|
end
|