DEVELOPERS: add Romain Naour for linux-syscall-support
[buildroot-gz.git] / package / tinycbor / tinycbor.mk
blob65deacd22b8382689b43b1742020b9aac30d0d6b
1 ################################################################################
3 # tinycbor
5 ################################################################################
7 TINYCBOR_VERSION = v0.4
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 # disabled parallel build because of build failures while
22 # producing the .config file
23 define TINYCBOR_BUILD_CMDS
24 $(TARGET_MAKE_ENV) $(MAKE1) $(TINYCBOR_MAKE_OPTS) -C $(@D)
25 endef
27 define TINYCBOR_INSTALL_STAGING_CMDS
28 $(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
29 DESTDIR=$(STAGING_DIR) prefix=/usr install
30 endef
32 define TINYCBOR_INSTALL_TARGET_CMDS
33 $(TARGET_MAKE_ENV) $(MAKE) $(TINYCBOR_MAKE_OPTS) -C $(@D) \
34 DESTDIR=$(TARGET_DIR) prefix=/usr install
35 endef
37 $(eval $(generic-package))