mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-04 19:03:28 +08:00
16359f0fac
Quote the TARGET_CC variable, otherwise, if ccache is enabled: [...] make CC=$TARGET_CC [...] is expanded to e.g. [...] make CC=ccache gcc [...] The build succeeds with "make[2]: Nothing to be done for '[...]gcc'". and the program is compiled at "make install" time, with the default host compiler, resulting in a binary that does not run on the target. Signed-off-by: Nicolas Cavallari <nicolas.cavallari@green-communications.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
26 lines
887 B
Makefile
26 lines
887 B
Makefile
################################################################################
|
|
#
|
|
# 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/
|
|
MJPG_STREAMER_VERSION = 730b5bcdc378b6a201131c6c2620eedbe0f6eb30
|
|
MJPG_STREAMER_SITE = $(call github,oliv3r,mjpg-streamer,$(MJPG_STREAMER_VERSION))
|
|
MJPG_STREAMER_LICENSE = GPLv2+
|
|
MJPG_STREAMER_LICENSE_FILES = LICENSE
|
|
MJPG_STREAMER_DEPENDENCIES = jpeg
|
|
|
|
define MJPG_STREAMER_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D)
|
|
endef
|
|
|
|
define MJPG_STREAMER_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR)/usr install
|
|
endef
|
|
|
|
$(eval $(generic-package))
|