2016-07-25 10:37:39 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# tinycbor
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2018-04-02 19:07:53 +02:00
|
|
|
TINYCBOR_VERSION = v0.5.1
|
2017-11-24 19:10:17 +01:00
|
|
|
TINYCBOR_SITE = $(call github,intel,tinycbor,$(TINYCBOR_VERSION))
|
2016-07-25 10:37:39 +02:00
|
|
|
TINYCBOR_LICENSE = MIT
|
|
|
|
TINYCBOR_LICENSE_FILES = LICENSE
|
|
|
|
|
|
|
|
TINYCBOR_DEPENDENCIES = host-pkgconf
|
|
|
|
TINYCBOR_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CJSON),y)
|
|
|
|
TINYCBOR_DEPENDENCIES += cjson
|
|
|
|
endif
|
|
|
|
|
|
|
|
TINYCBOR_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) V=1
|
|
|
|
|
2018-02-06 20:35:05 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
|
|
TINYCBOR_MAKE_OPTS += BUILD_STATIC=1 BUILD_SHARED=0
|
|
|
|
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
|
|
|
|
TINYCBOR_MAKE_OPTS += BUILD_STATIC=1 BUILD_SHARED=1
|
|
|
|
else ifeq ($(BR2_SHARED_LIBS),y)
|
|
|
|
TINYCBOR_MAKE_OPTS += BUILD_STATIC=0 BUILD_SHARED=1
|
|
|
|
endif
|
|
|
|
|
2016-12-16 23:30:22 +01:00
|
|
|
# disabled parallel build because of build failures while
|
|
|
|
# producing the .config file
|
2016-07-25 10:37:39 +02:00
|
|
|
define TINYCBOR_BUILD_CMDS
|
2016-12-16 23:30:22 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE1) $(TINYCBOR_MAKE_OPTS) -C $(@D)
|
2016-07-25 10:37:39 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define TINYCBOR_INSTALL_STAGING_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
|
|
|
|
DESTDIR=$(STAGING_DIR) prefix=/usr install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define TINYCBOR_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
|
|
|
|
DESTDIR=$(TARGET_DIR) prefix=/usr install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|