From a01c9ebcd80af1014948af34350a958fd2a3e414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Fri, 18 May 2018 23:05:08 +0200 Subject: [PATCH] dpf-plugins: Initial add v1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- .../recipes-multimedia/distrho/dpf-plugins.bb | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 recipes-misc/recipes-multimedia/distrho/dpf-plugins.bb diff --git a/recipes-misc/recipes-multimedia/distrho/dpf-plugins.bb b/recipes-misc/recipes-multimedia/distrho/dpf-plugins.bb new file mode 100644 index 00000000..af70a473 --- /dev/null +++ b/recipes-misc/recipes-multimedia/distrho/dpf-plugins.bb @@ -0,0 +1,62 @@ +SUMMARY = "Collection of DPF-based plugins" +LICENSE = "ISC & GPLv2 & GPLv3 & LGPLv3 & MIT" +LIC_FILES_CHKSUM = " \ + file://LICENSE;md5=ec024abddfab2ee463c8c1ad98883d12 \ +" + +SRC_URI = " \ + git://github.com/DISTRHO/DPF-Plugins.git \ +" + +SRCREV = "6454c590a2b5402195e655b1386358210e067dfd" +S = "${WORKDIR}/git" +PV = "v1.1" + +REQUIRED_DISTRO_FEATURES = "x11" + +inherit lv2-postinst-helper distro_features_check pkgconfig + +# TODO standalones: DEPEND jack / install / *.desktop +DEPENDS += " \ + virtual/libgl \ + ladspa-sdk \ + lv2 \ + projectm \ +" + +do_compile_prepend() { + export NOOPT=true + rm -f ${LV2-TURTLE-BUILD-DATA} + # manipulate Makefile/scripts to keep lv2_ttl_generator-calls in script for lv2-postinst-helper + sed -i 's|$GEN ./$FILE|echo lv2-ttl-generator `pwd`/$FILE >> ${LV2-TURTLE-BUILD-DATA}|g' ${S}/dpf/utils/generate-ttl.sh +} + +do_install() { + install -d ${D}${libdir}/ladspa + for plugin in `find ${S}/bin/ -name *ladspa.so`; do + install -m 644 $plugin ${D}${libdir}/ladspa/ + done + + install -d ${D}${libdir}/lv2 + for plugindir in `find ${S}/bin/ -maxdepth 1 -name *.lv2`; do + lv2dir=${D}${libdir}/lv2/`basename $plugindir` + install -d $lv2dir + for plugin in `find $plugindir -name *.so`; do + install -m 644 $plugin $lv2dir/ + done + done + + install -d ${D}${libdir}/vst + for plugin in `find ${S}/bin/ -name *vst.so`; do + install -m 644 $plugin ${D}${libdir}/vst/ + done +} + +FILES_${PN} += " \ + ${libdir}/ladspa \ + ${libdir}/lv2 \ + ${libdir}/vst \ +" + +# Have not found what causes stripping - debugging of plugins is unlikely +INSANE_SKIP_${PN} = "already-stripped"