--- /dev/null
+From 4d064a37183a0bf8198914dd68b063b2c9def17e Mon Sep 17 00:00:00 2001
+From: Evgeniy Khramtsov <evgeniy@khramtsov.org>
+Date: Fri, 23 Apr 2021 22:57:51 +0300
+Subject: [PATCH] meson: prefer libintl on FreeBSD
+
+FreeBSD does not have gettext in libc.
+It is implemented in the third-party library.
+
+[Retrieved from:
+https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/4d064a37183a0bf8198914dd68b063b2c9def17e]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ meson.build | 3 +++
+ src/pipewire/meson.build | 2 +-
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index 99a4b2d1c..0a9963fbb 100644
+--- a/meson.build
++++ b/meson.build
+@@ -351,6 +351,9 @@ libinotify_dep = (build_machine.system() == 'freebsd'
+ ? dependency('libinotify', required: true)
+ : dependency('', required: false))
+
++# On FreeBSD, libintl library is required for gettext
++libintl_dep = cc.find_library('intl', required: false)
++
+ alsa_dep = dependency('alsa', version : '>=1.1.7', required: get_option('pipewire-alsa'))
+
+ installed_tests_metadir = pipewire_datadir / 'installed-tests' / pipewire_name
+diff --git a/src/pipewire/meson.build b/src/pipewire/meson.build
+index 7f2d42a7a..d4c271373 100644
+--- a/src/pipewire/meson.build
++++ b/src/pipewire/meson.build
+@@ -101,7 +101,7 @@ libpipewire = shared_library(pipewire_name, pipewire_sources,
+ c_args : libpipewire_c_args,
+ include_directories : [pipewire_inc, configinc, spa_inc],
+ install : true,
+- dependencies : [dl_lib, mathlib, pthread_lib, ],
++ dependencies : [dl_lib, mathlib, pthread_lib, libintl_dep, ],
+ )
+
+ pipewire_dep = declare_dependency(link_with : libpipewire,
+--
+GitLab
+