Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2012 12:46:56 +0000 (UTC)
From:      Tilman Keskinoz <arved@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308104 - in head/audio/last.fm: . files
Message-ID:  <201212021246.qB2CkuLw069183@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: arved
Date: Sun Dec  2 12:46:56 2012
New Revision: 308104
URL: http://svnweb.freebsd.org/changeset/ports/308104

Log:
  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

Added:
  head/audio/last.fm/files/patch-src-libFingerprint-fplib-src-FloatingAverage.h   (contents, props changed)
Modified:
  head/audio/last.fm/Makefile

Modified: head/audio/last.fm/Makefile
==============================================================================
--- head/audio/last.fm/Makefile	Sun Dec  2 12:25:48 2012	(r308103)
+++ head/audio/last.fm/Makefile	Sun Dec  2 12:46:56 2012	(r308104)
@@ -32,6 +32,7 @@ USE_QT4=	gui imageformats_run moc_build 
 		sql uic_build xml
 HAS_CONFIGURE=	yes
 USE_LDCONFIG=	yes
+USE_DOS2UNIX=	yes
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 

Added: head/audio/last.fm/files/patch-src-libFingerprint-fplib-src-FloatingAverage.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/last.fm/files/patch-src-libFingerprint-fplib-src-FloatingAverage.h	Sun Dec  2 12:46:56 2012	(r308104)
@@ -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();
+
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212021246.qB2CkuLw069183>