aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorjohn muhl2014-09-29 13:27:36 -0500
committerTim D. Smith2014-10-06 17:50:15 -0700
commit5612bf5952672841c022c8a2d8769085cac8750d (patch)
tree1b577d20eff6f1ad8fa8a3288f192df841b4adcb /Library
parent3257e7a8d093bfba5396c42e5627bb43b1e90a7b (diff)
downloadhomebrew-5612bf5952672841c022c8a2d8769085cac8750d.tar.bz2
libgroove 4.2.0 (new formula)
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libgroove.rb32
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/libgroove.rb b/Library/Formula/libgroove.rb
new file mode 100644
index 000000000..bbae2cf8f
--- /dev/null
+++ b/Library/Formula/libgroove.rb
@@ -0,0 +1,32 @@
+require "formula"
+
+class Libgroove < Formula
+ homepage "https://github.com/andrewrk/libgroove"
+ url "https://github.com/andrewrk/libgroove/archive/4.2.0.tar.gz"
+ sha1 "1d60506bf9c99cefbbe5c2eea24fd0c1c39c39f5"
+
+ depends_on :macos => :mavericks
+ depends_on "cmake" => :build
+ depends_on "chromaprint"
+ depends_on "libav" => ["with-libvorbis"]
+ depends_on "libebur128"
+ depends_on "sdl2"
+
+ def install
+ system "cmake", ".", *std_cmake_args
+ system "make", "install"
+ end
+
+ test do
+ (testpath/"test.c").write <<-EOS.undent
+ #include <groove/groove.h>
+ int main() {
+ groove_init();
+ groove_version();
+ return 0;
+ }
+ EOS
+ system ENV.cc, "test.c", "-lgroove", "-o", "test"
+ system "./test"
+ end
+end