From: IOhannes m zmölnig (Debian/GNU) Date: Fri, 17 Dec 2021 10:54:57 +0000 (+0100) Subject: Apply some hacks for FST bugs X-Git-Tag: archive/raspbian/0.20.1+ds1-1+rpi1~1^2~32 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=525e040dcca3fe37a0c3f3ab96cfb372314dc7d9;p=giada.git Apply some hacks for FST bugs --- diff --git a/debian/rules b/debian/rules index e7bf2a2..8ab629b 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,8 @@ export DEB_CPPFLAGS_MAINT_APPEND = export DEB_CXXFLAGS_MAINT_APPEND = export DEB_LDFLAGS_MAINT_APPEND = +# workaround for an FST bug +DEB_CPPFLAGS_MAINT_APPEND += -D_fstEffect=AEffect DATE_FMT = %Y-%m-%d ifdef SOURCE_DATE_EPOCH @@ -45,6 +47,9 @@ execute_before_dh_auto_configure: cp debian/missing-sources/$$d/* src/deps/$$d/src/; \ done cp -ra /usr/share/juce src/deps/ + # patch around some bugs in FST + sed -e 's|\(.*t_fstTimeInfo.smpteFrameRate.*\)|};\ntypedef enum {\1|' -e 's|\(.*SmpteFilm35mm.*\)|\1 }^CstSmpteFrameRate;\nenum {dummy_enum|' /usr/include/pluginterfaces/fst/fst.h > src/deps/juce/modules/juce_audio_processors/format_types/fst.h + sed -e 's||"fst.h"|' -i src/deps/juce/modules/juce_audio_processors/format_types/juce_VSTPluginFormat.cpp override_dh_auto_configure: dh_auto_configure -- \ -DWITH_VST2=ON \