aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorLars Bilke2010-08-30 17:47:33 +0200
committerAdam Vandenberg2010-11-04 07:40:09 -0700
commitbdede37e0363e7a5952b5ebcbea01eb5ac7472c3 (patch)
treeff63ccda34fce4c9a512adb4133fdb9a53559bcc /Library/Formula
parent6b502a151889867cb4a8c6906c4b81a4d4f8b2c9 (diff)
downloadhomebrew-bdede37e0363e7a5952b5ebcbea01eb5ac7472c3.tar.bz2
New formula: vrpn
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/vrpn.rb31
1 files changed, 31 insertions, 0 deletions
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 <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