summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2018-09-30 21:03:23 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-10-08 21:28:15 +0200
commit89ef4c4e48ef3c4fb22fc139e7816a516eaa3212 (patch)
treef93d124ba8dd4b7ed98271de019399c1bf1f3a0b
parent87817c6a6820d1d1b9f915beb3a639b3a6a15867 (diff)
downloadbuildroot-89ef4c4e48ef3c4fb22fc139e7816a516eaa3212.tar.gz
buildroot-89ef4c4e48ef3c4fb22fc139e7816a516eaa3212.zip
package/mjpg-streamer: add optional dependency to libgphoto2
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/mjpg-streamer/mjpg-streamer.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/mjpg-streamer/mjpg-streamer.mk b/package/mjpg-streamer/mjpg-streamer.mk
index a4f96e1c56..6ea8c47030 100644
--- a/package/mjpg-streamer/mjpg-streamer.mk
+++ b/package/mjpg-streamer/mjpg-streamer.mk
@@ -11,6 +11,13 @@ MJPG_STREAMER_LICENSE = GPL-2.0+
MJPG_STREAMER_LICENSE_FILES = $(MJPG_STREAMER_SUBDIR)/LICENSE
MJPG_STREAMER_DEPENDENCIES = jpeg
+ifeq ($(BR2_PACKAGE_LIBGPHOTO2),y)
+MJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_PTP2=ON
+MJPG_STREAMER_DEPENDENCIES += host-pkgconf libgphoto2
+else
+MJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_PTP2=OFF
+endif
+
ifeq ($(BR2_PACKAGE_LIBV4L),y)
MJPG_STREAMER_DEPENDENCIES += libv4l
endif
OpenPOWER on IntegriCloud