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:
parent
9c9e144640
commit
896d370449
@ -15,4 +15,11 @@ ifeq ($(BR2_PACKAGE_LIBV4L),y)
|
||||
MJPG_STREAMER_DEPENDENCIES += libv4l
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user