From 2f1316bf50ea6e6a73a78757b8158ffe5b542849 Mon Sep 17 00:00:00 2001 From: audiodef Date: Mon, 20 Feb 2023 18:36:57 -0500 Subject: [PATCH] media-sound/tap-reverbed: Added to overlay to test switch to virtual/jack, as well as to preserve it in case of removal --- media-sound/tap-reverbed/Manifest | 5 ++ .../files/tap-reverbed-0-fno-common.patch | 65 +++++++++++++++++++ .../files/tap-reverbed-flags.patch | 52 +++++++++++++++ media-sound/tap-reverbed/metadata.xml | 11 ++++ .../tap-reverbed/tap-reverbed-0-r1.ebuild | 42 ++++++++++++ 5 files changed, 175 insertions(+) create mode 100644 media-sound/tap-reverbed/Manifest create mode 100644 media-sound/tap-reverbed/files/tap-reverbed-0-fno-common.patch create mode 100644 media-sound/tap-reverbed/files/tap-reverbed-flags.patch create mode 100644 media-sound/tap-reverbed/metadata.xml create mode 100644 media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild diff --git a/media-sound/tap-reverbed/Manifest b/media-sound/tap-reverbed/Manifest new file mode 100644 index 0000000..216a63e --- /dev/null +++ b/media-sound/tap-reverbed/Manifest @@ -0,0 +1,5 @@ +AUX tap-reverbed-0-fno-common.patch 1379 BLAKE2B 107a0172c782e775b081abb2a6bab43a5c9a22518dfd4a7a372ec53b43f4ed1230ef7671c95a45a972400bbeb0443a6ef0d0f17162e50836c52e2506d68ea084 SHA512 5f932d010a25633f37833c0808ab585a256b14ea611accfd5005212b05b0ff07a479052e88e486326f2101f8404254e9753638be96bb0e6dea8cdb46ea4d6f37 +AUX tap-reverbed-flags.patch 1549 BLAKE2B 710b8a2276cd7ca79623e65f9aecaf80c9856a4cf26730c8891deb6894d4c3a357aed0b7359d3672f80d66e5934c0b75693d4ab45550b995e9e431084e3d6577 SHA512 8bd6781d1dbe61231916f0294557b724532baefcbd04317e7483617482f640bc0b4a05e2b3d2b4062c4fb964347602dcb426df9dae96368f384b84e1970780e8 +DIST tap-reverbed-r0.tar.gz 90703 BLAKE2B 7230220b93a5015be790873dec288149cd7d30253a2f4847bbe5c555328a3fff65195bbf6485be71afb91638fb267a3d6cdf351b6edbff4589044f0fba061df5 SHA512 72b3f1257cf5a7076a35afa92604b8df96051e6727f49b9b01192873e6cb3b21e3daaa9e70796966faa13d2e94b9fdf34cdb41b3e91805dbc9787897a7882cda +EBUILD tap-reverbed-0-r1.ebuild 972 BLAKE2B 17aa1c908d187d648ae5a84749ffb3335280faa837f07a9896ff7e74ac7b8e22c74a87919f2ff2ea77388b1594fb27a2d1993f4e7074b694cf669cdcb3bbd095 SHA512 ee630fc705089e08bdba632f47cccee653c0b964f33e429fbfe9bc9860a931a11b87f1f9d3808d3a026c36e151c06768d6ea2e135675ac46dc9fa84eea3217cc +MISC metadata.xml 341 BLAKE2B 1e83a7904906f811b5ebc97d17c135f49228fa7e0e977ddfb243c75d631db31af74f1b86481393ff5dff105433ed4df69641f9de7836182fa76a25b29f755307 SHA512 258b12bac5c7dd2c4ad1598856353632611b5f622fc8fdaa72f3dcee46765ee80d5d6b8d6cd64c2a7975ae0e73a1f8b0cca0ee7bbae72fcd6ecd32c8ec55b89e diff --git a/media-sound/tap-reverbed/files/tap-reverbed-0-fno-common.patch b/media-sound/tap-reverbed/files/tap-reverbed-0-fno-common.patch new file mode 100644 index 0000000..c01461f --- /dev/null +++ b/media-sound/tap-reverbed/files/tap-reverbed-0-fno-common.patch @@ -0,0 +1,65 @@ +--- a/src/ports.c ++++ b/src/ports.c +@@ -37,6 +37,16 @@ + #define LIST_WIDTH 200 + #define LIST_HEIGHT 100 + ++extern unsigned long sample_rate; ++extern jack_client_t * client; ++extern const char ** ports_in; ++extern const char ** ports_out; ++ ++extern jack_port_t * in_L_port; ++extern jack_port_t * in_R_port; ++extern jack_port_t * out_L_port; ++extern jack_port_t * out_R_port; ++ + + extern GtkWidget * ports_button; + +--- a/src/sound.c ++++ b/src/sound.c +@@ -44,6 +44,16 @@ + */ + /* #define REVERBED_CALC_FLOAT */ + ++unsigned long sample_rate; ++jack_client_t * client; ++const char ** ports_in; ++const char ** ports_out; ++ ++jack_port_t * in_L_port; ++jack_port_t * in_R_port; ++jack_port_t * out_L_port; ++jack_port_t * out_R_port; ++ + + extern int client_running; + extern REVTYPE * curr; +--- a/src/sound.h ++++ b/src/sound.h +@@ -24,15 +24,15 @@ + + + +-unsigned long sample_rate; +-jack_client_t * client; +-const char ** ports_in; +-const char ** ports_out; +- +-jack_port_t * in_L_port; +-jack_port_t * in_R_port; +-jack_port_t * out_L_port; +-jack_port_t * out_R_port; ++extern unsigned long sample_rate; ++extern jack_client_t * client; ++extern const char ** ports_in; ++extern const char ** ports_out; ++ ++extern jack_port_t * in_L_port; ++extern jack_port_t * in_R_port; ++extern jack_port_t * out_L_port; ++extern jack_port_t * out_R_port; + + void comp_coeffs(void); + void load_revtype_data(void); diff --git a/media-sound/tap-reverbed/files/tap-reverbed-flags.patch b/media-sound/tap-reverbed/files/tap-reverbed-flags.patch new file mode 100644 index 0000000..dbfe9b3 --- /dev/null +++ b/media-sound/tap-reverbed/files/tap-reverbed-flags.patch @@ -0,0 +1,52 @@ +Index: tap-reverbed-r0/configure.ac +=================================================================== +--- tap-reverbed-r0.orig/configure.ac ++++ tap-reverbed-r0/configure.ac +@@ -18,6 +18,10 @@ + AC_C_INLINE + + # Checks for libraries. ++AC_SEARCH_LIBS([powf], [m], [], [ ++ AC_MSG_ERROR([unable to find the powf() function]) ++]) ++ + PKG_CHECK_MODULES(JACK, jack >= 0.91.0) + PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.0.0) + +@@ -25,8 +29,7 @@ + AC_FUNC_MALLOC + AC_CHECK_FUNCS([strdup]) + +-CFLAGS="-O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -fPIC -DPIC $GTK_CFLAGS $JACK_CFLAGS" +-LDFLAGS="-Wall $GTK_LIBS $JACK_LIBS" ++CFLAGS="$CFLAGS -Wall $GTK_CFLAGS $JACK_CFLAGS" + + AC_CONFIG_FILES([Makefile src/Makefile]) + AC_OUTPUT +Index: tap-reverbed-r0/src/Makefile.am +=================================================================== +--- tap-reverbed-r0.orig/src/Makefile.am ++++ tap-reverbed-r0/src/Makefile.am +@@ -9,20 +9,7 @@ + gui_ext.h gui_ext.c \ + ports.h ports.c \ + sound.h sound.c ++reverbed_LDADD = $(GTK_LIBS) $(JACK_LIBS) + +-EXTRA_DIST = .reverbed ++dist_pkgdata_DATA = .reverbed + +-INCLUDES = +-LIBS = +-#LIBS = $(LDFLAGS) +- +-install: all +- -mkdir -p $(bindir) +- cp reverbed $(bindir) +- @echo +- @echo " *** IMPORTANT NOTICE ***" +- @echo "Please don't forget to copy the src/.reverbed file to the home" +- @echo "directory of every user who will run the program. Also, don't" +- @echo "forget to set the permissions of the copied files so these users" +- @echo "have read/write access to their own copies." +- @echo diff --git a/media-sound/tap-reverbed/metadata.xml b/media-sound/tap-reverbed/metadata.xml new file mode 100644 index 0000000..3f765bf --- /dev/null +++ b/media-sound/tap-reverbed/metadata.xml @@ -0,0 +1,11 @@ + + + + + proaudio@gentoo.org + Gentoo ProAudio Project + + + tap-plugins + + diff --git a/media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild b/media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild new file mode 100644 index 0000000..49b6da9 --- /dev/null +++ b/media-sound/tap-reverbed/tap-reverbed-0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +MY_P="${PN}-r0" +DESCRIPTION="Standalone JACK counterpart of LADSPA plugin TAP Reverberator" +HOMEPAGE="http://tap-plugins.sourceforge.net/reverbed.html" +SRC_URI="mirror://sourceforge/tap-plugins/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +RDEPEND=" + media-libs/ladspa-sdk + media-plugins/tap-plugins + virtual/jack + x11-libs/gtk+:2" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${PN}-flags.patch + "${FILESDIR}"/${P}-fno-common.patch +) + +src_prepare() { + default + eautoreconf +} + +pkg_postinst() { + elog "TAP Reverb Editor expects the configuration file '.reverbed'" + elog "to be in the user's home directory. The default '.reverbed'" + elog "file can be found in the /usr/share/tap-reverbed directory" + elog "and should be manually copied to the user's directory." +}