2015-05-02 21:03:33 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# cc-tool
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
CC_TOOL_VERSION = 0.26
|
|
|
|
CC_TOOL_SITE = http://downloads.sourceforge.net/project/cctool
|
|
|
|
CC_TOOL_SOURCE = cc-tool-$(CC_TOOL_VERSION)-src.tgz
|
2017-03-30 15:43:32 +02:00
|
|
|
CC_TOOL_LICENSE = GPL-2.0
|
2015-05-02 21:03:33 +02:00
|
|
|
CC_TOOL_LICENSE_FILES = COPYING
|
|
|
|
CC_TOOL_DEPENDENCIES = boost libusb
|
|
|
|
|
2015-07-28 17:43:06 +02:00
|
|
|
# we're patching boost.m4
|
|
|
|
CC_TOOL_AUTORECONF = YES
|
|
|
|
|
2015-05-02 21:03:33 +02:00
|
|
|
# Configure script "discovers" boost in /usr/local if not given explicitly
|
|
|
|
CC_TOOL_CONF_OPTS = --with-boost=$(STAGING_DIR)/usr
|
2017-08-20 15:34:15 +02:00
|
|
|
CC_TOOL_CONF_ENV = LIBS="$(CC_TOOL_LIBS)"
|
2015-05-02 21:03:33 +02:00
|
|
|
|
2015-05-05 23:36:45 +02:00
|
|
|
# Help boost.m4 find the Boost Regex library, which needs the pthread
|
|
|
|
# library, but isn't detected using a modern (pkg-config) mechanism.
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2017-08-20 15:34:15 +02:00
|
|
|
CC_TOOL_LIBS += -lpthread
|
2015-05-05 23:36:45 +02:00
|
|
|
endif
|
|
|
|
|
2017-07-29 22:32:20 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
2017-08-20 15:34:15 +02:00
|
|
|
CC_TOOL_LIBS += -latomic
|
2017-07-29 22:32:20 +02:00
|
|
|
endif
|
|
|
|
|
2015-05-02 21:03:33 +02:00
|
|
|
$(eval $(autotools-package))
|