From 0a4e2bfd64a6f5fe26bdd6d6f8e1e6e21854cbc2 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Thu, 25 Oct 2018 21:07:32 +0200 Subject: [PATCH] package/mjpg-streamer: add optional dependency to zeromq The ZeroMQ output module also depends on protobuf, see upstream PR 145. Signed-off-by: Bernd Kuhls Signed-off-by: Peter Korsgaard --- 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 de8bad0c03..4077a3dcbc 100644 --- a/package/mjpg-streamer/mjpg-streamer.mk +++ b/package/mjpg-streamer/mjpg-streamer.mk @@ -29,6 +29,13 @@ else MJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_OPENCV=OFF endif +ifeq ($(BR2_PACKAGE_PROTOBUF_C)$(BR2_PACKAGE_ZEROMQ),yy) +MJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_ZMQSERVER=ON +MJPG_STREAMER_DEPENDENCIES += host-pkgconf protobuf-c zeromq +else +MJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_ZMQSERVER=OFF +endif + ifeq ($(BR2_PACKAGE_SDL),y) MJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_VIEWER=ON MJPG_STREAMER_DEPENDENCIES += host-pkgconf sdl -- 2.30.2