aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/chromaprint.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/chromaprint.rb')
-rw-r--r--Library/Formula/chromaprint.rb9
1 files changed, 3 insertions, 6 deletions
diff --git a/Library/Formula/chromaprint.rb b/Library/Formula/chromaprint.rb
index 18017a8ef..dfe06efe5 100644
--- a/Library/Formula/chromaprint.rb
+++ b/Library/Formula/chromaprint.rb
@@ -13,12 +13,9 @@ class Chromaprint < Formula
depends_on 'ffmpeg' unless ARGV.include? '--without-examples'
def install
- if ARGV.include? '--without-examples'
- args = std_cmake_parameters
- else
- args = std_cmake_parameters + ' -DBUILD_EXAMPLES=ON'
- end
- system "cmake #{args} ."
+ args = std_cmake_args
+ args << '-DBUILD_EXAMPLES=ON' unless ARGV.include? '--without-examples'
+ system "cmake", ".", *args
system "make install"
end
end