From 896d37044968aeb9c9b01ad5db820b6dcfef0b89 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sun, 30 Sep 2018 21:03:21 +0200 Subject: [PATCH] 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 Signed-off-by: Thomas Petazzoni --- package/mjpg-streamer/mjpg-streamer.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/mjpg-streamer/mjpg-streamer.mk b/package/mjpg-streamer/mjpg-streamer.mk index 2941e314b3..50ed980b7a 100644 --- a/package/mjpg-streamer/mjpg-streamer.mk +++ b/package/mjpg-streamer/mjpg-streamer.mk @@ -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)) -- 2.30.2