aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/chromaprint.rb
blob: 8355345bc3db226b1fd8d561b01b6e3b5fb9965b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Chromaprint < Formula
  homepage 'http://acoustid.org/chromaprint'
  url 'https://github.com/downloads/lalinsky/chromaprint/chromaprint-0.6.tar.gz'
  sha1 'e8bcc1d0d8dfec86aa648b87ba3f69b6d589eae0'

  option 'without-examples', "Don't build examples (including fpcalc)"

  depends_on 'cmake' => :build
  depends_on 'ffmpeg' unless build.include? 'without-examples'

  def install
    args = std_cmake_args
    args << '-DBUILD_EXAMPLES=ON' unless build.include? 'without-examples'
    system "cmake", ".", *args
    system "make install"
  end
end