2014-09-29 18:27:36 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Libgroove < Formula
|
|
|
|
homepage "https://github.com/andrewrk/libgroove"
|
2014-10-07 14:12:15 +00:00
|
|
|
url "https://github.com/andrewrk/libgroove/archive/4.2.1.tar.gz"
|
|
|
|
sha1 "cdcf4109266bb5eb38d62945891d37d907c3ccd3"
|
2014-10-02 14:32:12 +00:00
|
|
|
|
2014-10-10 03:16:37 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2014-10-21 15:14:31 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "bcc1b6b2f985c5f753e9074409062dc558acdecc" => :yosemite
|
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
|