aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/chromaprint.rb16
1 files changed, 13 insertions, 3 deletions
diff --git a/Library/Formula/chromaprint.rb b/Library/Formula/chromaprint.rb
index 98c59236a..5897d2074 100644
--- a/Library/Formula/chromaprint.rb
+++ b/Library/Formula/chromaprint.rb
@@ -1,14 +1,24 @@
require 'formula'
class Chromaprint < Formula
- url 'https://github.com/downloads/lalinsky/chromaprint/chromaprint-0.5.tar.gz'
homepage 'http://acoustid.org/chromaprint'
- md5 '59c7b54b7d0b814a0cee593c8ef1d5fd'
+ 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
- system "cmake . #{std_cmake_parameters}"
+ if ARGV.include? '--without-examples'
+ parameters = std_cmake_parameters
+ else
+ parameters = std_cmake_parameters + ' -DBUILD_EXAMPLES=ON'
+ end
+ system "cmake . #{parameters}"
system "make install"
end
end