1*4882a593Smuzhiyun################################################################################ 2*4882a593Smuzhiyun# 3*4882a593Smuzhiyun# mjpg-streamer 4*4882a593Smuzhiyun# 5*4882a593Smuzhiyun################################################################################ 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunMJPG_STREAMER_VERSION = 5a6e0a2db163e6ae9461552b59079870d0959340 8*4882a593SmuzhiyunMJPG_STREAMER_SITE = $(call github,jacksonliam,mjpg-streamer,$(MJPG_STREAMER_VERSION)) 9*4882a593SmuzhiyunMJPG_STREAMER_SUBDIR = mjpg-streamer-experimental 10*4882a593SmuzhiyunMJPG_STREAMER_LICENSE = GPL-2.0+ 11*4882a593SmuzhiyunMJPG_STREAMER_LICENSE_FILES = $(MJPG_STREAMER_SUBDIR)/LICENSE 12*4882a593SmuzhiyunMJPG_STREAMER_DEPENDENCIES = jpeg 13*4882a593Smuzhiyun 14*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBGPHOTO2),y) 15*4882a593SmuzhiyunMJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_PTP2=ON 16*4882a593SmuzhiyunMJPG_STREAMER_DEPENDENCIES += host-pkgconf libgphoto2 17*4882a593Smuzhiyunelse 18*4882a593SmuzhiyunMJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_PTP2=OFF 19*4882a593Smuzhiyunendif 20*4882a593Smuzhiyun 21*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBV4L),y) 22*4882a593SmuzhiyunMJPG_STREAMER_DEPENDENCIES += libv4l 23*4882a593Smuzhiyunendif 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENCV3_LIB_HIGHGUI)$(BR2_PACKAGE_OPENCV3_LIB_IMGPROC)$(BR2_PACKAGE_OPENCV3_LIB_VIDEOIO),yyy) 26*4882a593SmuzhiyunMJPG_STREAMER_CONF_OPTS += \ 27*4882a593Smuzhiyun -DPLUGIN_INPUT_OPENCV=ON \ 28*4882a593Smuzhiyun -DPLUGIN_CVFILTER_CPP=OFF \ 29*4882a593Smuzhiyun -DPLUGIN_CVFILTER_PY=OFF 30*4882a593SmuzhiyunMJPG_STREAMER_DEPENDENCIES += host-pkgconf opencv3 31*4882a593Smuzhiyunelse 32*4882a593SmuzhiyunMJPG_STREAMER_CONF_OPTS += -DPLUGIN_INPUT_OPENCV=OFF 33*4882a593Smuzhiyunendif 34*4882a593Smuzhiyun 35*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_PROTOBUF_C)$(BR2_PACKAGE_ZEROMQ),yy) 36*4882a593SmuzhiyunMJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_ZMQSERVER=ON 37*4882a593SmuzhiyunMJPG_STREAMER_DEPENDENCIES += host-pkgconf protobuf-c zeromq 38*4882a593Smuzhiyunelse 39*4882a593SmuzhiyunMJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_ZMQSERVER=OFF 40*4882a593Smuzhiyunendif 41*4882a593Smuzhiyun 42*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_SDL),y) 43*4882a593SmuzhiyunMJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_VIEWER=ON 44*4882a593SmuzhiyunMJPG_STREAMER_DEPENDENCIES += host-pkgconf sdl 45*4882a593Smuzhiyunelse 46*4882a593SmuzhiyunMJPG_STREAMER_CONF_OPTS += -DPLUGIN_OUTPUT_VIEWER=OFF 47*4882a593Smuzhiyunendif 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun$(eval $(cmake-package)) 50