diff --git a/recipes-misc/recipes-multimedia/rncbc/padthv1/lv2-backport/0001-Comply-with-next-LV2-headers-location-post-1.14.0git.patch b/recipes-misc/recipes-multimedia/rncbc/padthv1/lv2-backport/0001-Comply-with-next-LV2-headers-location-post-1.14.0git.patch new file mode 100644 index 00000000..fb7cde22 --- /dev/null +++ b/recipes-misc/recipes-multimedia/rncbc/padthv1/lv2-backport/0001-Comply-with-next-LV2-headers-location-post-1.14.0git.patch @@ -0,0 +1,44 @@ +From adb31d1a211aac6607b50ec21e87c5ece71370bd Mon Sep 17 00:00:00 2001 +From: rncbc +Date: Fri, 28 Dec 2018 17:06:14 +0000 +Subject: [PATCH 1/3] - Comply with next LV2 headers location post-1.14.0git. + (EXPERIMENTAL) + +--- + configure.ac | 20 +++++++++++++++----- + 1 file changed, 15 insertions(+), 5 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 8356d3f..af96a63 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -492,11 +492,21 @@ fi + + # Check for LV2 headers. + if test "x$ac_lv2" = "xyes"; then +- AC_CHECK_HEADERS(lv2.h \ +- lv2/lv2plug.in/ns/ext/atom/atom.h \ +- lv2/lv2plug.in/ns/ext/atom/forge.h \ +- lv2/lv2plug.in/ns/ext/atom/util.h, +- [ac_lv2="yes"], [ac_lv2="no"]) ++ PKG_CHECK_MODULES([LV2], [lv2], [ac_lv2="yes"], [ac_lv2="no"]) ++ if test "x$ac_lv2" = "xyes"; then ++ ac_lv2 cflags="$ac_lv2_cflags $LV2_CFLAGS" ++ CFLAGS="$CFLAGS $LV2_CFLAGS" ++ CPPFLAGS="$CPPFLAGS $LV2_CFLAGS" ++ else ++ AC_CHECK_HEADER(lv2/lv2.h, [ac_lv2="yes"], [ac_lv2="no"]) ++ fi ++ if test "x$ac_lv2" = "xyes"; then ++ AC_CHECK_HEADERS( ++ lv2/lv2plug.in/ns/ext/atom/atom.h \ ++ lv2/lv2plug.in/ns/ext/atom/forge.h \ ++ lv2/lv2plug.in/ns/ext/atom/util.h, ++ [ac_lv2="yes"], [ac_lv2="no"]) ++ fi + if test "x$ac_lv2" = "xyes"; then + AC_DEFINE(CONFIG_LV2, 1, [Define if LV2 plug-in build is enabled.]) + ac_all_targets="lv2 $ac_all_targets" +-- +2.20.1 + diff --git a/recipes-misc/recipes-multimedia/rncbc/padthv1/lv2-backport/0002-Comply-with-next-LV2-headers-location-post-1.14.0git.patch b/recipes-misc/recipes-multimedia/rncbc/padthv1/lv2-backport/0002-Comply-with-next-LV2-headers-location-post-1.14.0git.patch new file mode 100644 index 00000000..32868335 --- /dev/null +++ b/recipes-misc/recipes-multimedia/rncbc/padthv1/lv2-backport/0002-Comply-with-next-LV2-headers-location-post-1.14.0git.patch @@ -0,0 +1,38 @@ +From feb49c8197f583162bbf870a873f00388e919c89 Mon Sep 17 00:00:00 2001 +From: rncbc +Date: Fri, 28 Dec 2018 19:49:48 +0000 +Subject: [PATCH 2/3] - Comply with next LV2 headers location post-1.14.0git. + (FIXED) + +--- + src/padthv1_lv2.h | 1 - + src/padthv1_lv2ui.h | 1 - + 2 files changed, 2 deletions(-) + +diff --git a/src/padthv1_lv2.h b/src/padthv1_lv2.h +index 39f47df..41a7fd0 100644 +--- a/src/padthv1_lv2.h ++++ b/src/padthv1_lv2.h +@@ -24,7 +24,6 @@ + + #include "padthv1.h" + +-#include "lv2.h" + #include "lv2/lv2plug.in/ns/ext/urid/urid.h" + #include "lv2/lv2plug.in/ns/ext/atom/atom.h" + #include "lv2/lv2plug.in/ns/ext/atom/forge.h" +diff --git a/src/padthv1_lv2ui.h b/src/padthv1_lv2ui.h +index 2dae56c..8b7089d 100644 +--- a/src/padthv1_lv2ui.h ++++ b/src/padthv1_lv2ui.h +@@ -24,7 +24,6 @@ + + #include "padthv1_ui.h" + +-#include "lv2.h" + #include "lv2/lv2plug.in/ns/extensions/ui/ui.h" + + +-- +2.20.1 + diff --git a/recipes-misc/recipes-multimedia/rncbc/padthv1/lv2-backport/0003-Comply-with-next-LV2-headers-location-post-1.14.0git.patch b/recipes-misc/recipes-multimedia/rncbc/padthv1/lv2-backport/0003-Comply-with-next-LV2-headers-location-post-1.14.0git.patch new file mode 100644 index 00000000..40ffad07 --- /dev/null +++ b/recipes-misc/recipes-multimedia/rncbc/padthv1/lv2-backport/0003-Comply-with-next-LV2-headers-location-post-1.14.0git.patch @@ -0,0 +1,30 @@ +From cbd8bf2d02f5c2d438c4996a2428b76c9018c01e Mon Sep 17 00:00:00 2001 +From: rncbc +Date: Fri, 28 Dec 2018 21:44:57 +0000 +Subject: [PATCH 3/3] - Comply with next LV2 headers location post-1.14.0git. + (FIXED+) + +--- + configure.ac | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index af96a63..1ed551b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -497,11 +497,10 @@ if test "x$ac_lv2" = "xyes"; then + ac_lv2 cflags="$ac_lv2_cflags $LV2_CFLAGS" + CFLAGS="$CFLAGS $LV2_CFLAGS" + CPPFLAGS="$CPPFLAGS $LV2_CFLAGS" +- else +- AC_CHECK_HEADER(lv2/lv2.h, [ac_lv2="yes"], [ac_lv2="no"]) + fi + if test "x$ac_lv2" = "xyes"; then + AC_CHECK_HEADERS( ++ lv2/lv2plug.in/ns/ext/urid/urid.h \ + lv2/lv2plug.in/ns/ext/atom/atom.h \ + lv2/lv2plug.in/ns/ext/atom/forge.h \ + lv2/lv2plug.in/ns/ext/atom/util.h, +-- +2.20.1 + diff --git a/recipes-misc/recipes-multimedia/rncbc/padthv1_0.9.4.bb b/recipes-misc/recipes-multimedia/rncbc/padthv1_0.9.4.bb index 48109532..4dc69b0a 100644 --- a/recipes-misc/recipes-multimedia/rncbc/padthv1_0.9.4.bb +++ b/recipes-misc/recipes-multimedia/rncbc/padthv1_0.9.4.bb @@ -22,6 +22,10 @@ SRC_URI = " \ http://linuxsynths.com/Padthv1PatchesDemos/Padthv1Patches.tar.gz;name=linuxsynths-padthv1-presets;subdir=linuxsynths-padthv1-presets \ file://0001-no-Qt4-find-native-qt-build-tools-by-configure-options-auto.patch \ \ + file://lv2-backport/0001-Comply-with-next-LV2-headers-location-post-1.14.0git.patch \ + file://lv2-backport/0002-Comply-with-next-LV2-headers-location-post-1.14.0git.patch \ + file://lv2-backport/0003-Comply-with-next-LV2-headers-location-post-1.14.0git.patch \ + \ ${FFTWSINGLEPATCH} \ file://0002-Remove-extra-rpath.patch \ file://padthv1.conf \