2011-12-22 00:05:22 +00:00
|
|
|
class Chromaprint < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Core component of the AcoustID project (Audio fingerprinting)"
|
2015-03-07 08:28:52 +00:00
|
|
|
homepage "https://acoustid.org/chromaprint"
|
2015-03-17 07:07:06 +00:00
|
|
|
url "https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.2.tar.gz"
|
|
|
|
sha256 "822b8949a322ac04c6f8a3ed78f5e689bcc493c6ca0972bf627c913c8430031a"
|
2015-03-07 08:28:52 +00:00
|
|
|
|
2014-10-06 20:17:40 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-03-17 17:12:36 +00:00
|
|
|
sha256 "fa9422d4e83a696110f9880e8b70330e92c36d964f67fc3e50c21a94a473b549" => :yosemite
|
|
|
|
sha256 "f909650189b87ed9f26ec1428fa2787688a0e36d677a5e4f0a605b209e128ca5" => :mavericks
|
|
|
|
sha256 "a15989c1b685ce333aeec347c20d1f903533bc478f4ac1f34bc6da9c0cd1bd29" => :mountain_lion
|
2014-10-06 20:17:40 +00:00
|
|
|
end
|
|
|
|
|
2015-03-07 08:28:52 +00:00
|
|
|
option "without-examples", "Don't build examples (including fpcalc)"
|
2011-12-22 00:05:22 +00:00
|
|
|
|
2015-03-07 08:28:52 +00:00
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "ffmpeg" if build.with? "examples"
|
2013-11-17 03:55:41 +00:00
|
|
|
|
2011-12-22 00:05:22 +00:00
|
|
|
def install
|
2012-05-22 21:37:04 +00:00
|
|
|
args = std_cmake_args
|
2015-03-07 08:28:52 +00:00
|
|
|
args << "-DBUILD_EXAMPLES=ON" if build.with? "examples"
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", ".", *args
|
2015-03-07 08:28:52 +00:00
|
|
|
system "make", "install"
|
2011-12-22 00:05:22 +00:00
|
|
|
end
|
2015-03-17 07:07:06 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/fpcalc", test_fixtures("test.mp3") if build.with? "examples"
|
|
|
|
end
|
2011-12-22 00:05:22 +00:00
|
|
|
end
|