diff options
author | Dima Panov <fluffy@FreeBSD.org> | 2012-06-12 07:54:48 +0000 |
---|---|---|
committer | Dima Panov <fluffy@FreeBSD.org> | 2012-06-12 07:54:48 +0000 |
commit | 59642d1219c0fc9ff42830b664320824c78e3a3f (patch) | |
tree | 55ad67c07174db7fd3ba75e2c959f0983cf82767 /audio/liblastfm | |
parent | 4caad35110a71563f4dacfb501651e3b7623af18 (diff) |
Notes
Diffstat (limited to 'audio/liblastfm')
-rw-r--r-- | audio/liblastfm/Makefile | 3 | ||||
-rw-r--r-- | audio/liblastfm/files/patch-src_fingerprint_fplib_FloatingAverage.h | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/audio/liblastfm/Makefile b/audio/liblastfm/Makefile index e0e9b5a40fe6..d4afc7dfe5ee 100644 --- a/audio/liblastfm/Makefile +++ b/audio/liblastfm/Makefile @@ -7,7 +7,7 @@ PORTNAME= liblastfm PORTVERSION= 0.3.3 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_LOCAL} MASTER_SITE_SUBDIR= swills @@ -20,6 +20,7 @@ LIB_DEPENDS= samplerate.1:${PORTSDIR}/audio/libsamplerate \ fftw3:${PORTSDIR}/math/fftw3 \ fftw3f:${PORTSDIR}/math/fftw3-float +USE_CSTD= gnu89 USE_RUBY= yes USE_GMAKE= yes USE_QT4= corelib xml network sql gui qtestlib \ diff --git a/audio/liblastfm/files/patch-src_fingerprint_fplib_FloatingAverage.h b/audio/liblastfm/files/patch-src_fingerprint_fplib_FloatingAverage.h new file mode 100644 index 000000000000..1c7c8d49b49e --- /dev/null +++ b/audio/liblastfm/files/patch-src_fingerprint_fplib_FloatingAverage.h @@ -0,0 +1,13 @@ +$NetBSD: patch-src_fingerprint_fplib_FloatingAverage.h,v 1.1 2012/04/17 17:39:47 joerg Exp $ + +--- src/fingerprint/fplib/FloatingAverage.h.orig 2012-04-17 15:10:50.000000000 +0000 ++++ src/fingerprint/fplib/FloatingAverage.h +@@ -76,7 +76,7 @@ public: + { + T real_sum = 0; + const T* pCircularBuffer = m_values.get_buffer(); +- for ( int i = 0; i < size; ++i ) ++ for ( int i = 0; i < size(); ++i ) + real_sum += pCircularBuffer[i]; + return abs(real_sum - m_sum) / this->size(); + } |