aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gstreamer1-plugins/files/patch-sys_ximage_meson.build
blob: e71899dbfda9c678f470ec02757bc0e90d77e8ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- sys/ximage/meson.build.orig	2022-09-09 09:10:02 UTC
+++ sys/ximage/meson.build
@@ -1,3 +1,4 @@
+if get_option('ximage').enabled()
 no_warn_args = []
 # XKeycodeToKeysym is deprecated, but we use it when Xkb is unavailable
 if cc.has_argument ('-Wno-deprecated-declarations')
@@ -8,9 +9,10 @@ gstximage = library('gstximagesink',
   'ximagesink.c', 'ximage.c', 'ximagepool.c',
   c_args : gst_plugins_base_args + no_warn_args,
   include_directories: [configinc, libsinc],
-  dependencies : glib_deps + [video_dep, gst_base_dep, gst_dep, x11_dep, xshm_dep],
+  dependencies : glib_deps + [dependency('gstreamer-video-1.0'), gst_base_dep, gst_dep, x11_dep, xshm_dep],
   install : true,
   install_dir : plugins_install_dir,
 )
 pkgconfig.generate(gstximage, install_dir : plugins_pkgconfig_install_dir)
 plugins += [gstximage]
+endif