1################################################################################ 2# 3# mraa 4# 5################################################################################ 6 7MRAA_VERSION = 2.1.0 8MRAA_SITE = $(call github,eclipse,mraa,v$(MRAA_VERSION)) 9MRAA_LICENSE = MIT 10MRAA_LICENSE_FILES = COPYING 11MRAA_INSTALL_STAGING = YES 12 13ifeq ($(BR2_i386),y) 14MRAA_ARCH = i386 15else ifeq ($(BR2_x86_64),y) 16MRAA_ARCH = x86_64 17else ifeq ($(BR2_arm)$(BR2_armeb),y) 18MRAA_ARCH = arm 19else ifeq ($(BR2_aarch64)$(BR2_aarch64_be),y) 20MRAA_ARCH = aarch64 21else ifeq ($(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el),y) 22MRAA_ARCH = mips 23endif 24 25# USBPLAT only makes sense with FTDI4222, which requires the ftd2xx library, 26# which doesn't exist in buildroot 27# Disable C++ as it is used only by FTDI4222 and tests 28MRAA_CONF_OPTS += \ 29 -DBUILDARCH=$(MRAA_ARCH) \ 30 -DBUILDCPP=OFF \ 31 -DBUILDSWIG=OFF \ 32 -DUSBPLAT=OFF \ 33 -DFTDI4222=OFF \ 34 -DENABLEEXAMPLES=OFF \ 35 -DBUILDTESTS=OFF 36 37ifeq ($(BR2_PACKAGE_JSON_C),y) 38MRAA_CONF_OPTS += -DJSONPLAT=ON 39MRAA_DEPENDENCIES += json-c 40else 41MRAA_CONF_OPTS += -DJSONPLAT=OFF 42endif 43 44$(eval $(cmake-package)) 45