blob: 76a238e65fce1b2c2e2f29f1da2c980a49ad2593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
require "formula"
class Libfreenect < Formula
homepage "http://openkinect.org"
url "https://github.com/OpenKinect/libfreenect/archive/v0.5.1.tar.gz"
sha1 "1f7296e50c27c07e2f57ee906c195cabf97c1438"
head "https://github.com/OpenKinect/libfreenect.git"
bottle do
end
option :universal
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
|