From 37356ead9af37cbd647d1c89b9f1b29e313ca8c1 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 26 Oct 2025 10:47:22 +0100 Subject: [PATCH] Add fabla and sorcer Signed-off-by: falkTX --- sources/plugins/fabla/debian/changelog | 5 + sources/plugins/fabla/debian/control | 29 ++++++ sources/plugins/fabla/debian/install | 1 + .../fabla/debian/patches/01_fix-build.patch | 96 +++++++++++++++++++ sources/plugins/fabla/debian/patches/series | 1 + sources/plugins/fabla/debian/rules | 17 ++++ sources/plugins/fabla/debian/source/format | 1 + sources/plugins/sorcer/debian/changelog | 5 + sources/plugins/sorcer/debian/control | 30 ++++++ ...ef484174aae5c1b7be6710f31a643e7d7197.patch | 47 +++++++++ ...915eeb096752e728b783c49b580f1710dff7.patch | 25 +++++ ...47e3ea5994c2f869c277d6901e4cc1b36636.patch | 23 +++++ ...6f58af3188a8620b90fdad6e8ca5d026f543.patch | 47 +++++++++ .../sorcer/debian/patches/fix-build.patch | 43 +++++++++ sources/plugins/sorcer/debian/patches/series | 5 + sources/plugins/sorcer/debian/rules | 17 ++++ sources/plugins/sorcer/debian/source/format | 1 + 17 files changed, 393 insertions(+) create mode 100644 sources/plugins/fabla/debian/changelog create mode 100644 sources/plugins/fabla/debian/control create mode 100644 sources/plugins/fabla/debian/install create mode 100644 sources/plugins/fabla/debian/patches/01_fix-build.patch create mode 100644 sources/plugins/fabla/debian/patches/series create mode 100755 sources/plugins/fabla/debian/rules create mode 100644 sources/plugins/fabla/debian/source/format create mode 100644 sources/plugins/sorcer/debian/changelog create mode 100644 sources/plugins/sorcer/debian/control create mode 100644 sources/plugins/sorcer/debian/patches/0a8cef484174aae5c1b7be6710f31a643e7d7197.patch create mode 100644 sources/plugins/sorcer/debian/patches/4945915eeb096752e728b783c49b580f1710dff7.patch create mode 100644 sources/plugins/sorcer/debian/patches/c92747e3ea5994c2f869c277d6901e4cc1b36636.patch create mode 100644 sources/plugins/sorcer/debian/patches/cc7f6f58af3188a8620b90fdad6e8ca5d026f543.patch create mode 100644 sources/plugins/sorcer/debian/patches/fix-build.patch create mode 100644 sources/plugins/sorcer/debian/patches/series create mode 100755 sources/plugins/sorcer/debian/rules create mode 100644 sources/plugins/sorcer/debian/source/format diff --git a/sources/plugins/fabla/debian/changelog b/sources/plugins/fabla/debian/changelog new file mode 100644 index 0000000..a145da5 --- /dev/null +++ b/sources/plugins/fabla/debian/changelog @@ -0,0 +1,5 @@ +fabla (6:1.4.0+git20251026-1kxstudio3) focal; urgency=medium + + * Initial package + + -- falkTX Sun, 26 Oct 2025 01:01:15 +0200 diff --git a/sources/plugins/fabla/debian/control b/sources/plugins/fabla/debian/control new file mode 100644 index 0000000..4e5dd9a --- /dev/null +++ b/sources/plugins/fabla/debian/control @@ -0,0 +1,29 @@ +Source: fabla +Section: sound +Priority: optional +Maintainer: falkTX , Jeremy Jongepier +Build-Depends: debhelper-compat (= 13), + kxstudio-audio-plugin-tester (>= 15), + debhelper (>= 9~), + cmake, + lv2-dev, + libcairomm-1.0-dev, + libgl1-mesa-dev | libgl-dev, + libsndfile-static, + ntk-static +Standards-Version: 4.5.0 +Homepage: http://openavproductions.com/fabla/ +XSC-KXStudio-VCS: https://github.com/openAVproductions/openAV-Fabla +Rules-Requires-Root: no + +Package: fabla +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Provides: lv2-plugin +Description: Fabla drum sampler plugin instrument + Fabla is a drum sampler plugin instrument. + It is ideal for loading up your favorite sampled sounds and bashing + away on a MIDI controller. + Or if it’s crafty beat programming your after that’s cool too! + The ADSR envelope allows the shaping of hi-hats and kicks while the + compressor beefs up the sound for those thumping kicks! diff --git a/sources/plugins/fabla/debian/install b/sources/plugins/fabla/debian/install new file mode 100644 index 0000000..c1c56cb --- /dev/null +++ b/sources/plugins/fabla/debian/install @@ -0,0 +1 @@ +presets/*.lv2/ /usr/lib/lv2/ diff --git a/sources/plugins/fabla/debian/patches/01_fix-build.patch b/sources/plugins/fabla/debian/patches/01_fix-build.patch new file mode 100644 index 0000000..ad16fd6 --- /dev/null +++ b/sources/plugins/fabla/debian/patches/01_fix-build.patch @@ -0,0 +1,96 @@ +--- fabla-1.4.0+git20251026.orig/dsp/fabla.cxx ++++ fabla-1.4.0+git20251026/dsp/fabla.cxx +@@ -24,8 +24,8 @@ + #include + + #include "shared.h" +-#include "lv2/lv2plug.in/ns/ext/atom/forge.h" +-#include "lv2/lv2plug.in/ns/ext/state/state.h" ++#include "lv2/atom/forge.h" ++#include "lv2/state/state.h" + + #include "voice.hxx" + #include "sample.hxx" +--- fabla-1.4.0+git20251026.orig/dsp/shared.h ++++ fabla-1.4.0+git20251026/dsp/shared.h +@@ -25,12 +25,12 @@ + #include + #include + +-#include "lv2/lv2plug.in/ns/ext/atom/util.h" +-#include "lv2/lv2plug.in/ns/ext/log/log.h" +-#include "lv2/lv2plug.in/ns/ext/log/logger.h" +-#include "lv2/lv2plug.in/ns/ext/urid/urid.h" +-#include "lv2/lv2plug.in/ns/ext/worker/worker.h" +-#include "lv2/lv2plug.in/ns/ext/time/time.h" ++#include "lv2/atom/util.h" ++#include "lv2/log/log.h" ++#include "lv2/log/logger.h" ++#include "lv2/urid/urid.h" ++#include "lv2/worker/worker.h" ++#include "lv2/time/time.h" + + #define LV2_MIDI__MidiEvent "http://lv2plug.in/ns/ext/midi#MidiEvent" + +--- fabla-1.4.0+git20251026.orig/gui/fabla.h ++++ fabla-1.4.0+git20251026/gui/fabla.h +@@ -8,10 +8,10 @@ + #include + using namespace Avtk; + #include +-#include "lv2/lv2plug.in/ns/lv2core/lv2.h" ++#include "lv2/core/lv2.h" + #include + #include "../dsp/ports.h" +-#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" ++#include "lv2/ui/ui.h" + #include "../dsp/shared.h" + #include "fabla.hxx" + #include "header.c" +--- fabla-1.4.0+git20251026.orig/gui/fabla.hxx ++++ fabla-1.4.0+git20251026/gui/fabla.hxx +@@ -25,7 +25,7 @@ + #include "../dsp/ports.h" + #include "../dsp/shared.h" + +-#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" ++#include "lv2/ui/ui.h" + + + class FablaUI; +--- fabla-1.4.0+git20251026.orig/gui/fabla_ui.cxx ++++ fabla-1.4.0+git20251026/gui/fabla_ui.cxx +@@ -36,13 +36,13 @@ + #include "fabla.hxx" + + // core spec include +-#include "lv2/lv2plug.in/ns/lv2core/lv2.h" ++#include "lv2/core/lv2.h" + + // GUI +-#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" ++#include "lv2/ui/ui.h" + +-#include "lv2/lv2plug.in/ns/ext/atom/util.h" +-//#include "lv2/lv2plug.in/ns/ext/atom/forge.h" ++#include "lv2/atom/util.h" ++//#include "lv2/atom/forge.h" + + #include + +--- fabla-1.4.0+git20251026.orig/gui/ui_helpers.cxx ++++ fabla-1.4.0+git20251026/gui/ui_helpers.cxx +@@ -28,10 +28,10 @@ + + #include "fabla.hxx" + +-#include "lv2/lv2plug.in/ns/ext/atom/forge.h" ++#include "lv2/atom/forge.h" + +-#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" +-#include "lv2/lv2plug.in/ns/ext/atom/atom.h" ++#include "lv2/ui/ui.h" ++#include "lv2/atom/atom.h" + + void initForge(Fabla* self) + { diff --git a/sources/plugins/fabla/debian/patches/series b/sources/plugins/fabla/debian/patches/series new file mode 100644 index 0000000..194bdd3 --- /dev/null +++ b/sources/plugins/fabla/debian/patches/series @@ -0,0 +1 @@ +01_fix-build.patch diff --git a/sources/plugins/fabla/debian/rules b/sources/plugins/fabla/debian/rules new file mode 100755 index 0000000..c4fcf21 --- /dev/null +++ b/sources/plugins/fabla/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/kxstudio-audio-plugin.mk + +CXXFLAGS += -pthread +LDFLAGS += -pthread + +%: + dh $@ + +override_dh_auto_install: + dh_auto_install +# $(call kxstudio_audio_plugin_test) +# issues on preset data + +%: + dh $@ -Scmake diff --git a/sources/plugins/fabla/debian/source/format b/sources/plugins/fabla/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/plugins/fabla/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/sources/plugins/sorcer/debian/changelog b/sources/plugins/sorcer/debian/changelog new file mode 100644 index 0000000..05cde9d --- /dev/null +++ b/sources/plugins/sorcer/debian/changelog @@ -0,0 +1,5 @@ +sorcer (6:1.1.3-1kxstudio4) focal; urgency=medium + + * Initial package + + -- falkTX Sat, 25 Oct 2025 21:51:03 +0200 diff --git a/sources/plugins/sorcer/debian/control b/sources/plugins/sorcer/debian/control new file mode 100644 index 0000000..0047a8e --- /dev/null +++ b/sources/plugins/sorcer/debian/control @@ -0,0 +1,30 @@ +Source: sorcer +Section: sound +Priority: optional +Maintainer: falkTX , Jeremy Jongepier +Build-Depends: debhelper-compat (= 13), + kxstudio-audio-plugin-tester (>= 15), + debhelper (>= 9~), + cmake, + lv2-dev, + libboost-dev, + libcairomm-1.0-dev, + libgl1-mesa-dev | libgl-dev, + libsndfile-static, + ntk-static +Standards-Version: 4.5.0 +Homepage: http://www.openavproductions.com/sorcer +XSC-KXStudio-VCS: https://github.com/openAVproductions/openAV-Sorcer +Rules-Requires-Root: no + +Package: sorcer +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Provides: lv2-plugin +Description: Polyphonic wavetable synth + Sorcer is a polyphonic wavetable synth LV2 plugin. + Its sonic fingerprint is one of harsh modulated sub-bass driven walls of sound. + Two morphing wavetable oscillators and one sine oscillator provide the generation routines. + The LFO can be mapped to wavetable modulation as well as filter cutoff. + An ADSR allows for shaping the resulting sound, while a master volume finishes the signal chain. + Easily creating a variety of dubstep basslines and harsh pad sounds. diff --git a/sources/plugins/sorcer/debian/patches/0a8cef484174aae5c1b7be6710f31a643e7d7197.patch b/sources/plugins/sorcer/debian/patches/0a8cef484174aae5c1b7be6710f31a643e7d7197.patch new file mode 100644 index 0000000..974300e --- /dev/null +++ b/sources/plugins/sorcer/debian/patches/0a8cef484174aae5c1b7be6710f31a643e7d7197.patch @@ -0,0 +1,47 @@ +From 0a8cef484174aae5c1b7be6710f31a643e7d7197 Mon Sep 17 00:00:00 2001 +From: Yuri +Date: Sun, 26 Nov 2017 13:11:18 -0800 +Subject: [PATCH] cmake: fix ntk include path, add cairo library + +Moved ntk include path earlier to avoid conflict with fltk +Added missing cairo to CMakeLists.txt + +Fixes #19. +--- + CMakeLists.txt | 12 +++++++++--- + 1 file changed, 9 insertions(+), 3 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index f9f0702..7c0d989 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -15,13 +15,17 @@ find_package(PkgConfig) + + #SET(CMAKE_INSTALL_PREFIX "/usr" ) + +-pkg_check_modules(LV2 lv2 REQUIRED) +-include_directories( ${LV2_INCLUDE_DIRS} ) +- + pkg_check_modules(NTK ntk REQUIRED) + include_directories( ${NTK_INCLUDE_DIRS} ) + link_directories ( ${NTK_LIBRARY_DIRS} ) + ++pkg_check_modules(LV2 lv2 REQUIRED) ++include_directories( ${LV2_INCLUDE_DIRS} ) ++ ++pkg_check_modules(CAIRO cairo REQUIRED) ++include_directories( ${CAIRO_INCLUDE_DIRS} ) ++link_directories ( ${CAIRO_LIBRARY_DIRS} ) ++ + SET(CMAKE_SHARED_LINKER_FLAGS "-fPIC -shared -Wl,-z,nodelete -Wl,--no-undefined") + + IF(RELEASE_BUILD) +@@ -81,6 +85,8 @@ ADD_LIBRARY(sorcer SHARED ${sources}) + target_link_libraries( sorcer ${NTK_LIBRARIES} ) + #target_link_libraries( sorcer ${SNDFILE_LIBRARIES} ) + ++target_link_libraries( sorcer ${CAIRO_LIBRARIES} ) ++ + # Remove "lib" part before name (sorcer.so, not libsorcer.so) + set_target_properties(sorcer PROPERTIES PREFIX "") + diff --git a/sources/plugins/sorcer/debian/patches/4945915eeb096752e728b783c49b580f1710dff7.patch b/sources/plugins/sorcer/debian/patches/4945915eeb096752e728b783c49b580f1710dff7.patch new file mode 100644 index 0000000..e635496 --- /dev/null +++ b/sources/plugins/sorcer/debian/patches/4945915eeb096752e728b783c49b580f1710dff7.patch @@ -0,0 +1,25 @@ +From 4945915eeb096752e728b783c49b580f1710dff7 Mon Sep 17 00:00:00 2001 +From: David Runge +Date: Thu, 21 May 2020 17:24:48 +0200 +Subject: [PATCH] Fixing build with lv2 >= 1.18.0 + +gui/sorcer_ui.cxx: +Replacing all occurrences of _LV2UI_Descriptor with LV2UI_Descriptor as +the former has been replaced by the latter with lv2 1.18.0. +--- + gui/sorcer_ui.cxx | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gui/sorcer_ui.cxx b/gui/sorcer_ui.cxx +index 60edbe4..3bd25a3 100644 +--- a/gui/sorcer_ui.cxx ++++ b/gui/sorcer_ui.cxx +@@ -44,7 +44,7 @@ typedef struct { + LV2UI_Controller controller; + } SorcerGUI; + +-static LV2UI_Handle instantiate(const struct _LV2UI_Descriptor * descriptor, ++static LV2UI_Handle instantiate(const struct LV2UI_Descriptor * descriptor, + const char * plugin_uri, + const char * bundle_path, + LV2UI_Write_Function write_function, diff --git a/sources/plugins/sorcer/debian/patches/c92747e3ea5994c2f869c277d6901e4cc1b36636.patch b/sources/plugins/sorcer/debian/patches/c92747e3ea5994c2f869c277d6901e4cc1b36636.patch new file mode 100644 index 0000000..ebf8794 --- /dev/null +++ b/sources/plugins/sorcer/debian/patches/c92747e3ea5994c2f869c277d6901e4cc1b36636.patch @@ -0,0 +1,23 @@ +From c92747e3ea5994c2f869c277d6901e4cc1b36636 Mon Sep 17 00:00:00 2001 +From: Olivier Humbert +Date: Fri, 30 Dec 2016 23:23:40 +0100 +Subject: [PATCH] Update CMakeLists.txt + +updates version number +--- + CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6114080..f9f0702 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -5,7 +5,7 @@ project (sorcer) + + set(SORCER_VERSION_MAJOR "1") + set(SORCER_VERSION_MINOR "1") +-set(SORCER_VERSION_PATCH "2") ++set(SORCER_VERSION_PATCH "3") + + set(SORCER_VERSION "${SORCER_VERSION_MAJOR}.${SORCER_VERSION_MINOR}.${SORCER_VERSION_PATCH}") + diff --git a/sources/plugins/sorcer/debian/patches/cc7f6f58af3188a8620b90fdad6e8ca5d026f543.patch b/sources/plugins/sorcer/debian/patches/cc7f6f58af3188a8620b90fdad6e8ca5d026f543.patch new file mode 100644 index 0000000..8cfb7ec --- /dev/null +++ b/sources/plugins/sorcer/debian/patches/cc7f6f58af3188a8620b90fdad6e8ca5d026f543.patch @@ -0,0 +1,47 @@ +From cc7f6f58af3188a8620b90fdad6e8ca5d026f543 Mon Sep 17 00:00:00 2001 +From: David Runge +Date: Thu, 21 May 2020 17:30:27 +0200 +Subject: [PATCH] Respecting external CFLAGS, CXXFLAGS and LDFLAGS + +CMakeLists.txt: +Adding BUILD_SSE (similar to artyfx) to add SSE flags. +Adding CMAKE_CXX_FLAGS, CMAKE_SHARED_LINKER_FLAGS and CMAKE_C_FLAGS in +such a way, that they allow externally set CFLAGS/CXXFLAGS/LDFLAGS +(respectively). +Removing RELEASE_BUILD specific overrides for CFLAGS/CXXFLAGS. +--- + CMakeLists.txt | 13 +++++++++---- + 1 file changed, 9 insertions(+), 4 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7c0d989..ff03515 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -10,6 +10,7 @@ set(SORCER_VERSION_PATCH "3") + set(SORCER_VERSION "${SORCER_VERSION_MAJOR}.${SORCER_VERSION_MINOR}.${SORCER_VERSION_PATCH}") + + option(RELEASE_BUILD "Build for production usage" ON ) ++option(BUILD_SSE "Build with SSE flags" ON ) + + find_package(PkgConfig) + +@@ -26,11 +27,15 @@ pkg_check_modules(CAIRO cairo REQUIRED) + include_directories( ${CAIRO_INCLUDE_DIRS} ) + link_directories ( ${CAIRO_LIBRARY_DIRS} ) + +-SET(CMAKE_SHARED_LINKER_FLAGS "-fPIC -shared -Wl,-z,nodelete -Wl,--no-undefined") ++SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fPIC -shared -Wl,-z,nodelete -Wl,--no-undefined") ++SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Wno-unused-variable -ffast-math") ++SET(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -W -Wno-unused-variable -ffast-math") + +-IF(RELEASE_BUILD) +- SET(CMAKE_CXX_FLAGS "-g -Wall -Wno-unused-variable -msse2 -mfpmath=sse -ffast-math") +- SET(CMAKE_C_FLAGS "-g -Wall -W -Wno-unused-variable -msse2 -mfpmath=sse -ffast-math") ++IF(BUILD_SSE) ++ IF(NOT ${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") ++ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2 -mfpmath=sse -ffast-math") ++ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse2 -mfpmath=sse -ffast-math") ++ ENDIF() + ENDIF() + + ## The following commands will re-generate the .cpp files from the FAUST .dsp, diff --git a/sources/plugins/sorcer/debian/patches/fix-build.patch b/sources/plugins/sorcer/debian/patches/fix-build.patch new file mode 100644 index 0000000..602a78a --- /dev/null +++ b/sources/plugins/sorcer/debian/patches/fix-build.patch @@ -0,0 +1,43 @@ +--- sorcer-1.1.3.orig/faust/main.cpp ++++ sorcer-1.1.3/faust/main.cpp +@@ -709,10 +709,10 @@ float mydsp::ftbl0[65536]; + #include + #include + +-#include +-#include +-#include +-#include ++#include ++#include ++#include ++#include + + #ifndef URI_PREFIX + #define URI_PREFIX "http://www.openavproductions.com" +--- sorcer-1.1.3.orig/gui/sorcer_ui.cxx ++++ sorcer-1.1.3/gui/sorcer_ui.cxx +@@ -28,10 +28,10 @@ + #include "sorcer_widget.h" + + // core spec include +-#include "lv2/lv2plug.in/ns/lv2core/lv2.h" ++#include "lv2/core/lv2.h" + + // GUI +-#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" ++#include "lv2/ui/ui.h" + + using namespace std; + +--- sorcer-1.1.3.orig/gui/sorcer_widget.h ++++ sorcer-1.1.3/gui/sorcer_widget.h +@@ -4,7 +4,7 @@ + #define sorcer_widget_h + #include + #include +-#include "lv2/lv2plug.in/ns/extensions/ui/ui.h" ++#include "lv2/ui/ui.h" + using namespace std; + #include "ports.h" + #include "avtk.h" diff --git a/sources/plugins/sorcer/debian/patches/series b/sources/plugins/sorcer/debian/patches/series new file mode 100644 index 0000000..9e7a288 --- /dev/null +++ b/sources/plugins/sorcer/debian/patches/series @@ -0,0 +1,5 @@ +c92747e3ea5994c2f869c277d6901e4cc1b36636.patch +0a8cef484174aae5c1b7be6710f31a643e7d7197.patch +4945915eeb096752e728b783c49b580f1710dff7.patch +cc7f6f58af3188a8620b90fdad6e8ca5d026f543.patch +fix-build.patch diff --git a/sources/plugins/sorcer/debian/rules b/sources/plugins/sorcer/debian/rules new file mode 100755 index 0000000..5857de9 --- /dev/null +++ b/sources/plugins/sorcer/debian/rules @@ -0,0 +1,17 @@ +#!/usr/bin/make -f + +include /usr/share/dpkg/kxstudio-audio-plugin.mk + +%: + dh $@ + +override_dh_auto_configure: + dh_auto_configure -- -DBUILD_SSE=OFF + +override_dh_auto_install: + dh_auto_install +# $(call kxstudio_audio_plugin_test) +# issues on UI and missing reported features + +%: + dh $@ -Scmake diff --git a/sources/plugins/sorcer/debian/source/format b/sources/plugins/sorcer/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/sources/plugins/sorcer/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt)