From fd544544ab33de8dd4f4b26c421247a1b427b644 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Wed, 24 Feb 2021 17:18:18 +0300 Subject: [PATCH] Link v4l2 plugin to libinotify on FreeBSD --- meson.build | 4 ++++ spa/plugins/v4l2/meson.build | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 9bf5e3452..2c117e404 100644 --- a/meson.build +++ b/meson.build @@ -354,6 +354,10 @@ epoll_shim_dep = (build_machine.system() == 'freebsd' ? dependency('epoll-shim', required: true) : dependency('', required: false)) +libinotify_dep = (build_machine.system() == 'freebsd' + ? dependency('libinotify', required: true) + : dependency('', required: false)) + alsa_dep = (get_option('pipewire-alsa') ? dependency('alsa', version : '>=1.1.7') : dependency('', required: false)) diff --git a/spa/plugins/v4l2/meson.build b/spa/plugins/v4l2/meson.build index e92d7fe22..f43bfd84d 100644 --- a/spa/plugins/v4l2/meson.build +++ b/spa/plugins/v4l2/meson.build @@ -6,6 +6,6 @@ v4l2_sources = ['v4l2.c', v4l2lib = shared_library('spa-v4l2', v4l2_sources, include_directories : [ spa_inc ], - dependencies : [ libudev_dep, ], + dependencies : [ libudev_dep, libinotify_dep ], install : true, install_dir : join_paths(spa_plugindir, 'v4l2'))