diff options
author | arved <arved@FreeBSD.org> | 2012-12-02 20:46:56 +0800 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2012-12-02 20:46:56 +0800 |
commit | c366e88a9930e3c252e610670eeed262c2b13597 (patch) | |
tree | 68eb34a04519fb3721aba5dedfc06324d6945789 /audio/last.fm | |
parent | 84439cc32afe9c9eaf761d285f22e7818561bdae (diff) | |
download | freebsd-ports-gnome-c366e88a9930e3c252e610670eeed262c2b13597.tar.gz freebsd-ports-gnome-c366e88a9930e3c252e610670eeed262c2b13597.tar.zst freebsd-ports-gnome-c366e88a9930e3c252e610670eeed262c2b13597.zip |
Fix build with clang
PR: 173906
Submitted by: Rainer Hurling <rhurlin@gwdg.de>
add USE_DOS2UNIX, because the file that needs to be patch had ^M endings.
Feature safe: yes
Diffstat (limited to 'audio/last.fm')
-rw-r--r-- | audio/last.fm/Makefile | 1 | ||||
-rw-r--r-- | audio/last.fm/files/patch-src-libFingerprint-fplib-src-FloatingAverage.h | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/audio/last.fm/Makefile b/audio/last.fm/Makefile index 6da770a0594d..ca6e177369aa 100644 --- a/audio/last.fm/Makefile +++ b/audio/last.fm/Makefile @@ -32,6 +32,7 @@ USE_QT4= gui imageformats_run moc_build network qmake_build rcc_build \ sql uic_build xml HAS_CONFIGURE= yes USE_LDCONFIG= yes +USE_DOS2UNIX= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} diff --git a/audio/last.fm/files/patch-src-libFingerprint-fplib-src-FloatingAverage.h b/audio/last.fm/files/patch-src-libFingerprint-fplib-src-FloatingAverage.h new file mode 100644 index 000000000000..17ebdcdc5aa4 --- /dev/null +++ b/audio/last.fm/files/patch-src-libFingerprint-fplib-src-FloatingAverage.h @@ -0,0 +1,12 @@ +--- src/libFingerprint/fplib/src/FloatingAverage.h.orig 2007-12-18 15:18:19.000000000 +0100 ++++ src/libFingerprint/fplib/src/FloatingAverage.h 2012-11-25 13:23:10.000000000 +0100 +@@ -78,6 +78,7 @@ + { + T real_sum = 0; + const T* pCircularBuffer = m_values.get_buffer(); ++ const int size = m_values.size(); + for ( int i = 0; i < size; ++i ) + real_sum += pCircularBuffer[i]; + return abs(real_sum - m_sum) / this->size(); + + |