2015-01-26 21:51:11 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# mjpg-streamer
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-06-07 01:37:39 +02:00
|
|
|
MJPG_STREAMER_VERSION = 5a6e0a2db163e6ae9461552b59079870d0959340
|
2018-09-30 21:03:20 +02:00
|
|
|
MJPG_STREAMER_SITE = $(call github,jacksonliam,mjpg-streamer,$(MJPG_STREAMER_VERSION))
|
|
|
|
MJPG_STREAMER_SUBDIR = mjpg-streamer-experimental
|
2017-03-30 15:43:32 +02:00
|
|
|
MJPG_STREAMER_LICENSE = GPL-2.0+
|
2018-09-30 21:03:20 +02:00
|
|
|
MJPG_STREAMER_LICENSE_FILES = $(MJPG_STREAMER_SUBDIR)/LICENSE
|
2015-01-26 21:51:11 +01:00
|
|
|
MJPG_STREAMER_DEPENDENCIES = jpeg
|
|
|
|
|
2018-09-30 21:03:23 +02:00
|
|
|
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
|
|
|
|
|
2016-02-14 10:29:36 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L),y)
|
|
|
|
MJPG_STREAMER_DEPENDENCIES += libv4l
|
|
|
|
endif
|
|
|
|
|
2018-10-20 10:03:41 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENCV3_LIB_HIGHGUI)$(BR2_PACKAGE_OPENCV3_LIB_IMGPROC)$(BR2_PACKAGE_OPENCV3_LIB_VIDEOIO),yyy)
|
2020-08-22 14:18:40 +02:00
|
|
|
MJPG_STREAMER_CONF_OPTS += \
|
|
|
|
-DPLUGIN_INPUT_OPENCV=ON \
|
|
|
|
-DPLUGIN_CVFILTER_CPP=OFF \
|
|
|
|
-DPLUGIN_CVFILTER_PY=OFF
|
2018-09-30 21:03:21 +02:00
|
|
|
MJPG_STREAMER_DEPENDENCIES += host-pkgconf opencv3
|
|
|
|
else
|
|
|
|
MJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_OPENCV=OFF
|
|
|
|
endif
|
|
|
|
|
2018-10-25 21:07:32 +02:00
|
|
|
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
|
|
|
|
|
2018-09-30 21:03:22 +02:00
|
|
|
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
|
|
|
|
|
2018-09-30 21:03:20 +02:00
|
|
|
$(eval $(cmake-package))
|