mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-27 19:39:48 -05:00
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>
25 lines
653 B
Ruby
25 lines
653 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
|
|
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
|