From d6b866b5e1e90b301ff75fb174bf227d29b8b11a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 19 Feb 2018 22:08:04 +0100 Subject: [PATCH] setbfree: fix broken font display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * set path to font on target * align build with path to font set Signed-off-by: Andreas Müller --- .../0002-Do-not-check-for-fontfile.patch | 69 +++++++++++++++++++ .../setbfree/setbfree_0.8.5.bb | 5 +- 2 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 recipes-misc/recipes-multimedia/setbfree/files/0002-Do-not-check-for-fontfile.patch diff --git a/recipes-misc/recipes-multimedia/setbfree/files/0002-Do-not-check-for-fontfile.patch b/recipes-misc/recipes-multimedia/setbfree/files/0002-Do-not-check-for-fontfile.patch new file mode 100644 index 00000000..ae24ff3c --- /dev/null +++ b/recipes-misc/recipes-multimedia/setbfree/files/0002-Do-not-check-for-fontfile.patch @@ -0,0 +1,69 @@ +From 055b916edbeae17fc63b144318ea76959adad7bf Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Mon, 19 Feb 2018 22:12:02 +0100 +Subject: [PATCH] Do not check for fontfile +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Path for target is of interest and won't be found here. + +Upstream-Status: Inappropriate [embedded specific] + +Signed-off-by: Andreas Müller +--- + b_synth/Makefile | 2 +- + common.mak | 10 +--------- + ui/Makefile | 2 +- + 3 files changed, 3 insertions(+), 11 deletions(-) + +diff --git a/b_synth/Makefile b/b_synth/Makefile +index ae47d88..4501f93 100644 +--- a/b_synth/Makefile ++++ b/b_synth/Makefile +@@ -53,7 +53,7 @@ $(LV2NAME)$(LIB_EXT): lv2.c $(LV2OBJ) uris.h ../src/cfgParser.h ../src/midi.h + lv2.c $(LV2OBJ) \ + -shared $(LV2LDFLAGS) $(LDFLAGS) $(LOADLIBES) $(LIC_LOADLIBES) + +-$(LV2GUI)$(LIB_EXT): ui.c uris.h $(UIDEPS) $(FONTFILE) $(LV2OBJ) ++$(LV2GUI)$(LIB_EXT): ui.c uris.h $(UIDEPS) $(LV2OBJ) + $(CC) $(CPPFLAGS) $(CFLAGS) $(UICFLAGS) \ + -o $(LV2GUI)$(LIB_EXT) ui.c -DCONFIGDOCONLY -D XKEYFOCUSGRAB \ + ../src/midi.c \ +diff --git a/common.mak b/common.mak +index 569b0b6..7731490 100644 +--- a/common.mak ++++ b/common.mak +@@ -116,15 +116,7 @@ endif + + #LV2 / GL-GUI + +-ifeq ($(FONTFILE),verabd.h) +- FONT_FOUND=yes +-else +- ifeq ($(shell test -f $(FONTFILE) || echo no ), no) +- FONT_FOUND=no +- else +- FONT_FOUND=yes +- endif +-endif ++FONT_FOUND=yes + + ifeq ($(MOD),) + HAVE_UI=$(shell pkg-config --exists $(PKG_GL_LIBS) ftgl && echo $(FONT_FOUND)) +diff --git a/ui/Makefile b/ui/Makefile +index 739e92a..3fba31b 100644 +--- a/ui/Makefile ++++ b/ui/Makefile +@@ -56,7 +56,7 @@ setBfreeUI$(EXE_EXT): $(RW)jackwrap.c $(LV2OBJ) $(OSXJACKWRAP) $(RW)weakjack/wea + ../b_synth/lv2.c ../b_synth/uris.h \ + ../b_synth/ui.c $(UIDEPS) \ + ../src/cfgParser.h ../src/midi.h +- $(MAKE) -C ../b_synth $(FONTFILE) ++ $(MAKE) -C ../b_synth + $(CC) $(CPPFLAGS) $(CFLAGS) $(UICFLAGS) $(LIC_CFLAGS) \ + -pthread \ + -DXTERNAL_UI -DJACK_AUTOCONNECT=15 \ +-- +2.14.3 + diff --git a/recipes-misc/recipes-multimedia/setbfree/setbfree_0.8.5.bb b/recipes-misc/recipes-multimedia/setbfree/setbfree_0.8.5.bb index 64b8e834..0c7190ac 100644 --- a/recipes-misc/recipes-multimedia/setbfree/setbfree_0.8.5.bb +++ b/recipes-misc/recipes-multimedia/setbfree/setbfree_0.8.5.bb @@ -21,14 +21,15 @@ DEPENDS += " \ SRC_URI = " \ git://github.com/pantherb/setBfree.git \ file://0001-remove-UINQHACK-it-is-used-for-OSX-builds-only-and-c.patch \ + file://0002-Do-not-check-for-fontfile.patch \ " SRCREV = "30f1ec6267afb0ee17b472db0c4826d5bd96fad8" S = "${WORKDIR}/git" EXTRA_OEMAKE += " \ PREFIX=${prefix} \ - STRIP= \ - FONTFILE=${S}/b_synth/VeraBd.ttf \ + STRIP=echo \ + FONTFILE=${prefix}/share/fonts/ttf/VeraBd.ttf \ " do_install_append() {