1 ################################################################################
5 ################################################################################
7 TINYCBOR_VERSION
= v0.3
.1
8 TINYCBOR_SITE
= $(call github
,01org
,tinycbor
,$(TINYCBOR_VERSION
))
10 TINYCBOR_LICENSE_FILES
= LICENSE
12 TINYCBOR_DEPENDENCIES
= host-pkgconf
13 TINYCBOR_INSTALL_STAGING
= YES
15 ifeq ($(BR2_PACKAGE_CJSON
),y
)
16 TINYCBOR_DEPENDENCIES
+= cjson
19 TINYCBOR_MAKE_OPTS
= $(TARGET_CONFIGURE_OPTS
) V
=1
21 define TINYCBOR_BUILD_CMDS
22 $(TARGET_MAKE_ENV
) $(MAKE
) $(TINYCBOR_MAKE_OPTS
) -C
$(@D
)
25 define TINYCBOR_INSTALL_STAGING_CMDS
26 $(TARGET_MAKE_ENV
) $(MAKE
) $(TINYCBOR_MAKE_OPTS
) -C
$(@D
) \
27 DESTDIR
=$(STAGING_DIR
) prefix=/usr
install
30 define TINYCBOR_INSTALL_TARGET_CMDS
31 $(TARGET_MAKE_ENV
) $(MAKE
) $(TINYCBOR_MAKE_OPTS
) -C
$(@D
) \
32 DESTDIR
=$(TARGET_DIR
) prefix=/usr
install
35 $(eval
$(generic-package
))