2013-01-31 10:55:59 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Libfreenect < Formula
|
|
|
|
homepage 'http://openkinect.org'
|
2013-08-06 03:56:14 +00:00
|
|
|
url 'https://github.com/OpenKinect/libfreenect/archive/v0.2.0.tar.gz'
|
|
|
|
sha1 'cc6ec1d48411439769d51a645f684a8aeedcf1f1'
|
2013-01-31 10:55:59 +00:00
|
|
|
|
|
|
|
head 'https://github.com/OpenKinect/libfreenect.git'
|
|
|
|
|
2013-04-04 15:50:53 +00:00
|
|
|
option :universal
|
|
|
|
|
2013-01-31 10:55:59 +00:00
|
|
|
depends_on 'cmake' => :build
|
|
|
|
depends_on 'libusb'
|
|
|
|
|
|
|
|
def install
|
2013-04-04 15:50:53 +00:00
|
|
|
if build.universal?
|
|
|
|
ENV.universal_binary
|
2013-08-02 03:51:36 +00:00
|
|
|
ENV['CMAKE_OSX_ARCHITECTURES'] = Hardware::CPU.universal_archs.as_cmake_arch_flags
|
2013-04-04 15:50:53 +00:00
|
|
|
end
|
2013-01-31 10:55:59 +00:00
|
|
|
mkdir "build" do
|
|
|
|
system "cmake", "..", *std_cmake_args
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|