blob: 2e85fcceb9225ef2c102e500c4ef581521fcaa12 (
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
32
33
34
35
|
require "formula"
class Libfreenect < Formula
homepage "http://openkinect.org"
url "https://github.com/OpenKinect/libfreenect/archive/v0.5.0.tar.gz"
sha1 "3a0c6ca9b2515132a59232ed5719ee2731f6e580"
head "https://github.com/OpenKinect/libfreenect.git"
bottle do
cellar :any
sha1 "a44a43315958711c9b615a74e8e4fe21bafa698b" => :mavericks
sha1 "52e31f93900a4a7a9f1cd66389a56e9ae7847aa1" => :mountain_lion
sha1 "32df0c0c8c440b2606202661711293ed4ecdd2a0" => :lion
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
|