2014-09-29 18:27:36 +00:00
|
|
|
class Libgroove < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Streaming audio processing library"
|
2014-09-29 18:27:36 +00:00
|
|
|
homepage "https://github.com/andrewrk/libgroove"
|
2015-05-26 13:35:42 +00:00
|
|
|
url "https://github.com/andrewrk/libgroove/archive/4.3.0.tar.gz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "76f68896f078a9613d420339ef887ca8293884ad2cd0fbc031d89a6af2993636"
|
2014-10-02 14:32:12 +00:00
|
|
|
|
2014-10-10 03:16:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-05-26 16:26:46 +00:00
|
|
|
sha256 "0aed4c4465b5db098f23fc8ce8c4e9e09987c98ccdfced38499f2f0d81013455" => :yosemite
|
|
|
|
sha256 "bf744cb535945d763a3870e4b618ba61419bd6093b406ad803e9b03f836285be" => :mavericks
|
2014-10-10 03:16:37 +00:00
|
|
|
end
|
|
|
|
|
2014-09-29 18:27:36 +00:00
|
|
|
depends_on :macos => :mavericks
|
|
|
|
depends_on "cmake" => :build
|
2014-10-07 14:12:15 +00:00
|
|
|
depends_on "ffmpeg" => "with-libvorbis"
|
2014-10-10 02:59:55 +00:00
|
|
|
depends_on "chromaprint"
|
2014-09-29 18:27:36 +00:00
|
|
|
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
|