meson: Rework opencv plugin checks
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 28 Nov 2016 20:11:28 +0000 (01:41 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 28 Nov 2016 20:30:52 +0000 (02:00 +0530)
commit2160e0e2bd801c81d79323343396fc156f560c75
tree6d955ebb2840536795c3ab310993f1701d86e2ba
parent57bb47f3f79b9814e77b1da0f84cf50b7f1c1732
meson: Rework opencv plugin checks

a) Use get_pkgconfig_variable() to get the opencv prefix
b) Place an upper limit on the opencv version
c) Ensure that headers are available

(b) and (c) just copy what the configure.ac checks do.
ext/opencv/meson.build
meson.build