homebrew-core/Formula/chromaprint.rb
Jack Nagel c7630f5ff4 Use new std_cmake_args method
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-22 22:22:00 -05:00

21 lines
587 B
Ruby

require 'formula'
class Chromaprint < Formula
homepage 'http://acoustid.org/chromaprint'
url 'https://github.com/downloads/lalinsky/chromaprint/chromaprint-0.6.tar.gz'
md5 '6b5a4f2685395e68d8abc40d1c2a8785'
def options
[['--without-examples', "Don't build examples (including fpcalc)"]]
end
depends_on 'cmake' => :build
depends_on 'ffmpeg' unless ARGV.include? '--without-examples'
def install
args = std_cmake_args
args << '-DBUILD_EXAMPLES=ON' unless ARGV.include? '--without-examples'
system "cmake", ".", *args
system "make install"
end
end