From f24da9c320aa1b59488f3851488cc226480f5aa9 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 16 Nov 2013 21:55:41 -0600 Subject: chromaprint: add upstream patch to fix compilation Fixes #24388. --- Library/Formula/chromaprint.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Library') 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 + #include + #include ++#include + #include + #include + -- cgit v1.2.3