From ceb393e291ea14383d18f6fd6ef73ee52317e38a Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Mon, 20 Jan 2025 18:29:58 +0100 Subject: [PATCH] Build fontconfig without thread support --- .../patches/0001-disable-threads.patch | 17 +++++++++++++++++ .../recipes_emscripten/fontconfig/recipe.yaml | 4 +++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 recipes/recipes_emscripten/fontconfig/patches/0001-disable-threads.patch diff --git a/recipes/recipes_emscripten/fontconfig/patches/0001-disable-threads.patch b/recipes/recipes_emscripten/fontconfig/patches/0001-disable-threads.patch new file mode 100644 index 000000000..ddaf3118f --- /dev/null +++ b/recipes/recipes_emscripten/fontconfig/patches/0001-disable-threads.patch @@ -0,0 +1,17 @@ +diff --git a/meson.build b/meson.build +index 08d9532..fae3333 100644 +--- a/meson.build ++++ b/meson.build +@@ -289,12 +289,6 @@ if fc_cachedir in ['yes', 'no', 'default'] + endif + endif + +-if host_machine.system() != 'windows' +- thread_dep = dependency('threads') +- conf.set('HAVE_PTHREAD', 1) +- deps += [thread_dep] +-endif +- + fc_templatedir = get_option('template-dir') + if fc_templatedir in ['default', 'yes', 'no'] + fc_templatedir = prefix / get_option('datadir') / 'fontconfig/conf.avail' diff --git a/recipes/recipes_emscripten/fontconfig/recipe.yaml b/recipes/recipes_emscripten/fontconfig/recipe.yaml index a4c2a1fc4..a8646d10b 100644 --- a/recipes/recipes_emscripten/fontconfig/recipe.yaml +++ b/recipes/recipes_emscripten/fontconfig/recipe.yaml @@ -10,9 +10,11 @@ source: url: http://www.freedesktop.org/software/${{ name }}/release/${{ name }}-${{ version }}.tar.gz sha256: f5f359d6332861bd497570848fcb42520964a9e83d5e3abe397b6b6db9bcaaf4 + patches: + - patches/0001-disable-threads.patch build: - number: 0 + number: 1 requirements: build: