From: Bernd Kuhls Date: Sun, 30 Sep 2018 19:03:22 +0000 (+0200) Subject: package/mjpg-streamer: add optional dependency to sdl X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=87817c6a6820d1d1b9f915beb3a639b3a6a15867;p=buildroot.git package/mjpg-streamer: add optional dependency to sdl Signed-off-by: Bernd Kuhls Signed-off-by: Thomas Petazzoni --- diff --git a/package/mjpg-streamer/mjpg-streamer.mk b/package/mjpg-streamer/mjpg-streamer.mk index 50ed980b7a..a4f96e1c56 100644 --- a/package/mjpg-streamer/mjpg-streamer.mk +++ b/package/mjpg-streamer/mjpg-streamer.mk @@ -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))