aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerion Entrup <gerion.entrup@flump.de>2017-09-28 19:01:35 +0200
committerGerion Entrup <gerion.entrup@flump.de>2017-09-28 19:01:35 +0200
commit4ca3e6bc96dbdcdd8058d2fe60036e4f48d60854 (patch)
treebee31be82f1b85670a86771f08accd1b404075a3 /media-plugins
parentmedia-sound/ladish: drop ebuild, available in audio-overlay (diff)
downloadgerislay-4ca3e6bc96dbdcdd8058d2fe60036e4f48d60854.tar.gz
gerislay-4ca3e6bc96dbdcdd8058d2fe60036e4f48d60854.tar.bz2
gerislay-4ca3e6bc96dbdcdd8058d2fe60036e4f48d60854.zip
media-sound/calf: dependency for ladish
Diffstat (limited to 'media-plugins')
-rw-r--r--media-plugins/calf/Manifest4
-rw-r--r--media-plugins/calf/calf-0.0.60-r2.ebuild49
-rw-r--r--media-plugins/calf/files/calf-0.0.60-cpp14.patch67
-rw-r--r--media-plugins/calf/metadata.xml14
4 files changed, 134 insertions, 0 deletions
diff --git a/media-plugins/calf/Manifest b/media-plugins/calf/Manifest
new file mode 100644
index 0000000..954d757
--- /dev/null
+++ b/media-plugins/calf/Manifest
@@ -0,0 +1,4 @@
+AUX calf-0.0.60-cpp14.patch 3259 SHA256 44e14913e34a21572a1258fbbc39f7e7362edd915b535fcb07efa77ede295bf7 SHA512 6f71feced0d2cb3799a337cf5dd32ee43e8d5f412ea144a6e65c293d0d7c7898f800b375757422adc15b42576b6a4c817fdb07bf1ccf59ce658754b702c58243 WHIRLPOOL 7b9e20464bf73036fe52a86d528ffbf03e884468aef59c7fcbd3759bc2f388e8942038c0810c792e806f9d9a9ebd682fdae4fc94da270ea4a6a8b20a71ecf30e
+DIST calf-0.0.60.tar.gz 5594386 SHA256 5ca8d3c8fbdca52304cbd01d80eebc0e2adf6bc6404a05a5fc58a0f5512c8100 SHA512 85a814b1210765bd16a60a4921c4518b1721c6b72aa9c902d1c0f8e4dcad285de2b52e3c2783bc221b575c61de9c859f40d589cf8a68efc260f393a864dfc360 WHIRLPOOL 4cf931e1f6bddf4b4b53cd2d18f61c400fdf8c2137507f3623414bdd39980502163eb4cebcac953d9ab38e5571cbaf9de54e6c7cb25bfb61e59e2d0efbc5b692
+EBUILD calf-0.0.60-r2.ebuild 1098 SHA256 e950eab7b96d53bca1a7a61473d8ca57562a326b42c5f0ef1f43a4ce96a4550a SHA512 15ef9f0bb39fc94cb8e9ce9f437a313b0710eb9a5025dfa312397b282d7318ecca7eb5b970eac7a5484bd9a09580b725b72cc91131b2f4c75a5ddc01824d24b0 WHIRLPOOL fff910210d7d1c14835e0f4c0000c4bda09883f2f1a89995a0c81c693bd50b56d0efbd58fdbed06b47aff63f8f40f11366be90b406c3b78873eb17e3ca1e9ffd
+MISC metadata.xml 426 SHA256 0ea1403e2b2c9584cd40d26731b06f1665c4b93ce757074556174c41798d30cf SHA512 c0c4dfea3fa151158b244edd8b03e666602d79df823e88889e6358fd2f5fb5910aab04c187492ad73904489835bbf8fcdc583a22a3ad0b59d772e9af494e02aa WHIRLPOOL 96e695f96b8e4e166faee1e2e407e56f6d055466d7acb4c873827301180bc8e7f47852207aa30f428994b47890dd93842ff186dec3f3c383073cb0c1ade13229
diff --git a/media-plugins/calf/calf-0.0.60-r2.ebuild b/media-plugins/calf/calf-0.0.60-r2.ebuild
new file mode 100644
index 0000000..c4ae269
--- /dev/null
+++ b/media-plugins/calf/calf-0.0.60-r2.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+AUTOTOOLS_AUTORECONF=yes
+inherit autotools-utils
+
+DESCRIPTION="A set of open source instruments and effects for digital audio workstations"
+HOMEPAGE="http://calf-studio-gear.org/"
+
+if [[ "${PV}" = "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/calf-studio-gear/calf.git"
+else
+ SRC_URI="https://github.com/calf-studio-gear/calf/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+IUSE="lash lv2 static-libs"
+
+RDEPEND="dev-libs/atk
+ dev-libs/expat
+ dev-libs/glib:2
+ gnome-base/libglade:2.0
+ media-sound/fluidsynth
+ virtual/jack
+ x11-libs/cairo
+ x11-libs/gdk-pixbuf
+ x11-libs/gtk+:2
+ x11-libs/pango
+ lash? ( || ( media-sound/lash media-sound/ladish ) )
+ lv2? ( media-libs/lv2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}/${P}-cpp14.patch" # bug #594116
+)
+
+src_configure() {
+ myeconfargs=(
+ --with-lv2-dir=/usr/$(get_libdir)/lv2
+ $(use_with lash)
+ $(use_with lv2)
+ )
+ autotools-utils_src_configure
+}
diff --git a/media-plugins/calf/files/calf-0.0.60-cpp14.patch b/media-plugins/calf/files/calf-0.0.60-cpp14.patch
new file mode 100644
index 0000000..a04043c
--- /dev/null
+++ b/media-plugins/calf/files/calf-0.0.60-cpp14.patch
@@ -0,0 +1,67 @@
+Fix building with C++14 (default in GCC 6). Changes types (mostly float into
+double). Add necessary casts.
+See also: https://bugs.gentoo.org/show_bug.cgi?id=594116
+
+--- a/src/analyzer.cpp
++++ b/src/analyzer.cpp
+@@ -470,13 +470,13 @@
+ lastoutL = fft_outL[_iter];
+ //pumping up actual signal an erase surrounding
+ // sounds
+- fft_outL[_iter] = 0.25f * std::max(n * 0.6f * \
++ fft_outL[_iter] = 0.25 * std::max(n * 0.6 * \
+ fabs(fft_outL[_iter]) - var1L , 1e-20);
+ if(_mode == 3 or _mode == 4) {
+ // do the same with R channel if needed
+ lastoutR = fft_outR[_iter];
+- fft_outR[_iter] = 0.25f * std::max(n * \
+- 0.6f * fabs(fft_outR[_iter]) - var1R , 1e-20);
++ fft_outR[_iter] = 0.25 * std::max(n * \
++ 0.6 * fabs(fft_outR[_iter]) - var1R , 1e-20);
+ }
+ break;
+ }
+--- a/src/jack_client.cpp
++++ b/src/jack_client.cpp
+@@ -226,7 +226,7 @@
+ map<string, int>::const_iterator p = port_to_plugin.find((*k) + cnlen + 1);
+ if (p != port_to_plugin.end())
+ {
+- run_before.insert(make_pair<int, int>(p->second, i));
++ run_before.insert(make_pair<int, int>((int)p->second, (int)i));
+ }
+ }
+ jack_free(conns);
+--- a/src/modules_dist.cpp
++++ b/src/modules_dist.cpp
+@@ -794,8 +794,8 @@
+ lfo2.advance(1);
+
+ // dot
+- rms = std::max((double)rms, (fabs(Lo) + fabs(Ro)) / 2);
+- input = std::max((double)input, (fabs(Lc) + fabs(Rc)) / 2);
++ rms = std::max((double)rms, (fabs(Lo) + fabs(Ro)) / 2.0);
++ input = std::max((double)input, (fabs(Lc) + fabs(Rc)) / 2.0);
+
+ float values[] = {inL, inR, outs[0][i], outs[1][i]};
+ meters.process(values);
+--- a/src/modules_limit.cpp
++++ b/src/modules_limit.cpp
+@@ -429,7 +429,7 @@
+ }
+
+ // write multiband coefficient to buffer
+- buffer[pos] = std::min(*params[param_limit] / std::max(fabs(tmpL), fabs(tmpR)), 1.0);
++ buffer[pos] = std::min((double)*params[param_limit] / std::max(fabs(tmpL), fabs(tmpR)), 1.0);
+
+ // step forward in multiband buffer
+ pos = (pos + channels) % buffer_size;
+@@ -811,7 +811,7 @@
+ }
+
+ // write multiband coefficient to buffer
+- buffer[pos] = std::min(*params[param_limit] / std::max(fabs(tmpL), fabs(tmpR)), 1.0);
++ buffer[pos] = std::min((double)*params[param_limit] / std::max(fabs(tmpL), fabs(tmpR)), 1.0);
+
+ // step forward in multiband buffer
+ pos = (pos + channels) % buffer_size;
diff --git a/media-plugins/calf/metadata.xml b/media-plugins/calf/metadata.xml
new file mode 100644
index 0000000..c5f0b39
--- /dev/null
+++ b/media-plugins/calf/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>proaudio@gentoo.org</email>
+ <name>Gentoo ProAudio Project</name>
+ </maintainer>
+ <use>
+ <flag name="lv2">Add support for Ladspa V2</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">calf-studio-gear/calf</remote-id>
+ </upstream>
+</pkgmetadata>