package/mjpg-streamer: added optional dependency to libv4l
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sun, 14 Feb 2016 09:29:36 +0000 (10:29 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 14 Feb 2016 20:53:06 +0000 (21:53 +0100)
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/mjpg-streamer/mjpg-streamer.mk

index e54c6006f9ff55405750af5fe170f24852594248..a710af6fc7faf5005093a6ca738ea70620b42efa 100644 (file)
@@ -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