Fix lastfmfpclient compilation with clang
NOTE lastfm_fplib is the exact same formula! We need to solve deletion/renames and remove one of them. Fixes Homebrew/homebrew#13485.master
parent
4d1c18decc
commit
6b01891cf3
|
@ -11,6 +11,7 @@ class LastfmFplib < Formula
|
|||
depends_on 'fftw'
|
||||
|
||||
def install
|
||||
Formula.factory("lastfmfpclient").inreplace_fix
|
||||
system "cmake", ".", *std_cmake_args
|
||||
system "make install"
|
||||
end
|
||||
|
|
|
@ -12,7 +12,18 @@ class Lastfmfpclient < Formula
|
|||
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
|
||||
# the fuck 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
|
||||
|
|
Loading…
Reference in New Issue