aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDavid Poirier-Quinot2015-02-20 16:31:31 +0100
committerMike McQuaid2015-02-21 17:00:37 +0000
commit369577749280b30a18c9720123aec6be2f6f940d (patch)
tree2f1995a96337d00bd44d98dccc7e7f6ad0c67726 /Library/Formula
parent61ab2e4a1bd22ca281e7e9d90920c0f1af8dcb7d (diff)
downloadhomebrew-369577749280b30a18c9720123aec6be2f6f940d.tar.bz2
openhmd 0.1.0 (new formula)
Closes #36997. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/openhmd.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/openhmd.rb b/Library/Formula/openhmd.rb
new file mode 100644
index 000000000..dd1b157fa
--- /dev/null
+++ b/Library/Formula/openhmd.rb
@@ -0,0 +1,33 @@
+class Openhmd < Formula
+ homepage "http://openhmd.net"
+ url "http://openhmd.net/releases/openhmd-0.1.0.tar.gz"
+ sha1 "186c747399bd9a509ac8300acbae8823fc4fcc79"
+
+ head do
+ url "https://github.com/OpenHMD/OpenHMD.git"
+ depends_on "autoconf" => :build
+ depends_on "automake" => :build
+ depends_on "libtool" => :build
+ end
+
+ depends_on "cmake" => :build
+ depends_on "pkg-config" => :build
+ depends_on "hidapi" => :build
+
+ def install
+ args = ["--prefix", prefix,
+ "--disable-debug",
+ "--disable-silent-rules",
+ "--disable-dependency-tracking",
+ "--bindir=#{bin}"]
+
+ system "./autogen.sh" if build.head?
+ system "./configure", *args
+ system "make", "install"
+ (share+"tests").install "#{bin}/unittests"
+ end
+
+ test do
+ system "#{share}/tests/unittests"
+ end
+end