kumquat-buildroot/package/mraa/mraa.mk
Fabrice Fontaine 5a30732769 package/mraa: bump to version 2.2.0
- Refresh upstream status of first patch
- Drop second patch (already in version)

https://github.com/eclipse/mraa/blob/v2.2.0/docs/changelog.md

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-01-04 18:32:58 +01:00

45 lines
1.1 KiB
Makefile

################################################################################
#
# mraa
#
################################################################################
MRAA_VERSION = 2.2.0
MRAA_SITE = $(call github,eclipse,mraa,v$(MRAA_VERSION))
MRAA_LICENSE = MIT
MRAA_LICENSE_FILES = COPYING
MRAA_INSTALL_STAGING = YES
ifeq ($(BR2_i386),y)
MRAA_ARCH = i386
else ifeq ($(BR2_x86_64),y)
MRAA_ARCH = x86_64
else ifeq ($(BR2_arm)$(BR2_armeb),y)
MRAA_ARCH = arm
else ifeq ($(BR2_aarch64)$(BR2_aarch64_be),y)
MRAA_ARCH = aarch64
else ifeq ($(BR2_mips)$(BR2_mipsel)$(BR2_mips64)$(BR2_mips64el),y)
MRAA_ARCH = mips
endif
# USBPLAT only makes sense with FTDI4222, which requires the ftd2xx library,
# which doesn't exist in buildroot
# Disable C++ as it is used only by FTDI4222 and tests
MRAA_CONF_OPTS += \
-DBUILDARCH=$(MRAA_ARCH) \
-DBUILDCPP=OFF \
-DBUILDSWIG=OFF \
-DUSBPLAT=OFF \
-DFTDI4222=OFF \
-DENABLEEXAMPLES=OFF \
-DBUILDTESTS=OFF
ifeq ($(BR2_PACKAGE_JSON_C),y)
MRAA_CONF_OPTS += -DJSONPLAT=ON
MRAA_DEPENDENCIES += json-c
else
MRAA_CONF_OPTS += -DJSONPLAT=OFF
endif
$(eval $(cmake-package))