-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpangolin.rb
33 lines (28 loc) · 944 Bytes
/
pangolin.rb
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
class Pangolin < Formula
desc "realOpenGL display, interaction and abstracting video input"
homepage "https://github.com/stevenlovegrove/Pangolin"
url "https://github.com/stevenlovegrove/Pangolin.git", :branch => "master"
head "https://github.com/stevenlovegrove/Pangolin.git", :branch => "devel"
version "0.3"
depends_on "cmake" => :build
depends_on "boost"
depends_on "glew"
depends_on "eigen" => :recommended
depends_on "libdc1394" => :recommended
depends_on "openni2" => :recommended
depends_on "openni" => :optional
depends_on "libuvc" => :optional # 2016-05-18: this requires `brew install libuvc --HEAD`
def install
cmake_args = std_cmake_args + %W[
-DBoost_DIR=#{Formula["boost"].opt_prefix}
]
mkdir "build" do
system "cmake", "-G", "Unix Makefiles", "..", *cmake_args
system "make"
system "make", "install"
end
end
test do
system "false"
end
end