2015-01-26 21:51:11 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# mjpg-streamer
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Original source is located at
|
|
|
|
# http://sourceforge.net/p/mjpg-streamer/code/commit_browser
|
|
|
|
# oliv3r forked the repo to add support for 3.16 and 3.17 kernels:
|
|
|
|
# http://sourceforge.net/p/mjpg-streamer/patches/14/
|
2016-01-24 15:12:58 +01:00
|
|
|
MJPG_STREAMER_VERSION = bbf32fddfd02a9e072e89e83a5b33e6ca0a7bd4b
|
2015-01-26 21:51:11 +01:00
|
|
|
MJPG_STREAMER_SITE = $(call github,oliv3r,mjpg-streamer,$(MJPG_STREAMER_VERSION))
|
2017-03-30 15:43:32 +02:00
|
|
|
MJPG_STREAMER_LICENSE = GPL-2.0+
|
2015-01-26 21:51:11 +01:00
|
|
|
MJPG_STREAMER_LICENSE_FILES = LICENSE
|
|
|
|
MJPG_STREAMER_DEPENDENCIES = jpeg
|
|
|
|
|
2016-02-14 10:29:36 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L),y)
|
|
|
|
MJPG_STREAMER_DEPENDENCIES += libv4l
|
|
|
|
MJPG_STREAMER_USE_LIBV4L += USE_LIBV4L2=true
|
|
|
|
endif
|
|
|
|
|
2015-01-26 21:51:11 +01:00
|
|
|
define MJPG_STREAMER_BUILD_CMDS
|
2016-02-14 10:29:36 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) $(MJPG_STREAMER_USE_LIBV4L)
|
2015-01-26 21:51:11 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define MJPG_STREAMER_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|