From 8b301f681854bd876e6f79291f6013fc76c9b4b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 8 Sep 2018 00:22:59 +0200 Subject: Add node-red --- node-red/Makefile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 node-red/Makefile diff --git a/node-red/Makefile b/node-red/Makefile new file mode 100644 index 0000000..1710252 --- /dev/null +++ b/node-red/Makefile @@ -0,0 +1,38 @@ +# +## Copyright (C) 2016-2017 CZ.NIC z.s.p.o. (http://www.nic.cz/) +# +## This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# # +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=node-red +PKG_RELEASE:=1 +PKG_SOURCE_URL:=https://github.com/node-red/node-red.git +PKG_MAINTAINER:=Karel Kočí + +include $(TOPDIR)/package/autopkg-tag.mk +include $(INCLUDE_DIR)/package.mk + +define Package/$(PKG_NAME) + TITLE:=A visual tool for wiring the Internet of Things + DEPENDS:=+node +endef + +EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \ + +define Build/Compile + $(MAKE_FLAGS) \ + npm_config_arch=$(CONFIG_ARCH) \ + npm_config_nodedir=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/ \ + npm_config_cache=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/npm-cache \ + PREFIX="$(PKG_INSTALL_DIR)/usr/" \ + $(STAGING_DIR)/host/bin/npm install -g $(PKG_BUILD_DIR) +endef + +define Package/$(PKG_NAME)/install + $(CP) $(PKG_INSTALL_DIR)/usr $(1)/usr +endef + +$(eval $(call BuildPackage,$(PKG_NAME))) -- cgit v1.2.3