New formula: vrpn

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Lars Bilke 2010-08-30 17:47:33 +02:00 committed by Adam Vandenberg
parent 03385ba753
commit 0e5408f098
1 changed files with 31 additions and 0 deletions

31
Formula/vrpn.rb Normal file
View File

@ -0,0 +1,31 @@
require 'formula'
class Vrpn <Formula
url 'git://git.cs.unc.edu/vrpn.git', :tag => 'version_07.28'
version '07.28'
homepage 'http://vrpn.org'
depends_on 'cmake' => :build
def options
[['--clients', 'Build client apps and tests.']]
end
def install
args = [ "#{std_cmake_parameters}" ]
if ARGV.include? '--clients'
args << "-DVRPN_BUILD_CLIENTS:BOOL=ON"
else
args << "-DVRPN_BUILD_CLIENTS:BOOL=OFF"
end
args << ".."
Dir.mkdir "build"
Dir.chdir "build" do
system "cmake", *args
system "make install"
end
end
end