pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/audio/ladspa ladspa: fix build on SunOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ab7f1aa10211
branches:  trunk
changeset: 375788:ab7f1aa10211
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat Mar 26 22:06:10 2022 +0000

description:
ladspa: fix build on SunOS

diffstat:

 audio/ladspa/distinfo                           |   3 ++-
 audio/ladspa/patches/patch-src_plugins_sine.cpp |  15 +++++++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (32 lines):

diff -r f0efefc7a739 -r ab7f1aa10211 audio/ladspa/distinfo
--- a/audio/ladspa/distinfo     Sat Mar 26 21:52:36 2022 +0000
+++ b/audio/ladspa/distinfo     Sat Mar 26 22:06:10 2022 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.19 2021/11/01 20:30:27 wiz Exp $
+$NetBSD: distinfo,v 1.20 2022/03/26 22:06:10 tnn Exp $
 
 BLAKE2s (ladspa_sdk_1.17.tgz) = 9876c59c12ab9d15fab0fd6d9771d9a9e3b47af1fa286cdaf987d5e778ea0002
 SHA512 (ladspa_sdk_1.17.tgz) = 37f94aa52b5a2f8709528989dea289eb01342f3bcb9e85d0f4829ddd9d90b2934a113db11100f09375a50f6612122b78156fec916f2c78a22406253d5cb394c7
 Size (ladspa_sdk_1.17.tgz) = 71052 bytes
 SHA1 (patch-src_Makefile) = 7ec30356b85414d90194ad90b1ac50d1840aa947
 SHA1 (patch-src_applyplugin.c) = 0a3fb3f02d46655d913249e8f6f81bad04b6e4bc
+SHA1 (patch-src_plugins_sine.cpp) = e5b266e388ff8a568d598cb3e148ecc29e4e9148
diff -r f0efefc7a739 -r ab7f1aa10211 audio/ladspa/patches/patch-src_plugins_sine.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/ladspa/patches/patch-src_plugins_sine.cpp   Sat Mar 26 22:06:10 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_plugins_sine.cpp,v 1.1 2022/03/26 22:06:11 tnn Exp $
+
+cast pow(3) exponent to canonical type
+
+--- src/plugins/sine.cpp.orig  2021-09-10 08:50:46.000000000 +0000
++++ src/plugins/sine.cpp
+@@ -62,7 +62,7 @@ initialise_sine_table() {
+       g_pfSineTable[lIndex] = LADSPA_Data(sin(dShift * lIndex));
+   }
+   if (g_fPhaseStepBase == 0) {
+-    g_fPhaseStepBase = (LADSPA_Data)pow(2, sizeof(unsigned long) * 8);
++    g_fPhaseStepBase = (LADSPA_Data)pow(2, (double)sizeof(unsigned long) * 8);
+   }
+ }
+ 



Home | Main Index | Thread Index | Old Index