diff options
| author | john muhl | 2014-09-29 13:27:36 -0500 |
|---|---|---|
| committer | Tim D. Smith | 2014-10-06 17:50:15 -0700 |
| commit | 5612bf5952672841c022c8a2d8769085cac8750d (patch) | |
| tree | 1b577d20eff6f1ad8fa8a3288f192df841b4adcb /Library | |
| parent | 3257e7a8d093bfba5396c42e5627bb43b1e90a7b (diff) | |
| download | homebrew-5612bf5952672841c022c8a2d8769085cac8750d.tar.bz2 | |
libgroove 4.2.0 (new formula)
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/libgroove.rb | 32 |
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 |
