2015-08-02 06:26:13 +00:00
|
|
|
#
|
2018-11-13 22:41:24 +00:00
|
|
|
# Copyright (C) 2015-2018 OpenWrt.org
|
2015-08-02 06:26:13 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libmraa
|
2020-11-11 01:13:37 +00:00
|
|
|
PKG_VERSION:=2.2.0
|
2021-04-27 02:07:04 +00:00
|
|
|
PKG_RELEASE:=3
|
2015-08-02 06:26:13 +00:00
|
|
|
|
2018-10-13 18:16:50 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2020-02-04 04:53:05 +00:00
|
|
|
PKG_SOURCE_URL:=https://codeload.github.com/eclipse/mraa/tar.gz/v$(PKG_VERSION)?
|
2020-11-11 01:13:37 +00:00
|
|
|
PKG_HASH:=076669bee8423ffef3065735b293a329020be86630fea457174dbfcc67a0554a
|
2018-10-13 18:16:50 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/mraa-$(PKG_VERSION)
|
2015-08-02 06:26:13 +00:00
|
|
|
|
2018-11-13 22:41:24 +00:00
|
|
|
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>, Hirokazu MORIKAWA <morikw2@gmail.com>
|
|
|
|
PKG_LICENSE:=MIT
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2015-08-02 06:26:13 +00:00
|
|
|
|
2021-04-27 02:07:04 +00:00
|
|
|
PKG_BUILD_DEPENDS:=swig/host
|
2018-10-13 18:16:50 +00:00
|
|
|
CMAKE_INSTALL:=1
|
2023-03-23 07:39:01 +00:00
|
|
|
PKG_BUILD_FLAGS:=no-mips16
|
2020-04-18 10:29:06 +00:00
|
|
|
PYTHON3_PKG_BUILD:=0
|
2018-10-13 18:16:50 +00:00
|
|
|
|
2015-08-02 06:26:13 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-10 23:27:06 +00:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2020-04-18 10:29:06 +00:00
|
|
|
include ../../lang/python/python3-package.mk
|
2015-08-02 06:26:13 +00:00
|
|
|
|
2021-03-04 22:45:01 +00:00
|
|
|
CMAKE_OPTIONS += \
|
|
|
|
-DENABLEEXAMPLES=0 \
|
2021-04-27 02:07:04 +00:00
|
|
|
-DBUILDSWIGNODE=OFF \
|
2021-06-19 05:37:35 +00:00
|
|
|
-DBUILDTESTS=OFF \
|
2020-08-25 08:39:31 +00:00
|
|
|
-DFIRMATA=ON
|
2015-08-02 06:26:13 +00:00
|
|
|
|
2018-11-13 22:41:24 +00:00
|
|
|
define Package/libmraa/Default
|
2015-08-02 06:26:13 +00:00
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2018-11-13 22:41:24 +00:00
|
|
|
SUBMENU:=IoT
|
2020-02-04 04:53:05 +00:00
|
|
|
TITLE:=Eclipse MRAA lowlevel IO library
|
|
|
|
URL:=https://projects.eclipse.org/projects/iot.mraa
|
2018-11-13 22:41:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmraa/Default/description
|
|
|
|
Libmraa is a C/C++ library with bindings to Java, Python and JavaScript to interface
|
|
|
|
with the IO on Galileo, Edison & other platforms, with a structured and sane API where
|
|
|
|
port names/numbering matches the board that you are on. Use of libmraa does not tie you
|
|
|
|
to specific hardware with board detection done at runtime you can create portable code
|
|
|
|
that will work across the supported platforms.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmraa
|
|
|
|
$(call Package/libmraa/Default)
|
2020-02-04 04:53:05 +00:00
|
|
|
TITLE:=Eclipse MRAA lowlevel IO C/C++ library
|
2023-06-12 04:57:05 +00:00
|
|
|
DEPENDS:=+libstdcpp +libjson-c @!arc @!armeb @!powerpc @!riscv64
|
2018-11-13 22:41:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmraa/description
|
|
|
|
$(call Package/libmraa/Default/description)
|
|
|
|
|
|
|
|
This package contains the C/C++ libraries.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmraa-python3
|
|
|
|
$(call Package/libmraa/Default)
|
2020-02-04 04:53:05 +00:00
|
|
|
TITLE:=Eclipse MRAA lowlevel IO Python3 library
|
2020-08-25 08:39:31 +00:00
|
|
|
DEPENDS:=+libmraa +python3-light
|
2018-11-13 22:41:24 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmraa-python3/description
|
|
|
|
$(call Package/libmraa/Default/description)
|
|
|
|
|
|
|
|
This package contains the Python3 libraries.
|
2015-08-02 06:26:13 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmraa/install
|
2018-11-13 22:41:24 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmraa.so* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/mraa-* $(1)/usr/bin/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libmraa-python3/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/python$(PYTHON3_VERSION)/site-packages/* \
|
|
|
|
$(1)/usr/lib/python$(PYTHON3_VERSION)/site-packages/
|
2015-08-02 06:26:13 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libmraa))
|
2018-11-13 22:41:24 +00:00
|
|
|
$(eval $(call BuildPackage,libmraa-python3))
|