package/mjpg-streamer: add optional dependency to sdl
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 30 Sep 2018 19:03:22 +0000 (21:03 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 8 Oct 2018 19:28:07 +0000 (21:28 +0200)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mjpg-streamer/mjpg-streamer.mk

index 50ed980b7a4ecd997d410223dc6fd2b925ed83d3..a4f96e1c56a353514131d4f7f3b0369a124fa032 100644 (file)
@@ -22,4 +22,11 @@ else
 MJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_OPENCV=OFF
 endif
 
+ifeq ($(BR2_PACKAGE_SDL),y)
+MJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_VIEWER=ON
+MJPG_STREAMER_DEPENDENCIES += host-pkgconf sdl
+else
+MJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_VIEWER=OFF
+endif
+
 $(eval $(cmake-package))