diff options
| author | Jack Nagel | 2013-11-16 21:55:41 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-11-16 21:56:03 -0600 |
| commit | f24da9c320aa1b59488f3851488cc226480f5aa9 (patch) | |
| tree | 44f9d4cf40a61c16cd341db473f6a12eab5621d8 /Library | |
| parent | d70f50aaee5e90ade9174de888e42d238854fa64 (diff) | |
| download | homebrew-f24da9c320aa1b59488f3851488cc226480f5aa9.tar.bz2 | |
chromaprint: add upstream patch to fix compilation
Fixes #24388.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/chromaprint.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/chromaprint.rb b/Library/Formula/chromaprint.rb index 1c47a880b..b71067d82 100644 --- a/Library/Formula/chromaprint.rb +++ b/Library/Formula/chromaprint.rb @@ -10,6 +10,10 @@ class Chromaprint < Formula depends_on 'cmake' => :build depends_on 'ffmpeg' unless build.include? 'without-examples' + # Upstream patch: + # https://bitbucket.org/acoustid/chromaprint/commits/d0a8d8bc7c1ad5bda3294836f49184fe34a92454 + def patches; DATA; end + def install args = std_cmake_args args << '-DBUILD_EXAMPLES=ON' unless build.include? 'without-examples' @@ -17,3 +21,17 @@ class Chromaprint < Formula system "make install" end end + +__END__ +diff --git a/src/utils.h b/src/utils.h +index 47c6b98..76fb240 100644 +--- a/src/utils.h ++++ b/src/utils.h +@@ -28,6 +28,7 @@ + #include <math.h> + #include <stddef.h> + #include <stdint.h> ++#include <algorithm> + #include <limits> + #include <iterator> + |
