summaryrefslogtreecommitdiffstats
path: root/package/mjpg-streamer
diff options
context:
space:
mode:
Diffstat (limited to 'package/mjpg-streamer')
-rw-r--r--package/mjpg-streamer/mjpg-streamer.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/mjpg-streamer/mjpg-streamer.mk b/package/mjpg-streamer/mjpg-streamer.mk
index e54c6006f9..a710af6fc7 100644
--- a/package/mjpg-streamer/mjpg-streamer.mk
+++ b/package/mjpg-streamer/mjpg-streamer.mk
@@ -14,8 +14,13 @@ MJPG_STREAMER_LICENSE = GPLv2+
MJPG_STREAMER_LICENSE_FILES = LICENSE
MJPG_STREAMER_DEPENDENCIES = jpeg
+ifeq ($(BR2_PACKAGE_LIBV4L),y)
+MJPG_STREAMER_DEPENDENCIES += libv4l
+MJPG_STREAMER_USE_LIBV4L += USE_LIBV4L2=true
+endif
+
define MJPG_STREAMER_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D)
+ $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) $(MJPG_STREAMER_USE_LIBV4L)
endef
define MJPG_STREAMER_INSTALL_TARGET_CMDS
OpenPOWER on IntegriCloud