summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/fabla/fabla-1.3.2-lv2-1.18.0.patch24
-rw-r--r--audio/fabla/fabla.SlackBuild3
2 files changed, 27 insertions, 0 deletions
diff --git a/audio/fabla/fabla-1.3.2-lv2-1.18.0.patch b/audio/fabla/fabla-1.3.2-lv2-1.18.0.patch
new file mode 100644
index 0000000000..a3bd4bcc34
--- /dev/null
+++ b/audio/fabla/fabla-1.3.2-lv2-1.18.0.patch
@@ -0,0 +1,24 @@
+From 6d692c374178ae7efd373ca309bfa4a3dcc86156 Mon Sep 17 00:00:00 2001
+From: David Runge <dave@sleepmap.de>
+Date: Thu, 21 May 2020 15:29:43 +0200
+Subject: [PATCH] Fix for building with lv2 >= 1.18.0
+
+The update to lv2 1.18.0 dropped _LV2UI_Descriptor in favor of
+LV2UI_Descriptor.
+---
+ gui/fabla_ui.cxx | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gui/fabla_ui.cxx b/gui/fabla_ui.cxx
+index a722d98..2e721f3 100644
+--- a/gui/fabla_ui.cxx
++++ b/gui/fabla_ui.cxx
+@@ -52,7 +52,7 @@ extern void initForge(Fabla*);
+ extern void writeUpdateUiPaths(Fabla*);
+ extern void writeLoadSample(Fabla* self, int pad, const char* filename, size_t filename_len);
+
+-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/audio/fabla/fabla.SlackBuild b/audio/fabla/fabla.SlackBuild
index ca8b68da7a..3e54daf878 100644
--- a/audio/fabla/fabla.SlackBuild
+++ b/audio/fabla/fabla.SlackBuild
@@ -59,6 +59,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+# Patch for the newer lv2
+patch -p1 < $CWD/fabla-1.3.2-lv2-1.18.0.patch
+
mkdir -p build
cd build
cmake \