1# FIXME: requires Gtk+ and an ancient version at that, needs more work.
2# Apparently works with gtk2 though.
3'''
4gtk_dep = dependency('gtk+-x11-2.0', required: get_option('gtk'))
5
6sdl_dep = dependency('sdl2', version: '>= 1.1.6', required: get_option('sdl'))
7
8xv_dep = dependency('xv', required: get_option('xv'))
9
10cdata.set10('HAVE_GTK', gtk_dep.found())
11cdata.set10('HAVE_SDL', sdl_dep.found())
12cdata.set10('HAVE_LIBXV', xv_dep.found())
13
14if not gtk_dep.found()
15  message('playdv needs GTK+ 2.x')
16  subdir_done()
17endif
18
19executable('playdv', 'playdv.c', 'display.c', 'oss.c',
20  include_directories: config_inc,
21  dependencies: [dv_dep, sdl_dep, gtk_dep, xv_dep, popt_dep, dependency('x11'), dependency('xshm')],
22  install: true)
23
24if not popt_dep.found()
25  warning('playdv needs the popt package for command line parsing.')
26endif
27
28install_man('playdv.1')
29'''
30