configure: add direct detection of libopencv
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Sun, 7 Feb 2016 22:25:53 +0000 (23:25 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 28 Feb 2016 01:47:12 +0000 (02:47 +0100)
commit15708f13477aaf2effdc0d7fc727507bc468335a
tree4a208c12715bcd6dda02cc9230834f8fccc0b874
parentb70e9b4906a3d1a61c542da02793decba1dbabba
configure: add direct detection of libopencv

The pkg-config file contains all opencv libraries, not only the
neccessary ones.

This change makes it possible to use the libopencv-imgproc-dev Debian
package instead of libopencv-dev, saving about 200 MB of useless
build-dependencies.

In particular one doesn't need to install the parts of opencv that
depend on ffmpeg libraries.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
configure