2011-12-22 00:05:22 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Chromaprint < Formula
|
|
|
|
homepage 'http://acoustid.org/chromaprint'
|
2012-09-06 15:26:09 +00:00
|
|
|
url 'https://github.com/downloads/lalinsky/chromaprint/chromaprint-0.7.tar.gz'
|
|
|
|
sha1 '6a961585e82d26d357eb792216becc0864ddcdb2'
|
2012-02-10 12:20:50 +00:00
|
|
|
|
2012-08-26 06:30:52 +00:00
|
|
|
option 'without-examples', "Don't build examples (including fpcalc)"
|
2011-12-22 00:05:22 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
2012-08-26 06:30:52 +00:00
|
|
|
depends_on 'ffmpeg' unless build.include? 'without-examples'
|
2011-12-22 00:05:22 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-22 21:37:04 +00:00
|
|
|
args = std_cmake_args
|
2012-08-26 06:30:52 +00:00
|
|
|
args << '-DBUILD_EXAMPLES=ON' unless build.include? 'without-examples'
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", ".", *args
|
2011-12-22 00:05:22 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|