Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

update for chromaprint #10094

Closed
wants to merge 1 commit into from

2 participants

@tungol

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.

tungolcraft update chromaprint to 0.6 and make it build examples by default.
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.
0ef0eb6
@adamv
Owner

Pulled as ad67991 - thanks.

@adamv adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 10, 2012
  1. update chromaprint to 0.6 and make it build examples by default.

    tungolcraft authored
    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.
This page is out of date. Refresh to see the latest.
Showing with 18 additions and 3 deletions.
  1. +18 −3 Library/Formula/chromaprint.rb
View
21 Library/Formula/chromaprint.rb
@@ -1,14 +1,29 @@
require 'formula'
class Chromaprint < Formula
- url 'https://github.com/downloads/lalinsky/chromaprint/chromaprint-0.5.tar.gz'
+ url 'https://github.com/downloads/lalinsky/chromaprint/chromaprint-0.6.tar.gz'
homepage 'http://acoustid.org/chromaprint'
- md5 '59c7b54b7d0b814a0cee593c8ef1d5fd'
+ md5 '6b5a4f2685395e68d8abc40d1c2a8785'
+
+ def options
+ [
+ ['--without-examples', "Don't build examples (including fpcalc)"]
+ ]
+ end
depends_on 'cmake' => :build
+ if not ARGV.include? '--without-examples'
+ depends_on 'ffmpeg'
+ end
+
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
Something went wrong with that request. Please try again.