weston: add package
[feed/video.git] / libs / weston / patches / 001-fix-wayland-scanner-detect.patch
diff --git a/libs/weston/patches/001-fix-wayland-scanner-detect.patch b/libs/weston/patches/001-fix-wayland-scanner-detect.patch
new file mode 100644 (file)
index 0000000..277c45b
--- /dev/null
@@ -0,0 +1,25 @@
+--- a/meson_options.txt
++++ b/meson_options.txt
+@@ -242,3 +242,9 @@ option(
+       value: false,
+       description: 'Generate documentation'
+ )
++option(
++      'scanner_bin',
++      description: 'Path to wayland-scanner binary',
++      type: 'string',
++      value: ''
++)
+--- a/protocol/meson.build
++++ b/protocol/meson.build
+@@ -1,5 +1,9 @@
+ dep_scanner = dependency('wayland-scanner', native: true)
+-prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner'))
++if (get_option('scanner_bin') == '')
++      prog_scanner = find_program(dep_scanner.get_pkgconfig_variable('wayland_scanner'))
++else
++      prog_scanner = find_program(get_option('scanner_bin'))
++endif
+ dep_wp = dependency('wayland-protocols', version: '>= 1.19')
+ dir_wp_base = dep_wp.get_pkgconfig_variable('pkgdatadir')