homebrew-core/Formula/chromaprint.rb

20 lines
576 B
Ruby
Raw Normal View History

require 'formula'
class Chromaprint < Formula
homepage 'http://acoustid.org/chromaprint'
url 'https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-1.0.tar.gz'
sha1 '919e012af588a7e6fea862b29a30e3a5da67526a'
2012-08-26 06:30:52 +00:00
option 'without-examples', "Don't build examples (including fpcalc)"
depends_on 'cmake' => :build
2012-08-26 06:30:52 +00:00
depends_on 'ffmpeg' unless build.include? 'without-examples'
def install
args = std_cmake_args
2012-08-26 06:30:52 +00:00
args << '-DBUILD_EXAMPLES=ON' unless build.include? 'without-examples'
system "cmake", ".", *args
system "make install"
end
end