From c15ca2595f8f3f1c09c78e0ea18c4ab2e9e67535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 29 Oct 2018 00:55:07 +0100 Subject: [PATCH] helm: Fix 'compile-host-path' and 'install-host-path' build breakers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- recipes-misc/recipes-multimedia/helm/helm_git.bb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/recipes-misc/recipes-multimedia/helm/helm_git.bb b/recipes-misc/recipes-multimedia/helm/helm_git.bb index 5ce0dd10..04c96a43 100644 --- a/recipes-misc/recipes-multimedia/helm/helm_git.bb +++ b/recipes-misc/recipes-multimedia/helm/helm_git.bb @@ -34,6 +34,21 @@ S = "${WORKDIR}/git" CXXFLAGS += "-I ${STAGING_INCDIR}/freetype2" +do_configure_prepend() { + # not easy to patch: + # * the place is platered all over + # * we have some around + OIFS="$IFS" + IFS=$'\n' + for f in `find ${S} -name '*Makefile*' -o -name '*.jucer'`; do + if [ -f "$f" ] ; then + sed -i 's:-L/usr/X11R6/lib/::g' "$f" + sed -i 's:libraryPath="/usr/X11R6/lib/"::g' "$f" + fi + done + IFS="$OIFS" +} + do_compile_append() { ${@qemu_run_binary_local(d, '${STAGING_DIR_TARGET}', '${S}/builds/linux/LV2/lv2_ttl_generator')} ${S}/builds/linux/LV2/build/helm.so cp *.ttl ${S}/builds/linux/LV2/helm.lv2/