summaryrefslogtreecommitdiff
path: root/media-plugins/calf
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-plugins/calf
reinit the tree, so we can have metadata
Diffstat (limited to 'media-plugins/calf')
-rw-r--r--media-plugins/calf/Manifest7
-rw-r--r--media-plugins/calf/calf-0.0.60-r1.ebuild49
-rw-r--r--media-plugins/calf/calf-9999.ebuild45
-rw-r--r--media-plugins/calf/files/calf-0.0.60-cpp14.patch67
-rw-r--r--media-plugins/calf/metadata.xml14
5 files changed, 182 insertions, 0 deletions
diff --git a/media-plugins/calf/Manifest b/media-plugins/calf/Manifest
new file mode 100644
index 000000000000..eb6d5fca0031
--- /dev/null
+++ b/media-plugins/calf/Manifest
@@ -0,0 +1,7 @@
+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-r1.ebuild 1072 SHA256 3a8ffac4543bb1787840cedce7e3faeca62c152744abcf25c30950fd248c1794 SHA512 a03773a5f4e5de8b07d97e27555d6f0ae233f1f96dd8f9e11f326dff8cf477d0a97d5d89def9a18b7cea5e467a411f8622edf3fa4e951c9b16bbc116860bb025 WHIRLPOOL 05a99237a6a09a9650a90de6d6e30ab244a1a4109afb447e52b71ddc474828c7b53a0aa674f02ea090d4b54dbc38c500aab1d569bab98482d0e229b53d342a9d
+EBUILD calf-9999.ebuild 1013 SHA256 de2a24a365089c1cbb70bdcecad35eac4a8804d8a9f56cbe3774e0d9e1990564 SHA512 47de7976ca2dcc0cb8fc573ceb29af42ecdac8dd2596df1839edb7b246d29c64465f02a0d82ede381a0a5f9cdd1f846792d43275e24ec4f40b017c6fc18d62ff WHIRLPOOL e1d3eae134128517875b76826a7818ef45ee757fa16749dd0569fe00b41b2fab56ba0031061d674674d2807d8526442a51cf67a12924fb5bfb9eb2975fab7868
+MISC ChangeLog 2893 SHA256 ac2ab835faadfa0be550ebd66f9661a9983ece33ba4a9e9c995806208ff9bf16 SHA512 3696db6360474afefa2db83fc7cddfd73085c5e24c8c57e7bca7a415075354c380e2990398e2d0eede236171c3c3636ffd5ad3e067882afad625b9a8df074f7e WHIRLPOOL 70650210969d776b75d7b840ceb0e39e7d7655d4b9c0151417de24d02c6cbbeff10af0dd258c68dde5a72b69b1e6aa02c62a56b9a5ab4ba14830db6c9075322d
+MISC ChangeLog-2015 423 SHA256 0f1eb1d869a032a62b43bfc008bf588d15ebf77f2f81669825f12686b004fead SHA512 a4447a4e104898c1fe2c3cba618a13abc0026c00dc935152801cad8a8707d9ab5e11216ffcedcba65642f645d305c827315109d73de9cfdac25a4708da598e24 WHIRLPOOL df0cfb53e47ab5375e6db646a6225073192100187b90f4c020ab6d5bc841a033ae3aa88c2e57b87f5eb9dc0a734a3dd48ce664a52fd056ea7eda1d7c08425816
+MISC metadata.xml 426 SHA256 0ea1403e2b2c9584cd40d26731b06f1665c4b93ce757074556174c41798d30cf SHA512 c0c4dfea3fa151158b244edd8b03e666602d79df823e88889e6358fd2f5fb5910aab04c187492ad73904489835bbf8fcdc583a22a3ad0b59d772e9af494e02aa WHIRLPOOL 96e695f96b8e4e166faee1e2e407e56f6d055466d7acb4c873827301180bc8e7f47852207aa30f428994b47890dd93842ff186dec3f3c383073cb0c1ade13229
diff --git a/media-plugins/calf/calf-0.0.60-r1.ebuild b/media-plugins/calf/calf-0.0.60-r1.ebuild
new file mode 100644
index 000000000000..75124e7758f5
--- /dev/null
+++ b/media-plugins/calf/calf-0.0.60-r1.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 )
+ 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/calf-9999.ebuild b/media-plugins/calf/calf-9999.ebuild
new file mode 100644
index 000000000000..13a3700305e8
--- /dev/null
+++ b/media-plugins/calf/calf-9999.ebuild
@@ -0,0 +1,45 @@
+# 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 )
+ lv2? ( media-libs/lv2 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+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 000000000000..a04043c8abca
--- /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 000000000000..c5f0b39e571c
--- /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>