pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/kid3 Fix build with chromaprint-1.4.x.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/add1ce9b49fa
branches:  trunk
changeset: 356141:add1ce9b49fa
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Dec 19 09:20:10 2016 +0000

description:
Fix build with chromaprint-1.4.x.

diffstat:

 audio/kid3/distinfo                                                           |   4 +-
 audio/kid3/patches/patch-src_plugins_acoustidimport_fingerprintcalculator.cpp |  23 ++++++++++
 audio/kid3/patches/patch-src_plugins_acoustidimport_fingerprintcalculator.h   |  23 ++++++++++
 3 files changed, 49 insertions(+), 1 deletions(-)

diffs (68 lines):

diff -r 48b54e56a855 -r add1ce9b49fa audio/kid3/distinfo
--- a/audio/kid3/distinfo       Mon Dec 19 09:08:12 2016 +0000
+++ b/audio/kid3/distinfo       Mon Dec 19 09:20:10 2016 +0000
@@ -1,7 +1,9 @@
-$NetBSD: distinfo,v 1.11 2015/11/01 09:13:16 adam Exp $
+$NetBSD: distinfo,v 1.12 2016/12/19 09:20:10 wiz Exp $
 
 SHA1 (kid3-3.3.0.tar.gz) = 5d9d02b2063b87023459fea0283444052978329e
 RMD160 (kid3-3.3.0.tar.gz) = 2442e95724a71fcd63f6de5dba0d689c4acec8b4
 SHA512 (kid3-3.3.0.tar.gz) = 42b238c2cc7023477606419a13bb677b8bfcc044a78ec36b8fa96db40ece8a2e623c581a2274d319c760fa6e101625dd282e1c7a39a63b8a2c6f0b1265be6eca
 Size (kid3-3.3.0.tar.gz) = 1258378 bytes
 SHA1 (patch-CMakeLists.txt) = 81e4ee22279dd9acf0619380f3b41e8316f7c2ea
+SHA1 (patch-src_plugins_acoustidimport_fingerprintcalculator.cpp) = 8ef550096f4a89c6074b94bb467832dfb2f1c98f
+SHA1 (patch-src_plugins_acoustidimport_fingerprintcalculator.h) = 9b9815db812d38eac65cc6c153c58ca86acd8dec
diff -r 48b54e56a855 -r add1ce9b49fa audio/kid3/patches/patch-src_plugins_acoustidimport_fingerprintcalculator.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/kid3/patches/patch-src_plugins_acoustidimport_fingerprintcalculator.cpp     Mon Dec 19 09:20:10 2016 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_plugins_acoustidimport_fingerprintcalculator.cpp,v 1.1 2016/12/19 09:20:10 wiz Exp $
+
+Fix build with chromaprint-1.4.x.
+
+--- src/plugins/acoustidimport/fingerprintcalculator.cpp.orig  2015-09-30 06:40:08.000000000 +0000
++++ src/plugins/acoustidimport/fingerprintcalculator.cpp
+@@ -26,7 +26,6 @@
+ 
+ #define __STDC_CONSTANT_MACROS
+ #include "fingerprintcalculator.h"
+-#include <chromaprint.h>
+ #include "config.h"
+ #include "abstractfingerprintdecoder.h"
+ 
+@@ -94,7 +93,7 @@ void FingerprintCalculator::startChromap
+  */
+ void FingerprintCalculator::feedChromaprint(QByteArray data)
+ {
+-  if (!::chromaprint_feed(m_chromaprintCtx, data.data(), data.size() / 2)) {
++  if (!::chromaprint_feed(m_chromaprintCtx, (int16_t*)data.data(), data.size() / 2)) {
+     m_decoder->stop();
+     emit finished(QString(), 0, FingerprintCalculationFailed);
+   }
diff -r 48b54e56a855 -r add1ce9b49fa audio/kid3/patches/patch-src_plugins_acoustidimport_fingerprintcalculator.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/kid3/patches/patch-src_plugins_acoustidimport_fingerprintcalculator.h       Mon Dec 19 09:20:10 2016 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_plugins_acoustidimport_fingerprintcalculator.h,v 1.1 2016/12/19 09:20:10 wiz Exp $
+
+Fix build with chromaprint-1.4.x.
+
+--- src/plugins/acoustidimport/fingerprintcalculator.h.orig    2015-09-30 06:40:08.000000000 +0000
++++ src/plugins/acoustidimport/fingerprintcalculator.h
+@@ -29,6 +29,7 @@
+ 
+ #include <QObject>
+ #include <QString>
++#include <chromaprint.h>
+ 
+ class AbstractFingerprintDecoder;
+ 
+@@ -110,7 +111,7 @@ private slots:
+   void finishChromaprint(int duration);
+ 
+ private:
+-  void** m_chromaprintCtx;
++  ChromaprintContext* m_chromaprintCtx;
+   AbstractFingerprintDecoder* m_decoder;
+ };
+ 



Home | Main Index | Thread Index | Old Index