44 lines
1.2 KiB
Ruby
44 lines
1.2 KiB
Ruby
class Libcec < Formula
|
|
desc "Control devices with TV remote control and HDMI cabling"
|
|
homepage "http://libcec.pulse-eight.com/"
|
|
url "https://github.com/Pulse-Eight/libcec/archive/libcec-4.0.2.tar.gz"
|
|
sha256 "b8b8dd31f3ebdd5472f03ab7d401600ea0d959b1288b9ca24bf457ef60e2ba27"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "6e82912e61a59fde53faa863cc279adade8cfed868dc9ac3484106e5c56ef200" => :sierra
|
|
sha256 "b444da5133858d153366c5aaed37c0980ea884b4697003a6b2729370be73d48c" => :el_capitan
|
|
sha256 "368c2c4c012da197804a748601c3e9b576afa10669c5d6a5a40e31a3521aeddd" => :yosemite
|
|
end
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
needs :cxx11
|
|
|
|
resource "p8-platform" do
|
|
url "https://github.com/Pulse-Eight/platform/archive/p8-platform-2.1.0.1.tar.gz"
|
|
sha256 "064f8d2c358895c7e0bea9ae956f8d46f3f057772cb97f2743a11d478a0f68a0"
|
|
end
|
|
|
|
def install
|
|
ENV.cxx11
|
|
|
|
resource("p8-platform").stage do
|
|
mkdir "build" do
|
|
system "cmake", "..", *std_cmake_args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
mkdir "build" do
|
|
system "cmake", "..", *std_cmake_args
|
|
system "make"
|
|
system "make", "install"
|
|
end
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/cec-client", "--info"
|
|
end
|
|
end
|