From a3748e5502172e09ea0736a6a25edecf3620a0b1 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 25 Jul 2020 08:48:52 +0100 Subject: [PATCH] Some more plugins, move incomplete to todo --- patches/abGate/01_lv2core_to_lv2.patch | 24 ++++++++ patches/abGate/02_makefile-use-cxxflags.patch | 15 +++++ patches/abGate/03_no-desktop-ui.patch | 60 +++++++++++++++++++ patches/abGate/04_cross-compile.patch | 24 ++++++++ .../blop-lv2/01_fix-wavedata-prototype.patch | 26 ++++++++ plugins-todo/blop-lv2.json | 8 +++ plugins-todo/dpf-plugins.json | 21 +++++++ plugins-todo/mod-distortion.json | 12 ++++ .../noise-repellent.json | 3 +- {plugins => plugins-todo}/regrader.json | 3 +- plugins-todo/sooperlooper-lv2.json | 12 ++++ plugins-todo/tap-lv2.json | 29 +++++++++ plugins/abgate.json | 7 +++ plugins/{caps-lv2.json => caps.json} | 0 plugins/dpf-plugins.json | 6 -- plugins/fomp.json | 8 +++ plugins/mda.json | 8 +++ setup/functions.sh | 2 +- 18 files changed, 259 insertions(+), 9 deletions(-) create mode 100644 patches/abGate/01_lv2core_to_lv2.patch create mode 100644 patches/abGate/02_makefile-use-cxxflags.patch create mode 100644 patches/abGate/03_no-desktop-ui.patch create mode 100644 patches/abGate/04_cross-compile.patch create mode 100644 patches/blop-lv2/01_fix-wavedata-prototype.patch create mode 100644 plugins-todo/blop-lv2.json create mode 100644 plugins-todo/dpf-plugins.json create mode 100644 plugins-todo/mod-distortion.json rename {plugins => plugins-todo}/noise-repellent.json (62%) rename {plugins => plugins-todo}/regrader.json (61%) create mode 100644 plugins-todo/sooperlooper-lv2.json create mode 100644 plugins-todo/tap-lv2.json create mode 100644 plugins/abgate.json rename plugins/{caps-lv2.json => caps.json} (100%) delete mode 100644 plugins/dpf-plugins.json create mode 100644 plugins/fomp.json create mode 100644 plugins/mda.json diff --git a/patches/abGate/01_lv2core_to_lv2.patch b/patches/abGate/01_lv2core_to_lv2.patch new file mode 100644 index 0000000..e249bd0 --- /dev/null +++ b/patches/abGate/01_lv2core_to_lv2.patch @@ -0,0 +1,24 @@ +Description: Port to LV2's new release. +Author: Alessio Treglia +Forwarded: Antanas Bružas +--- + Makefile | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +Index: abgate/Makefile +=================================================================== +--- abgate.orig/Makefile 2014-02-01 21:48:06.998316241 +0100 ++++ abgate/Makefile 2014-02-01 21:48:06.994316226 +0100 +@@ -13,10 +13,10 @@ + cd abGateQt; qmake-qt4; make + + gate.so: gate.cpp +- g++ $(LDFLAGS) -O3 -shared -fPIC -DPIC gate.cpp `pkg-config --cflags --libs lv2core` -o gate.so ++ g++ $(LDFLAGS) -O3 -shared -fPIC -DPIC gate.cpp `pkg-config --cflags --libs lv2` -D_LV2_Descriptor=LV2_Descriptor -o gate.so + + gate_gui.so: gate_gui.cpp main_window.cpp main_window.h knob.cpp knob.h toggle.cpp toggle.h preset_widget.cpp preset_widget.h presets.cpp presets.h preset.cpp preset.h gate_const.h ui.h plugin_configuration.h +- g++ $(LDFLAGS) -O3 -shared -fPIC -DPIC gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2core gthread-2.0` -o gate_gui.so ++ g++ $(LDFLAGS) -O3 -shared -fPIC -DPIC gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so + + install: $(BUNDLE) + mkdir -p $(INSTALL_DIR) diff --git a/patches/abGate/02_makefile-use-cxxflags.patch b/patches/abGate/02_makefile-use-cxxflags.patch new file mode 100644 index 0000000..e7562d3 --- /dev/null +++ b/patches/abGate/02_makefile-use-cxxflags.patch @@ -0,0 +1,15 @@ +--- abgate-1.1.7.orig/Makefile ++++ abgate-1.1.7/Makefile +@@ -13,10 +13,10 @@ abGateQt/libabGateQt.so: + cd abGateQt; qmake-qt4; make + + gate.so: gate.cpp +- g++ $(LDFLAGS) -O3 -shared -fPIC -DPIC gate.cpp `pkg-config --cflags --libs lv2` -D_LV2_Descriptor=LV2_Descriptor -o gate.so ++ g++ $(CXXFLAGS) $(LDFLAGS) -O3 -shared -fPIC -DPIC gate.cpp `pkg-config --cflags --libs lv2` -D_LV2_Descriptor=LV2_Descriptor -o gate.so + + gate_gui.so: gate_gui.cpp main_window.cpp main_window.h knob.cpp knob.h toggle.cpp toggle.h preset_widget.cpp preset_widget.h presets.cpp presets.h preset.cpp preset.h gate_const.h ui.h plugin_configuration.h +- g++ $(LDFLAGS) -O3 -shared -fPIC -DPIC gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so ++ g++ $(CXXFLAGS) $(LDFLAGS) -O3 -shared -fPIC -DPIC gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so + + install: $(BUNDLE) + mkdir -p $(INSTALL_DIR) diff --git a/patches/abGate/03_no-desktop-ui.patch b/patches/abGate/03_no-desktop-ui.patch new file mode 100644 index 0000000..d6c16c4 --- /dev/null +++ b/patches/abGate/03_no-desktop-ui.patch @@ -0,0 +1,60 @@ +diff -U 3 -H -w -E -d -r -N -- abGate-1.1.7.orig/Makefile abGate-1.1.7/Makefile +--- abGate-1.1.7.orig/Makefile 2014-01-13 10:17:05.000000000 +0100 ++++ abGate-1.1.7/Makefile 2015-07-16 18:29:32.863103572 +0200 +@@ -4,7 +4,7 @@ + PREFIX = /usr + INSTALL_DIR = $(DESTDIR)$(PREFIX)/lib/lv2 + +-$(BUNDLE): manifest.ttl gate.ttl gate.so gate_gui.so bypass_on.png bypass_off.png knob.png background.png abGateQt/libabGateQt.so ++$(BUNDLE): manifest.ttl gate.ttl gate.so + rm -rf $(BUNDLE) + mkdir $(BUNDLE) + cp $^ $(BUNDLE) +diff -U 3 -H -w -E -d -r -N -- abGate-1.1.7.orig/gate.ttl abGate-1.1.7/gate.ttl +--- abGate-1.1.7.orig/gate.ttl 2012-04-21 07:18:24.000000000 +0200 ++++ abGate-1.1.7/gate.ttl 2015-07-16 18:28:50.579702673 +0200 +@@ -6,16 +6,6 @@ + @prefix foaf: . + + +- +- a ui:Qt4UI; +- ui:requiredFeature ui:makeResident; +- ui:optionalFeature ui:noUserResize. +- +- +- a ui:GtkUI; +- ui:requiredFeature ui:makeResident; +- ui:optionalFeature ui:noUserResize. +- + + a lv2:Plugin, lv2:GatePlugin; + lv2:binary ; +@@ -37,9 +27,6 @@ + + doap:license ; + +- ui:ui ; +- ui:ui ; +- + lv2:port [ + a lv2:AudioPort, lv2:OutputPort; + lv2:index 0; +diff -U 3 -H -w -E -d -r -N -- abGate-1.1.7.orig/manifest.ttl abGate-1.1.7/manifest.ttl +--- abGate-1.1.7.orig/manifest.ttl 2012-04-21 07:16:31.000000000 +0200 ++++ abGate-1.1.7/manifest.ttl 2015-07-16 18:32:13.342625579 +0200 +@@ -6,14 +6,3 @@ + a lv2:Plugin, lv2:GatePlugin; + lv2:binary ; + rdfs:seeAlso . +- +- +- a ui:Qt4UI; +- ui:binary ; +- rdfs:seeAlso . +- +- +- a ui:GtkUI; +- ui:binary ; +- rdfs:seeAlso . +- diff --git a/patches/abGate/04_cross-compile.patch b/patches/abGate/04_cross-compile.patch new file mode 100644 index 0000000..b828994 --- /dev/null +++ b/patches/abGate/04_cross-compile.patch @@ -0,0 +1,24 @@ +--- abgate-1.1.7.orig/Makefile ++++ abgate-1.1.7/Makefile +@@ -4,6 +4,8 @@ BUNDLE = abGate.lv2 + PREFIX = /usr + INSTALL_DIR = $(DESTDIR)$(PREFIX)/lib/lv2 + ++CXX ?= g++ ++ + $(BUNDLE): manifest.ttl gate.ttl gate.so + rm -rf $(BUNDLE) + mkdir $(BUNDLE) +@@ -13,10 +15,10 @@ abGateQt/libabGateQt.so: + cd abGateQt; qmake-qt4; make + + gate.so: gate.cpp +- g++ $(CXXFLAGS) $(LDFLAGS) -O3 -shared -fPIC -DPIC gate.cpp `pkg-config --cflags --libs lv2` -D_LV2_Descriptor=LV2_Descriptor -o gate.so ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -O3 -shared -fPIC -DPIC gate.cpp `pkg-config --cflags --libs lv2` -D_LV2_Descriptor=LV2_Descriptor -o gate.so + + gate_gui.so: gate_gui.cpp main_window.cpp main_window.h knob.cpp knob.h toggle.cpp toggle.h preset_widget.cpp preset_widget.h presets.cpp presets.h preset.cpp preset.h gate_const.h ui.h plugin_configuration.h +- g++ $(CXXFLAGS) $(LDFLAGS) -O3 -shared -fPIC -DPIC gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so ++ $(CXX) $(CXXFLAGS) $(LDFLAGS) -O3 -shared -fPIC -DPIC gate_gui.cpp main_window.cpp knob.cpp toggle.cpp preset_widget.cpp presets.cpp preset.cpp `pkg-config --cflags gtkmm-2.4 --libs lv2 gthread-2.0` -o gate_gui.so + + install: $(BUNDLE) + mkdir -p $(INSTALL_DIR) diff --git a/patches/blop-lv2/01_fix-wavedata-prototype.patch b/patches/blop-lv2/01_fix-wavedata-prototype.patch new file mode 100644 index 0000000..7320c8c --- /dev/null +++ b/patches/blop-lv2/01_fix-wavedata-prototype.patch @@ -0,0 +1,26 @@ +diff --git a/src/wavedata.c b/src/wavedata.c +index e574903..8ec3783 100644 +--- a/src/wavedata.c ++++ b/src/wavedata.c +@@ -58,7 +58,7 @@ wavedata_load(Wavedata* w, + typedef int (*DescFunc)(Wavedata*, unsigned long); + DescFunc desc_func = (DescFunc)dlsym(handle, wdat_descriptor_name); + if (desc_func) { +- retval = desc_func(w, sample_rate); ++ retval = desc_func(w, (unsigned long)sample_rate); + w->data_handle = handle; + return retval; + } +diff --git a/src/wdatutil.c b/src/wdatutil.c +index b3bf84e..86b5fb0 100644 +--- a/src/wdatutil.c ++++ b/src/wdatutil.c +@@ -249,7 +249,7 @@ wavedata_write_prototype(FILE* wdat_fp, + fprintf(wdat_fp, "int\n"); + fprintf( + wdat_fp, +- "blop_get_%s (Wavedata * w, double sample_rate, const char* bundle_path, const LV2_Feature* const* features)", ++ "blop_get_%s (Wavedata * w, unsigned long sample_rate)", + data_name); + } + diff --git a/plugins-todo/blop-lv2.json b/plugins-todo/blop-lv2.json new file mode 100644 index 0000000..152d6a8 --- /dev/null +++ b/plugins-todo/blop-lv2.json @@ -0,0 +1,8 @@ +{ + "name": "blop-lv2", + "lv2bundles": ["blop.lv2"], + "version": "1.0.0", + "dlbaseurl": "http://download.drobilla.net", + "dlext": "tar.bz2", + "buildtype": "waf" +} diff --git a/plugins-todo/dpf-plugins.json b/plugins-todo/dpf-plugins.json new file mode 100644 index 0000000..a95ce77 --- /dev/null +++ b/plugins-todo/dpf-plugins.json @@ -0,0 +1,21 @@ +{ + "name": "dpf-plugins", + "lv2bundles": [ + "3BandEQ.lv2", + "3BandSplitter.lv2", + "AmplitudeImposer.lv2", + "CycleShifter.lv2", + "Kars.lv2", + "MaBitcrush.lv2", + "MaFreeverb.lv2", + "MaGigaverb.lv2", + "MaPitchshift.lv2", + "MVerb.lv2", + "Nekobi.lv2", + "PingPongPan.lv2", + "SoulForce.lv2" + ], + "version": "1.3", + "dlbaseurl": "https://github.com/DISTRHO/DPF-Plugins/archive", + "buildtype": "make" +} diff --git a/plugins-todo/mod-distortion.json b/plugins-todo/mod-distortion.json new file mode 100644 index 0000000..8ccd8d8 --- /dev/null +++ b/plugins-todo/mod-distortion.json @@ -0,0 +1,12 @@ +{ + "name": "mod-distortion", + "lv2bundles": [ + "mod-bigmuff.lv2", + "mod-ds1.lv2" + ], + "version": "3622901c643570087b9d26fec2fd878384eaa98e", + "dlbaseurl": "https://github.com/moddevices/mod-distortion.git", + "dlmethod": "git", + "buildtype": "make", + "buildargs": "INSTALL_PATH=/usr/lib/lv2" +} diff --git a/plugins/noise-repellent.json b/plugins-todo/noise-repellent.json similarity index 62% rename from plugins/noise-repellent.json rename to plugins-todo/noise-repellent.json index fcb810a..a89db58 100644 --- a/plugins/noise-repellent.json +++ b/plugins-todo/noise-repellent.json @@ -1,6 +1,7 @@ { "name": "noise-repellent", - "version": "87b4380eae2b69b09bba8a8b181f24153079100d", + "lv2bundles": ["nrepel.lv2"], + "version": "7f5a8fbef48fed75b9168509a4e3f985ae878988", "dlbaseurl": "https://github.com/lucianodato/noise-repellent.git", "dlmethod": "git", "buildtype": "meson" diff --git a/plugins/regrader.json b/plugins-todo/regrader.json similarity index 61% rename from plugins/regrader.json rename to plugins-todo/regrader.json index 6f71345..c49d28a 100644 --- a/plugins/regrader.json +++ b/plugins-todo/regrader.json @@ -1,6 +1,7 @@ { "name": "regrader-port", - "version": "412e475cef1025d955fae4229b6bc94596f36fd4", + "lv2bundles": ["regrader.lv2"], + "version": "9154881ad6553537cc7f2a743541f6b47de2a207", "dlbaseurl": "https://github.com/linuxmao-org/regrader-port.git", "dlmethod": "git", "buildtype": "make" diff --git a/plugins-todo/sooperlooper-lv2.json b/plugins-todo/sooperlooper-lv2.json new file mode 100644 index 0000000..01d366a --- /dev/null +++ b/plugins-todo/sooperlooper-lv2.json @@ -0,0 +1,12 @@ +{ + "name": "tap-lv2", + "lv2bundles": [ + "sooperlooper.lv2", + "sooperlooper-2x2.lv2" + ], + "version": "d3e80029ce4f6ef62b3758e95c5b889cab1db740", + "dlbaseurl": "https://github.com/moddevices/sooperlooper-lv2-plugin.git", + "dlmethod": "git", + "buildtype": "make", + "buildargs": "INSTALL_PATH=/usr/lib/lv2" +} diff --git a/plugins-todo/tap-lv2.json b/plugins-todo/tap-lv2.json new file mode 100644 index 0000000..eb49e85 --- /dev/null +++ b/plugins-todo/tap-lv2.json @@ -0,0 +1,29 @@ +{ + "name": "tap-lv2", + "lv2bundles": [ + "tap-autopan.lv2", + "tap-chorusflanger.lv2", + "tap-deesser.lv2", + "tap-doubler.lv2", + "tap-dynamics.lv2", + "tap-dynamics-st.lv2", + "tap-echo.lv2", + "tap-eqbw.lv2", + "tap-eq.lv2", + "tap-limiter.lv2", + "tap-pinknoise.lv2", + "tap-pitch.lv2", + "tap-reflector.lv2", + "tap-reverb.lv2", + "tap-rotspeak.lv2", + "tap-sigmoid.lv2", + "tap-tremolo.lv2", + "tap-tubewarmth.lv2", + "tap-vibrato.lv2" + ], + "version": "cab6e0dfb2ce20e4ad34b067d1281ec0b193598a", + "dlbaseurl": "https://github.com/moddevices/tap-lv2.git", + "dlmethod": "git", + "buildtype": "make", + "buildargs": "INSTALL_PATH=/usr/lib/lv2" +} diff --git a/plugins/abgate.json b/plugins/abgate.json new file mode 100644 index 0000000..956d705 --- /dev/null +++ b/plugins/abgate.json @@ -0,0 +1,7 @@ +{ + "name": "abGate", + "lv2bundles": ["abGate.lv2"], + "version": "1.1.7", + "dlbaseurl": "http://download.sourceforge.net/abgate", + "buildtype": "make" +} diff --git a/plugins/caps-lv2.json b/plugins/caps.json similarity index 100% rename from plugins/caps-lv2.json rename to plugins/caps.json diff --git a/plugins/dpf-plugins.json b/plugins/dpf-plugins.json deleted file mode 100644 index f535177..0000000 --- a/plugins/dpf-plugins.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "dpf-plugins", - "version": "1.3", - "dlbaseurl": "https://github.com/DISTRHO/DPF-Plugins/archive", - "buildtype": "make" -} diff --git a/plugins/fomp.json b/plugins/fomp.json new file mode 100644 index 0000000..f481bb3 --- /dev/null +++ b/plugins/fomp.json @@ -0,0 +1,8 @@ +{ + "name": "fomp", + "lv2bundles": ["fomp.lv2"], + "version": "1.2.0", + "dlbaseurl": "http://download.drobilla.net", + "dlext": "tar.bz2", + "buildtype": "waf" +} diff --git a/plugins/mda.json b/plugins/mda.json new file mode 100644 index 0000000..b6515e9 --- /dev/null +++ b/plugins/mda.json @@ -0,0 +1,8 @@ +{ + "name": "mda-lv2", + "lv2bundles": ["mda.lv2"], + "version": "1.2.4", + "dlbaseurl": "http://download.drobilla.net", + "dlext": "tar.bz2", + "buildtype": "waf" +} diff --git a/setup/functions.sh b/setup/functions.sh index d7affef..fa39605 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -293,7 +293,7 @@ function build_make() { if [ ! -f "${pkgdir}/.stamp_installed" ]; then pushd "${pkgdir}" - make PREFIX="${PAWPAW_PREFIX}" PKG_CONFIG="${TARGET_PKG_CONFIG}" ${MAKE_ARGS} -j 1 install + make PREFIX="${PAWPAW_PREFIX}" PKG_CONFIG="${TARGET_PKG_CONFIG}" ${MAKE_ARGS} ${extraconfrules} -j 1 install touch .stamp_installed popd fi