summaryrefslogtreecommitdiff
path: root/audio/strawberry
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2022-04-25 15:19:48 +0000
committertnn <tnn@pkgsrc.org>2022-04-25 15:19:48 +0000
commit62f37163c370f54c79f8d039b370a7c472602720 (patch)
treec0681efa4237c52969c14f6dd0fa2cb65047d63d /audio/strawberry
parent00ab3a8bc8237e3967913b24f731e7580fb68be3 (diff)
downloadpkgsrc-62f37163c370f54c79f8d039b370a7c472602720.tar.gz
strawberry: avoid ambiguous math functions
Diffstat (limited to 'audio/strawberry')
-rw-r--r--audio/strawberry/distinfo4
-rw-r--r--audio/strawberry/patches/patch-src_analyzer_blockanalyzer.cpp15
-rw-r--r--audio/strawberry/patches/patch-src_analyzer_boomanalyzer.cpp14
3 files changed, 32 insertions, 1 deletions
diff --git a/audio/strawberry/distinfo b/audio/strawberry/distinfo
index 6036047e9e6..56aa6eed479 100644
--- a/audio/strawberry/distinfo
+++ b/audio/strawberry/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.18 2022/04/10 15:25:22 nia Exp $
+$NetBSD: distinfo,v 1.19 2022/04/25 15:19:48 tnn Exp $
BLAKE2s (strawberry-1.0.4.tar.xz) = a4a21708497f4c01d71540a8d97347459c0eb49ed7f990944485688ae10230c1
SHA512 (strawberry-1.0.4.tar.xz) = e2a90911acd47735715266cb3745910a6e04a2ef4e98b0c9734230a5e2b382cf7d3681fc2e368a361e7a7c53bc0627a88a36e6df6c4f6941d54f65e2424d29ee
Size (strawberry-1.0.4.tar.xz) = 11208992 bytes
+SHA1 (patch-src_analyzer_blockanalyzer.cpp) = e1e22a4ea278f03142f13fd8310730854a8ddc9a
+SHA1 (patch-src_analyzer_boomanalyzer.cpp) = 833bab9d6b59644c9acae662bc389bf731e507ad
diff --git a/audio/strawberry/patches/patch-src_analyzer_blockanalyzer.cpp b/audio/strawberry/patches/patch-src_analyzer_blockanalyzer.cpp
new file mode 100644
index 00000000000..c0d8de78c3d
--- /dev/null
+++ b/audio/strawberry/patches/patch-src_analyzer_blockanalyzer.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_analyzer_blockanalyzer.cpp,v 1.1 2022/04/25 15:19:48 tnn Exp $
+
+avoid ambiguous math functions
+
+--- src/analyzer/blockanalyzer.cpp.orig 2022-03-26 20:21:03.329168404 +0000
++++ src/analyzer/blockanalyzer.cpp
+@@ -36,6 +36,8 @@
+ #include "analyzerbase.h"
+ #include "fht.h"
+
++using std::log10;
++
+ const int BlockAnalyzer::kHeight = 2;
+ const int BlockAnalyzer::kWidth = 4;
+ const int BlockAnalyzer::kMinRows = 3; // arbitrary
diff --git a/audio/strawberry/patches/patch-src_analyzer_boomanalyzer.cpp b/audio/strawberry/patches/patch-src_analyzer_boomanalyzer.cpp
new file mode 100644
index 00000000000..d07c26c6fd5
--- /dev/null
+++ b/audio/strawberry/patches/patch-src_analyzer_boomanalyzer.cpp
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_analyzer_boomanalyzer.cpp,v 1.1 2022/04/25 15:19:48 tnn Exp $
+
+avoid ambiguous math functions
+
+--- src/analyzer/boomanalyzer.cpp.orig 2022-03-22 20:09:13.757653684 +0000
++++ src/analyzer/boomanalyzer.cpp
+@@ -38,6 +38,7 @@
+ #include "analyzerbase.h"
+
+ using Analyzer::Scope;
++using std::log10;
+
+ const int BoomAnalyzer::kColumnWidth = 4;
+ const int BoomAnalyzer::kMaxBandCount = 256;