From bdede37e0363e7a5952b5ebcbea01eb5ac7472c3 Mon Sep 17 00:00:00 2001 From: Lars Bilke Date: Mon, 30 Aug 2010 17:47:33 +0200 Subject: New formula: vrpn Signed-off-by: Adam Vandenberg --- Library/Formula/vrpn.rb | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Library/Formula/vrpn.rb (limited to 'Library/Formula') diff --git a/Library/Formula/vrpn.rb b/Library/Formula/vrpn.rb new file mode 100644 index 000000000..8fb46f4c9 --- /dev/null +++ b/Library/Formula/vrpn.rb @@ -0,0 +1,31 @@ +require 'formula' + +class Vrpn '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 -- cgit v1.2.3