From a044d404dade2567d9be1353177634799a264d4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 21 May 2018 11:51:16 +0200 Subject: [PATCH] distrho-ports-extra: initial add MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Up to now this was build tested only. The cabbage files might need a different install location. Signed-off-by: Andreas Müller --- .../distrho/distrho-ports-extra.bb | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 recipes-misc/recipes-multimedia/distrho/distrho-ports-extra.bb diff --git a/recipes-misc/recipes-multimedia/distrho/distrho-ports-extra.bb b/recipes-misc/recipes-multimedia/distrho/distrho-ports-extra.bb new file mode 100644 index 00000000..0a94a087 --- /dev/null +++ b/recipes-misc/recipes-multimedia/distrho/distrho-ports-extra.bb @@ -0,0 +1,63 @@ +SUMMARY = "Collection of synthesizers and plugins" +HOMEPAGE = "http://distrho.sourceforge.net/ports" +LICENSE = "GPLv2 & MIT" +LIC_FILES_CHKSUM = " \ + file://ports/argotlunar/README.md;md5=81abc323be6ba481ab72864b53b3daca \ + file://ports/protoplug/license.txt;md5=56b9d913eb7c3ef00ca375ab614bf02f \ +" + +SRC_URI = " \ + git://github.com/DISTRHO/DISTRHO-Ports-Extra.git \ +" + +SRCREV = "b6f25f1feb4de49136844f20d88bec6439cdfbc5" +S = "${WORKDIR}/git" +PV = "0.0.0+git${SRCPV}" + +REQUIRED_DISTRO_FEATURES = "x11 opengl" + +inherit lv2-postinst-helper distro_features_check + +# distro-ports dependency for special hack script / libs +DEPENDS += " \ + premake3-native \ + virtual/libgl \ + libx11 \ + libxext \ + libxcursor \ + freetype \ + csound \ + distrho-ports \ +" + +do_configure() { + # reconfigure? + if [ ! -f ${LV2-TURTLE-BUILD-DATA} ] ; then + # Seems this collection is not ready for public - copy 'shared' from distrho-ports + rm -rf ${S}/scripts + rm -rf ${S}/libs + cp -rf ${STAGING_LIBDIR}/distrho-ports-build/* ${S}/ + # manipulate 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' `find ${S}/scripts -name *.sh` + else + rm -f ${LV2-TURTLE-BUILD-DATA} + fi + + cd ${S} + # platforms supporting sse2 can override NOOPTIMIZATIONS + NOOPTIMIZATIONS=1 ${S}/scripts/premake-update.sh linux +} + +do_install() { + install -d ${D}${libdir} + cp -r ${S}/bin/* ${D}${libdir} +} + +FILES_${PN} += " \ + ${libdir}/cabbage* \ + ${libdir}/lv2 \ + ${libdir}/vst \ +" + +# Have not found what causes stripping - debugging of plugins is unlikely +INSANE_SKIP_${PN} = "already-stripped"