meson: prefer libintl on FreeBSD

FreeBSD does not have gettext in libc.
It is implemented in the third-party library.
This commit is contained in:
Evgeniy Khramtsov 2021-04-23 22:57:51 +03:00
parent 097510cffe
commit 4d064a3718
2 changed files with 4 additions and 1 deletions

View file

@ -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