commit e0942cefee08f304fa27095c56910f38f57c279c Author: Goran Mekić Date: Wed Oct 28 10:39:05 2020 +0100 Drumgizmo update lv2 structs diff --git a/audio/drumgizmo/Makefile b/audio/drumgizmo/Makefile index 3c07c460b7c4..2ea188f3ad15 100644 --- a/audio/drumgizmo/Makefile +++ b/audio/drumgizmo/Makefile @@ -3,7 +3,7 @@ PORTNAME= drumgizmo PORTVERSION= 0.9.18.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= http://www.drumgizmo.org/releases/${PORTNAME}-${PORTVERSION}/ @@ -13,8 +13,6 @@ COMMENT= Multichannel drum sampler LICENSE= LGPL3+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN= pluginlv2.cc:687:2: error: cannot initialize a member subobject of type 'LV2_Handle' - BUILD_DEPENDS= lv2>=1.14.0:audio/lv2 LIB_DEPENDS= libsmf.so:audio/libsmf \ libzita-resampler.so:audio/zita-resampler \ diff --git a/audio/drumgizmo/files/patch-plugin_plugingizmo_pluginlv2.cc b/audio/drumgizmo/files/patch-plugin_plugingizmo_pluginlv2.cc new file mode 100644 index 000000000000..699ffde34523 --- /dev/null +++ b/audio/drumgizmo/files/patch-plugin_plugingizmo_pluginlv2.cc @@ -0,0 +1,20 @@ +--- plugin/plugingizmo/pluginlv2.cc.orig 2020-10-28 00:11:08 UTC ++++ plugin/plugingizmo/pluginlv2.cc +@@ -86,7 +86,7 @@ void PluginLV2::setLatency(float latency) + } + } + +-LV2_Handle PluginLV2::instantiate(const struct _LV2_Descriptor* descriptor, ++LV2_Handle PluginLV2::instantiate(const LV2_Descriptor* descriptor, + double sample_rate, + const char* bundle_path, + const LV2_Feature *const *features) +@@ -616,7 +616,7 @@ const void* PluginLV2::extensionData(const char *uri) + // + // GUI + // +-LV2UI_Handle PluginLV2::uiInstantiate(const struct _LV2UI_Descriptor*descriptor, ++LV2UI_Handle PluginLV2::uiInstantiate(const LV2UI_Descriptor*descriptor, + const char * plugin_uri, + const char * bundle_path, + LV2UI_Write_Function write_function, diff --git a/audio/drumgizmo/files/patch-plugin_plugingizmo_pluginlv2.h b/audio/drumgizmo/files/patch-plugin_plugingizmo_pluginlv2.h new file mode 100644 index 000000000000..845186b61d25 --- /dev/null +++ b/audio/drumgizmo/files/patch-plugin_plugingizmo_pluginlv2.h @@ -0,0 +1,20 @@ +--- plugin/plugingizmo/pluginlv2.h.orig 2020-10-28 00:13:15 UTC ++++ plugin/plugingizmo/pluginlv2.h +@@ -192,7 +192,7 @@ class PluginLV2 (public) + void closeWindow() override; + + public: +- static LV2_Handle instantiate(const struct _LV2_Descriptor* descriptor, ++ static LV2_Handle instantiate(const LV2_Descriptor* descriptor, + double sample_rate, + const char* bundle_path, + const LV2_Feature* const * features); +@@ -222,7 +222,7 @@ class PluginLV2 (public) + uint32_t flags, + const LV2_Feature *const * features); + +- static LV2UI_Handle uiInstantiate(const struct _LV2UI_Descriptor * descriptor, ++ static LV2UI_Handle uiInstantiate(const LV2UI_Descriptor * descriptor, + const char * plugin_uri, + const char * bundle_path, + LV2UI_Write_Function write_function,