File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments