homebrew-core/Formula/libfreenect.rb

29 lines
633 B
Ruby
Raw Normal View History

2014-05-20 05:51:24 +00:00
require "formula"
class Libfreenect < Formula
2014-05-20 05:51:24 +00:00
homepage "http://openkinect.org"
url "https://github.com/OpenKinect/libfreenect/archive/v0.4.3.tar.gz"
sha1 "aa2784b78d2ba402cecd68eaec4a0cc6f72dc5cc"
2014-05-20 05:51:24 +00:00
head "https://github.com/OpenKinect/libfreenect.git"
option :universal
2014-05-20 05:51:24 +00:00
depends_on "cmake" => :build
depends_on "libusb"
def install
args = std_cmake_args
if build.universal?
ENV.universal_binary
args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}"
end
mkdir "build" do
system "cmake", "..", *args
system "make install"
end
end
end