Skip to content

Commit 2d096ba

Browse files
netpro2kqdot
authored andcommitted
Added Homebrew formulas for easy install on OSX
Signed-off-by: Dominick D'Aniello <[email protected]> (netpro2k)
1 parent 5f8acab commit 2d096ba

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'formula'
2+
3+
class Libfreenect <Formula
4+
url 'https://github.com/OpenKinect/libfreenect/tarball/bae0ec6a347936ffcb39a285d0f7bbe4780326aa'
5+
version 'bae0ec6a347936ffcb39'
6+
homepage 'http://openkinect.org'
7+
md5 '3097944042d644e4d7276874271d3152'
8+
9+
depends_on 'libusb-freenect'
10+
depends_on 'cmake'
11+
12+
def install
13+
cd "c"
14+
mkdir "build"
15+
cd "build"
16+
system "cmake .. #{std_cmake_parameters}"
17+
system "make install"
18+
end
19+
end
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'formula'
2+
3+
class LibusbFreenect <Formula
4+
url 'http://git.libusb.org/?p=libusb.git;a=snapshot;h=7da756e09fd97efad2b35b5cee0e2b2550aac2cb;sf=tgz;js=1'
5+
homepage 'http://www.libusb.org/'
6+
version "7da756e09fd97efad2b3"
7+
md5 ''
8+
def patches
9+
# patches libusb to work with libfreenect
10+
"https://github.com/OpenKinect/libfreenect/raw/master/platform/osx/libusb-osx-kinect.diff"
11+
end
12+
13+
def install
14+
system "./autogen.sh"
15+
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking"
16+
system "make install"
17+
end
18+
end

0 commit comments

Comments
 (0)