2014-05-20 05:51:24 +00:00
|
|
|
require "formula"
|
2013-01-31 10:55:59 +00:00
|
|
|
|
|
|
|
class Libfreenect < Formula
|
2014-05-20 05:51:24 +00:00
|
|
|
homepage "http://openkinect.org"
|
2014-07-22 15:11:15 +00:00
|
|
|
url "https://github.com/OpenKinect/libfreenect/archive/v0.5.0.tar.gz"
|
|
|
|
sha1 "2f74c27e8760b4d5d4973370aee9ca71301a6176"
|
2013-01-31 10:55:59 +00:00
|
|
|
|
2014-05-20 05:51:24 +00:00
|
|
|
head "https://github.com/OpenKinect/libfreenect.git"
|
2013-01-31 10:55:59 +00:00
|
|
|
|
2014-07-03 19:34:32 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-07-22 15:19:56 +00:00
|
|
|
sha1 "a44a43315958711c9b615a74e8e4fe21bafa698b" => :mavericks
|
|
|
|
sha1 "52e31f93900a4a7a9f1cd66389a56e9ae7847aa1" => :mountain_lion
|
|
|
|
sha1 "32df0c0c8c440b2606202661711293ed4ecdd2a0" => :lion
|
2014-07-03 19:34:32 +00:00
|
|
|
end
|
|
|
|
|
2013-04-04 15:50:53 +00:00
|
|
|
option :universal
|
|
|
|
|
2014-05-20 05:51:24 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "libusb"
|
2013-01-31 10:55:59 +00:00
|
|
|
|
|
|
|
def install
|
2014-05-10 03:54:53 +00:00
|
|
|
args = std_cmake_args
|
|
|
|
|
2013-04-04 15:50:53 +00:00
|
|
|
if build.universal?
|
|
|
|
ENV.universal_binary
|
2014-05-10 03:54:53 +00:00
|
|
|
args << "-DCMAKE_OSX_ARCHITECTURES=#{Hardware::CPU.universal_archs.as_cmake_arch_flags}"
|
2013-04-04 15:50:53 +00:00
|
|
|
end
|
2014-05-10 03:54:53 +00:00
|
|
|
|
2013-01-31 10:55:59 +00:00
|
|
|
mkdir "build" do
|
2014-05-10 03:54:53 +00:00
|
|
|
system "cmake", "..", *args
|
2013-01-31 10:55:59 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|