package/mjpg-streamer: add optional dependency to opencv3

According to
https://github.com/jacksonliam/mjpg-streamer/blob/master/mjpg-streamer-experimental/plugins/input_opencv/README.md
the plugin does not support OpenCV 2.x.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Bernd Kuhls 2018-09-30 21:03:21 +02:00 committed by Thomas Petazzoni
parent 9c9e144640
commit 896d370449

View File

@ -15,4 +15,11 @@ ifeq ($(BR2_PACKAGE_LIBV4L),y)
MJPG_STREAMER_DEPENDENCIES += libv4l MJPG_STREAMER_DEPENDENCIES += libv4l
endif endif
ifeq ($(BR2_PACKAGE_OPENCV3_LIB_IMGPROC)$(BR2_PACKAGE_OPENCV3_LIB_IMGPROC)$(BR2_PACKAGE_OPENCV3_LIB_IMGPROC),yyy)
MJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_OPENCV=ON
MJPG_STREAMER_DEPENDENCIES += host-pkgconf opencv3
else
MJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_OPENCV=OFF
endif
$(eval $(cmake-package)) $(eval $(cmake-package))