diff options
author | tnn <tnn@pkgsrc.org> | 2022-03-26 22:06:10 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2022-03-26 22:06:10 +0000 |
commit | a0cebba16d36696bc35ff719d86847961c98b12f (patch) | |
tree | ccfb26afff4ca16aa361a94c97fe792560cd4758 /audio/ladspa | |
parent | 7c55a6a93672150982c1b4a91bba4dc5af558093 (diff) | |
download | pkgsrc-a0cebba16d36696bc35ff719d86847961c98b12f.tar.gz |
ladspa: fix build on SunOS
Diffstat (limited to 'audio/ladspa')
-rw-r--r-- | audio/ladspa/distinfo | 3 | ||||
-rw-r--r-- | audio/ladspa/patches/patch-src_plugins_sine.cpp | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/audio/ladspa/distinfo b/audio/ladspa/distinfo index 75a8ceee350..13469256876 100644 --- a/audio/ladspa/distinfo +++ b/audio/ladspa/distinfo @@ -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 --git a/audio/ladspa/patches/patch-src_plugins_sine.cpp b/audio/ladspa/patches/patch-src_plugins_sine.cpp new file mode 100644 index 00000000000..f0385aeca40 --- /dev/null +++ b/audio/ladspa/patches/patch-src_plugins_sine.cpp @@ -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); + } + } + |