95884bae22
Closes Homebrew/homebrew#42407. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
29 lines
959 B
Ruby
29 lines
959 B
Ruby
class Lastfmfpclient < Formula
|
|
desc "Last.fm fingerprint library"
|
|
homepage "https://github.com/lastfm/Fingerprinter"
|
|
url "https://github.com/lastfm/Fingerprinter/archive/9ee83a51ac9058ff53c9.tar.gz"
|
|
version "1.6"
|
|
sha256 "c72c61bf5b60f7924f55c0a8809d2762768716db8bce9a346334c2aaefb9ce85"
|
|
|
|
depends_on "cmake" => :build
|
|
depends_on "taglib"
|
|
depends_on "fftw"
|
|
depends_on "mad"
|
|
depends_on "libsamplerate"
|
|
|
|
def inreplace_fix
|
|
# This project was made on Windows (LOL), patches against Windows
|
|
# line-endings fail for some reason, so we will inreplace instead.
|
|
# Fixes compile with clang failure due to entirely missing variable, how
|
|
# on earth did GCC ever compile this?!
|
|
inreplace "fplib/src/FloatingAverage.h",
|
|
"for ( int i = 0; i < size; ++i )",
|
|
"for ( int i = 0; i < m_values.size(); ++i )"
|
|
end
|
|
|
|
def install
|
|
inreplace_fix
|
|
system "cmake", ".", *std_cmake_args
|
|
system "make", "install"
|
|
end
|
|
end
|