2010-07-09 13:03:29 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Lastfmfpclient < Formula
|
2012-02-22 05:12:27 +00:00
|
|
|
homepage 'https://github.com/lastfm/Fingerprinter'
|
2013-03-29 20:29:20 +00:00
|
|
|
url 'https://github.com/lastfm/Fingerprinter/archive/9ee83a51ac9058ff53c9.tar.gz'
|
2010-07-09 13:03:29 +00:00
|
|
|
version '1.6'
|
2013-03-29 20:29:20 +00:00
|
|
|
sha1 '79f6a7b8db33cb4f417d5ba9ef06884e5be1fa80'
|
2010-07-09 13:03:29 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-07-09 13:03:29 +00:00
|
|
|
depends_on 'taglib'
|
|
|
|
depends_on 'fftw'
|
|
|
|
depends_on 'mad'
|
|
|
|
depends_on 'libsamplerate'
|
|
|
|
|
2012-08-22 13:31:47 +00:00
|
|
|
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
|
|
|
|
|
2010-07-09 13:03:29 +00:00
|
|
|
def install
|
2012-08-22 13:31:47 +00:00
|
|
|
inreplace_fix
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", ".", *std_cmake_args
|
2010-07-09 13:03:29 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|