summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Matteo Bernardini2020-08-31 19:14:13 +0200
committer Willy Sudiarto Raharjo2020-09-05 03:26:50 +0200
commitb1982507c296b4326d35c773454c09f01146be5b (patch)
tree8560681c0f227ea4160c0291f03b0e1e60f05477
parente187461981f93b857f4e9258bd3d1cb816558957 (diff)
downloadslackbuilds-b1982507c296b4326d35c773454c09f01146be5b.tar.gz
audio/fabla: Patch for the newer lv2.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-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 \