diff options
author | Karel Kočí <cynerd@email.cz> | 2018-09-08 00:22:59 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-09-08 00:22:59 +0200 |
commit | 8b301f681854bd876e6f79291f6013fc76c9b4b2 (patch) | |
tree | 1bcacd1bc54266525132c59f89fa2a02d69f9091 | |
parent | 17358e1d95a553388c5aa1d664fd708f80821b6d (diff) | |
download | openwrt-personal-pkgs-8b301f681854bd876e6f79291f6013fc76c9b4b2.tar.gz openwrt-personal-pkgs-8b301f681854bd876e6f79291f6013fc76c9b4b2.tar.bz2 openwrt-personal-pkgs-8b301f681854bd876e6f79291f6013fc76c9b4b2.zip |
Add node-red
-rw-r--r-- | node-red/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
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čí <cynerd@email.cz> + +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))) |