1################################################################################ 2# 3# cc-tool 4# 5################################################################################ 6 7CC_TOOL_VERSION = 0.27 8CC_TOOL_SITE = $(call github,dashesy,cc-tool,v$(CC_TOOL_VERSION)) 9CC_TOOL_LICENSE = GPL-2.0 10CC_TOOL_LICENSE_FILES = COPYING 11CC_TOOL_DEPENDENCIES = boost libusb 12 13# From git 14CC_TOOL_AUTORECONF = YES 15 16# Configure script "discovers" boost in /usr/local if not given explicitly 17CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr 18CC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)" 19 20# Help boost.m4 find the Boost Regex library, which needs the pthread 21# library, but isn't detected using a modern (pkg-config) mechanism. 22ifeq ($(BR2_STATIC_LIBS),y) 23CC_TOOL_LIBS += -lpthread 24endif 25 26ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) 27CC_TOOL_LIBS += -latomic 28endif 29 30$(eval $(autotools-package)) 31