node-*: node update to v4.4.4

This commit is contained in:
Hirokazu MORIKAWA
2016-05-11 17:10:49 +09:00
parent 2339a827c2
commit c9115cdf54
6 changed files with 19 additions and 2483 deletions
+7 -5
View File
@@ -9,15 +9,15 @@ include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=serialport
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=1.4.6
PKG_RELEASE:=2
PKG_VERSION:=3.0.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_MD5SUM:=1eb21082e0aa676b8350182a60230808
PKG_MD5SUM:=ea20a17746dd64e72d5f6f2019d9e28d
PKG_BUILD_DEPENDS:=node/host
PKG_NODE_VERSION:=0.12.13
PKG_NODE_VERSION:=4.4.4
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
PKG_LICENSE:=Custom
@@ -43,6 +43,8 @@ define Build/Prepare
$(Build/Patch)
endef
CPU:=$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))
EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \
define Build/Compile
@@ -51,7 +53,7 @@ define Build/Compile
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)
$(STAGING_DIR)/host/bin/npm install --build-from-source --target_arch=$(CPU) -g $(PKG_BUILD_DIR)
endef
define Package/node-serialport/install
@@ -1,11 +0,0 @@
--- a/package.json 2014-05-02 12:02:02.940515727 +0200
+++ b/package.json 2014-05-02 12:03:08.488512762 +0200
@@ -69,7 +71,7 @@
"serialportterm": "./bin/serialportTerminal.js"
},
"scripts": {
- "install": "node-pre-gyp install --fallback-to-build",
+ "install": "node-pre-gyp reinstall --build-from-source --target_arch=${npm_config_arch}",
"test": "grunt --verbose"
}
}