diff options
| author | tungolcraft | 2012-02-10 07:20:50 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-14 19:35:58 -0800 |
| commit | ad67991324dc525856aa66feb37a162f0b0ffe2a (patch) | |
| tree | 32e02584cd0b856b068201d0ff000b37880a9dd2 /Library | |
| parent | 6f732a02f2791a4e8235beb8f627fda0b46e609c (diff) | |
| download | homebrew-ad67991324dc525856aa66feb37a162f0b0ffe2a.tar.bz2 | |
chromaprint 0.6
This commit updates chromaprint from 0.5 to 0.6. Also, the existing recipe
didn't build examples, which meant that it didn't build fpcalc, which is the
most useful part of the package. Now it builds examples by default, which
introduces a dependency on ffmpeg. If you really want just the libraries,
the option --without-examples will give the old behavior.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/chromaprint.rb | 16 |
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 |
