tinycbor: new package
[buildroot-gz.git] / package / tinycbor / tinycbor.mk
blob0be91b7bb72b9ddc828c283c8fab49a2259ac2b5
1 ################################################################################
3 # tinycbor
5 ################################################################################
7 TINYCBOR_VERSION = v0.3.1
8 TINYCBOR_SITE = $(call github,01org,tinycbor,$(TINYCBOR_VERSION))
9 TINYCBOR_LICENSE = MIT
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
17 endif
19 TINYCBOR_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) V=1
21 define TINYCBOR_BUILD_CMDS
22 $(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D)
23 endef
25 define TINYCBOR_INSTALL_STAGING_CMDS
26 $(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
27 DESTDIR=$(STAGING_DIR) prefix=/usr install
28 endef
30 define TINYCBOR_INSTALL_TARGET_CMDS
31 $(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
32 DESTDIR=$(TARGET_DIR) prefix=/usr install
33 endef
35 $(eval $(generic-package))