Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
junhui93
packages
提交
49a10f02
P
packages
项目概览
junhui93
/
packages
接近 1 年 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
packages
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
49a10f02
编写于
2月 24, 2020
作者:
L
LEAN-ESX
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
node: bump version
上级
b4ba727e
变更
26
展开全部
隐藏空白更改
内联
并排
Showing
26 changed file
with
992 addition
and
509 deletion
+992
-509
lang/node-arduino-firmata/Makefile
lang/node-arduino-firmata/Makefile
+29
-25
lang/node-arduino-firmata/files/usr/lib/node/arduino-firmata/lib/arduino-firmata.js
...files/usr/lib/node/arduino-firmata/lib/arduino-firmata.js
+238
-249
lang/node-cylon/Makefile
lang/node-cylon/Makefile
+33
-26
lang/node-hid/Makefile
lang/node-hid/Makefile
+39
-24
lang/node-hid/patches/000-support_musl.patch
lang/node-hid/patches/000-support_musl.patch
+11
-0
lang/node-homebridge/Makefile
lang/node-homebridge/Makefile
+72
-0
lang/node-homebridge/files/homebridge.init
lang/node-homebridge/files/homebridge.init
+18
-0
lang/node-javascript-obfuscator/Makefile
lang/node-javascript-obfuscator/Makefile
+104
-0
lang/node-mozilla-iot-gateway/Makefile
lang/node-mozilla-iot-gateway/Makefile
+0
-71
lang/node-mozilla-iot-gateway/files/mozilla-iot-gateway.init
lang/node-mozilla-iot-gateway/files/mozilla-iot-gateway.init
+0
-12
lang/node-serialport-bindings/Makefile
lang/node-serialport-bindings/Makefile
+74
-0
lang/node-serialport-bindings/patches/000-powerpc_termios_header.patch
...ialport-bindings/patches/000-powerpc_termios_header.patch
+16
-0
lang/node-serialport/Makefile
lang/node-serialport/Makefile
+31
-25
lang/node-serialport/patches/001-turn_off_depends.patch
lang/node-serialport/patches/001-turn_off_depends.patch
+10
-0
lang/node/Makefile
lang/node/Makefile
+64
-41
lang/node/patches/001-hardfloat.patch
lang/node/patches/001-hardfloat.patch
+1
-1
lang/node/patches/002-addr_info.patch
lang/node/patches/002-addr_info.patch
+2
-2
lang/node/patches/003-path.patch
lang/node/patches/003-path.patch
+8
-8
lang/node/patches/004-musl_support.patch
lang/node/patches/004-musl_support.patch
+61
-0
lang/node/patches/004-node_crypto_include_cmath.patch
lang/node/patches/004-node_crypto_include_cmath.patch
+0
-25
lang/node/patches/006-mips64_support.patch
lang/node/patches/006-mips64_support.patch
+30
-0
lang/node/patches/007-fix_host_build_on_macos.patch
lang/node/patches/007-fix_host_build_on_macos.patch
+11
-0
lang/node/patches/008-deps_v8_fix_big_endian.patch
lang/node/patches/008-deps_v8_fix_big_endian.patch
+11
-0
lang/node/patches/999-delete_unnecessary_libraries_for_host_execute.patch
...s/999-delete_unnecessary_libraries_for_host_execute.patch
+78
-0
lang/node/patches/999-fix_missing_llhttp_depends.patch
lang/node/patches/999-fix_missing_llhttp_depends.patch
+14
-0
lang/node/patches/999-v8_this_build_method_will_be_deprecated.patch
...patches/999-v8_this_build_method_will_be_deprecated.patch
+37
-0
未找到文件。
lang/node-arduino-firmata/Makefile
浏览文件 @
49a10f02
...
...
@@ -10,19 +10,16 @@ include $(TOPDIR)/rules.mk
PKG_NPM_NAME
:=
arduino-firmata
PKG_NAME
:=
node-
$(PKG_NPM_NAME)
PKG_VERSION
:=
0.3.4
PKG_RELEASE
:=
1
PKG_RELEASE
:=
3
PKG_SOURCE_PROTO
:=
git
PKG_SOURCE_URL
:=
https://github.com/shokai/node-arduino-firmata.git
PKG_SOURCE_VERSION
:=
v0.3.4
PKG_SOURCE_SUBDIR
:=
$(PKG_NAME)
-
$(PKG_SOURCE_VERSION)
PKG_SOURCE
:=
$(PKG_NAME)
-
$(PKG_SOURCE_VERSION)
.tar.gz
#PKG_MIRROR_HASH:=b7a498ccf70e466503e72d38ae5b474e91416b6c9842fd167dff249357b0dc37
PKG_SOURCE
:=
$(PKG_NPM_NAME)
-
$(PKG_VERSION)
.tgz
PKG_SOURCE_URL
:=
https://registry.npmjs.org/
$(PKG_NPM_NAME)
/-/
PKG_HASH
:=
d7157e02867eae82887cb5e17b90c963fe7489bacd464110bfd20c672b8d5a98
PKG_BUILD_DEPENDS
:=
node/host
PKG_
NODE_VERSION
:=
8.10.
0
PKG_
USE_MIPS16
:=
0
PKG_MAINTAINER
:=
John Crispin <blogic@openwrt.org
>
PKG_MAINTAINER
:=
Hirokazu MORIKAWA <morikw2@gmail.com
>
PKG_LICENSE
:=
MIT
PKG_LICENSE_FILES
:=
LICENSE.txt
...
...
@@ -32,37 +29,44 @@ define Package/node-arduino-firmata
SUBMENU
:=
Node.js
SECTION
:=
lang
CATEGORY
:=
Languages
TITLE
:=
Node.js package to access serial ports
for
reading and writing
URL
:=
https://www.npmjs.
org/package/serialport
TITLE
:=
Arduino Firmata implementation
for
Node.js
URL
:=
https://www.npmjs.
com/package/arduino-firmata
DEPENDS
:=
+node +node-npm +node-serialport
endef
define
Package/node-arduino-firmata/description
Node.js
package
to
access
serial
ports
for
reading
and
writing
OR
Welcome
your
robotic
JavaScript
overlords.
Better
yet,
program
them!
Arduino Firmata protocol (http
:
//firmata.org) implementation on Node.js.
endef
define
Build/Prepare
/bin/tar
xzf
$(DL_DIR)/$(PKG_SOURCE)
-C
$(PKG_BUILD_DIR)
--strip-components
1
$(Build/Patch)
endef
TAR_OPTIONS
+=
--strip-components
1
TAR_CMD
=
$(HOST_TAR)
-C
$(1)
$(TAR_OPTIONS)
EXTRA_LDFLAGS
=
"-L
$(TOOLCHAIN_DIR)
/lib/ -Wl,-rpath-link
$(TOOLCHAIN_DIR)
/lib/"
\
NODEJS_CPU
:=
$(
subst
powerpc,ppc,
$(
subst
aarch64,arm64,
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))))
define
Build/Compile
$(MAKE_VARS)
\
$(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/"
\
npm_config_arch
=
$(NODEJS_CPU)
\
npm_config_target_arch
=
$(NODEJS_CPU)
\
npm_config_build_from_source
=
true
\
npm_config_nodedir
=
$(STAGING_DIR)
/usr/
\
npm_config_prefix
=
$(PKG_INSTALL_DIR)
/usr/
\
npm_config_cache
=
$(TMP_DIR)
/npm-cache
\
npm_config_tmp
=
$(TMP_DIR)
/npm-tmp
\
npm
install
-g
$(PKG_BUILD_DIR)
rm
-rf
$(TMP_DIR)/npm-tmp
rm
-rf
$(TMP_DIR)/npm-cache
endef
define
Package/node-arduino-firmata/install
mkdir
-p
$(1)/usr/lib/node
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/
$(1)/usr/lib/node
rm
-rf
$(1)/usr/lib/node/arduino-firmata/node_modules/serialport/
$(INSTALL_DIR)
$(1)/usr/lib/node/$(PKG_NPM_NAME)
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{package.json,README.md}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{tests,*.txt}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{node_modules,lib}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(CP)
./files/*
$(1)/
endef
$(eval
$(call
BuildPackage,node-arduino-firmata))
lang/node-arduino-firmata/files/usr/lib/node/arduino-firmata/lib/arduino-firmata.js
浏览文件 @
49a10f02
此差异已折叠。
点击以展开。
lang/node-cylon/Makefile
浏览文件 @
49a10f02
...
...
@@ -9,20 +9,19 @@ include $(TOPDIR)/rules.mk
PKG_NPM_NAME
:=
cylon
PKG_NAME
:=
node-
$(PKG_NPM_NAME)
PKG_SRC_NAME
:=
$(PKG_NPM_NAME)
-firmata
PKG_VERSION
:=
0.24.0
PKG_RELEASE
:=
1
PKG_RELEASE
:=
3
PKG_SOURCE_PROTO
:=
git
PKG_SOURCE_URL
:=
https://github.com/hybridgroup/cylon-firmata.git
PKG_SOURCE_VERSION
:=
a930f8446f23ec2cb28aadeff54b79ab7704e3a0
PKG_SOURCE_SUBDIR
:=
$(PKG_NAME)
-
$(PKG_SOURCE_VERSION)
PKG_SOURCE
:=
$(PKG_NAME)
-
$(PKG_SOURCE_VERSION)
.tar.gz
PKG_MIRROR_HASH
:=
dceb75539d32f402db0a5f68f2c7e2b52e5547a5ac2dec875d34fd3cc95cce00
PKG_SOURCE
:=
$(PKG_SRC_NAME)
-
$(PKG_VERSION)
.tgz
PKG_SOURCE_URL
:=
https://registry.npmjs.org/
$(PKG_SRC_NAME)
/-/
PKG_HASH
:=
06ac7a8e2e6012577d2f4b043af766bf28a1d3e2a0d50e46629dab4f0bb65104
PKG_SOURCE_SUBDIR
:=
$(PKG_SRC_NAME)
-
$(PKG_VERSION)
PKG_BUILD_DEPENDS
:=
node/host
PKG_
NODE_VERSION
:=
8.10.
0
PKG_
USE_MIPS16
:=
0
PKG_MAINTAINER
:=
John Crispin <blogic@openwrt.org
>
PKG_MAINTAINER
:=
Hirokazu MORIKAWA <morikw2@gmail.com
>
PKG_LICENSE
:=
Apache-2.0
PKG_LICENSE_FILES
:=
LICENSE
...
...
@@ -33,7 +32,7 @@ define Package/node-cylon/default
SECTION
:=
lang
CATEGORY
:=
Languages
TITLE
:=
CylonJS -
$(1)
URL
:=
https://www.npmjs.org/package/cylon
URL
:=
https://www.npmjs.org/package/cylon
-firmata
DEPENDS
:=
+node +node-npm
$(2)
endef
...
...
@@ -54,47 +53,55 @@ define Package/node-cylon-firmata
endef
define
Package/node-cylon/description
JavaScript
Robotics,
By
Your
Command
Next
generation
robotics
framework
with
support
for
36
different
platforms
Get
Started
JavaScript
Robotics,
By
Your
Command
Next
generation
robotics
framework
with
support
for
36
different
platforms
Get
Started
endef
define
Build/Prepare
/bin/tar
xzf
$(DL_DIR)/$(PKG_SOURCE)
-C
$(PKG_BUILD_DIR)
--strip-components
1
$(Build/Patch)
endef
TAR_OPTIONS
+=
--strip-components
1
TAR_CMD
=
$(HOST_TAR)
-C
$(1)
$(TAR_OPTIONS)
EXTRA_LDFLAGS
=
"-L
$(TOOLCHAIN_DIR)
/lib/ -Wl,-rpath-link
$(TOOLCHAIN_DIR)
/lib/"
\
NODEJS_CPU
:=
$(
subst
powerpc,ppc,
$(
subst
aarch64,arm64,
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))))
define
Build/Compile
$(MAKE_VARS)
\
$(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/"
\
npm_config_arch
=
$(NODEJS_CPU)
\
npm_config_target_arch
=
$(NODEJS_CPU)
\
npm_config_build_from_source
=
true
\
npm_config_nodedir
=
$(STAGING_DIR)
/usr/
\
npm_config_prefix
=
$(PKG_INSTALL_DIR)
/usr/
\
npm_config_cache
=
$(TMP_DIR)
/npm-cache
\
npm_config_tmp
=
$(TMP_DIR)
/npm-tmp
\
npm
install
-g
$(PKG_BUILD_DIR)
rm
-rf
$(TMP_DIR)/npm-tmp
rm
-rf
$(TMP_DIR)/npm-cache
endef
define
Package/node-cylon/install
mkdir
-p
$(1)/usr/lib/node/cylon
$(INSTALL_DIR)
$(1)/usr/lib/node/cylon
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/cylon-firmata/node_modules/cylon/*
$(1)/usr/lib/node/cylon/
endef
define
Package/node-cylon-i2c/install
mkdir
-p
$(1)/usr/lib/node/cylon-i2c
$(INSTALL_DIR)
$(1)/usr/lib/node/cylon-i2c
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/cylon-firmata/node_modules/cylon-i2c/*
$(1)/usr/lib/node/cylon-i2c/
endef
define
Package/node-cylon-gpio/install
mkdir
-p
$(1)/usr/lib/node/cylon-gpio
$(INSTALL_DIR)
$(1)/usr/lib/node/cylon-gpio
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/cylon-firmata/node_modules/cylon-gpio/*
$(1)/usr/lib/node/cylon-gpio/
endef
define
Package/node-cylon-firmata/install
mkdir
-p
$(1)/usr/lib/node/cylon-firmata
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/cylon-firmata/{index.js,lib,LICENSE,package.json,README.md,RELEASES.md,spec}
$(1)/usr/lib/node/cylon-firmata/
$(INSTALL_DIR)
$(1)/usr/lib/node/cylon-firmata
$(CP)
$(PKG_BUILD_DIR)/{package.json,LICENSE,*.md}
\
$(1)/usr/lib/node/cylon-firmata/
$(CP)
$(PKG_BUILD_DIR)/{docs,examples,*.js}
\
$(1)/usr/lib/node/cylon-firmata/
$(CP)
$(PKG_BUILD_DIR)/{lib,spec}
\
$(1)/usr/lib/node/cylon-firmata/
endef
$(eval
$(call
BuildPackage,node-cylon))
$(eval
$(call
BuildPackage,node-cylon-i2c))
$(eval
$(call
BuildPackage,node-cylon-gpio))
$(eval
$(call
BuildPackage,node-cylon-firmata))
lang/node-hid/Makefile
浏览文件 @
49a10f02
...
...
@@ -7,26 +7,24 @@
include
$(TOPDIR)/rules.mk
PKG_NPM_NAME
:=
hid
PKG_NAME
:=
node-
$(PKG_NPM_NAME)
PKG_VERSION
:=
0.7.2
PKG_RELEASE
:=
3
PKG_NPM_NAME
:=
node-
hid
PKG_NAME
:=
$(PKG_NPM_NAME)
PKG_VERSION
:=
1.1.0
PKG_RELEASE
:=
1
PKG_SOURCE_PROTO
:=
git
PKG_SOURCE_URL
:=
https://github.com/node-hid/node-hid.git
PKG_SOURCE_SUBDIR
:=
$(PKG_NAME)
-
$(PKG_VERSION)
PKG_SOURCE_VERSION
:=
v0.7.2
PKG_SOURCE
:=
$(PKG_NAME)
-
$(PKG_VERSION)
-
$(PKG_SOURCE_VERSION)
.tar.gz
PKG_MIRROR_HASH
:=
ede801a26a23290ab76d64ab636c3c3e2788030bb830af7006d37444c2a7b2c4
PKG_SOURCE
:=
$(PKG_NPM_NAME)
-
$(PKG_VERSION)
.tgz
PKG_SOURCE_URL
:=
https://registry.npmjs.org/
$(PKG_NPM_NAME)
/-/
PKG_HASH
:=
a128331388b9a0ac443fb55493e37a9b8043f34699c60453f395ad37b7d5f145
PKG_BUILD_DEPENDS
:=
node/host
libudev-fbsd
PKG_
NODE_VERSION
:=
8.10.
0
PKG_BUILD_DEPENDS
:=
node/host
PKG_
USE_MIPS16
:=
0
PKG_MAINTAINER
:=
John Crispin <blogic@openwrt.org
>
PKG_LICENSE
:=
Custom
PKG_MAINTAINER
:=
Hirokazu MORIKAWA <morikw2@gmail.com
>
PKG_LICENSE
:=
MIT or X11
PKG_LICENSE_FILES
:=
include
$(INCLUDE_DIR)/package.mk
include
$(INCLUDE_DIR)/nls.mk
define
Package/node-hid
SUBMENU
:=
Node.js
...
...
@@ -34,34 +32,51 @@ define Package/node-hid
CATEGORY
:=
Languages
TITLE
:=
Node.js package to access HID devices
URL
:=
https://github.com/node-hid/node-hid
DEPENDS
:=
+node +node-npm +libusb-1.0 +hidapi +lib
stdcpp
DEPENDS
:=
+node +node-npm +libusb-1.0 +hidapi +lib
udev-fbsd
$(ICONV_DEPENDS)
endef
define
Package/node-hid/description
Node.js
package
to
access
HID
devices
endef
CPU
:=
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))
TAR_OPTIONS
+=
--strip-components
1
TAR_CMD
=
$(HOST_TAR)
-C
$(1)
$(TAR_OPTIONS)
NODEJS_CPU
:=
$(
subst
powerpc,ppc,
$(
subst
aarch64,arm64,
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))))
TMPNPM
:=
$(
shell
mktemp
-u
XXXXXXXXXX
)
TARGET_CFLAGS
+=
$(FPIC)
-I
$(STAGING_DIR)
/usr/include/libusb-1.0
TARGET_LDFLAGS
+=
$(
if
$(ICONV_FULL)
,-liconv
)
define
Build/Compile
git
init
$(PKG_BUILD_DIR)
$(MAKE_VARS)
\
$(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-
$(TMPNPM)
\
PREFIX
=
"
$(PKG_INSTALL_DIR)
/usr/"
\
npm
install
--build-from-source
--target_arch
=
$(CPU)
-g
$(PKG_BUILD_DIR)
npm_config_arch
=
$(NODEJS_CPU)
\
npm_config_target_arch
=
$(NODEJS_CPU)
\
npm_config_build_from_source
=
true
\
npm_config_nodedir
=
$(STAGING_DIR)
/usr/
\
npm_config_prefix
=
$(PKG_INSTALL_DIR)
/usr/
\
npm_config_cache
=
$(TMP_DIR)
/npm-cache-
$(TMPNPM)
\
npm_config_tmp
=
$(TMP_DIR)
/npm-tmp-
$(TMPNPM)
\
npm
install
-g
$(PKG_BUILD_DIR)
rm
-rf
$(TMP_DIR)/npm-tmp-$(TMPNPM)
rm
-rf
$(TMP_DIR)/npm-cache-$(TMPNPM)
endef
define
Package/node-hid/install
mkdir
-p
$(1)/usr/lib/node/node-hid/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/
$(1)/usr/lib/node/
$(INSTALL_DIR)
$(1)/usr/lib/node/$(PKG_NPM_NAME)
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{package.json,*.md}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{binding.gyp,*.js}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{node_modules,src}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(INSTALL_DIR)
$(1)/usr/lib/node/$(PKG_NPM_NAME)/build/Release
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/build/Release/HID*.node
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/build/Release/
$(INSTALL_DIR)
$(1)/usr/bin
$(LN)
../lib/node/node-hid/src/show-devices.js
$(1)/usr/bin/hid-showdevices
endef
$(eval
$(call
BuildPackage,node-hid))
lang/node-hid/patches/000-support_musl.patch
0 → 100644
浏览文件 @
49a10f02
diff -urN a/hidapi/linux/hid.c b/hidapi/linux/hid.c
--- a/hidapi/linux/hid.c 1985-10-26 17:15:00.000000000 +0900
+++ b/hidapi/linux/hid.c 2019-12-12 11:15:11.164454207 +0900
@@ -24,6 +24,7 @@
/* C */
#include <stdio.h>
#include <string.h>
+#include <stdarg.h>
#include <stdlib.h>
#include <locale.h>
#include <errno.h>
lang/node-homebridge/Makefile
0 → 100644
浏览文件 @
49a10f02
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include
$(TOPDIR)/rules.mk
PKG_NPM_NAME
:=
homebridge
PKG_NAME
:=
node-
$(PKG_NPM_NAME)
PKG_VERSION
:=
0.4.50
PKG_RELEASE
:=
1
PKG_SOURCE
:=
$(PKG_NPM_NAME)
-
$(PKG_VERSION)
.tgz
PKG_SOURCE_URL
:=
http://registry.npmjs.org/
$(PKG_NPM_NAME)
/-/
PKG_HASH
:=
85541254b44c0b70e38ed5e49a9c6a68a20467b99fe0ff3703ca9fc422ce879c
PKG_BUILD_DEPENDS
:=
node/host
PKG_USE_MIPS16
:=
0
PKG_MAINTAINER
:=
Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE
:=
ISC Apache-2.0
PKG_LICENSE_FILES
:=
LICENSE
include
$(INCLUDE_DIR)/package.mk
define
Package/node-homebridge
SUBMENU
:=
Node.js
SECTION
:=
lang
CATEGORY
:=
Languages
TITLE
:=
Node.js HomeKit Server
URL
:=
https://www.npmjs.org/package/homebridge
DEPENDS
:=
+node +node-npm
USERID
:=
homebridge:homebridge
endef
define
Package/node-homebridge/description
Homebridge
is
a
lightweight
Node.js
server
you
can
run
on
your
home
network
that
emulates
the
iOS
HomeKit
API
endef
NODEJS_CPU
:=
$(
subst
powerpc,ppc,
$(
subst
aarch64,arm64,
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))))
TMPNPM
:=
$(
shell
mktemp
-u
XXXXXXXXXX
)
TARGET_CFLAGS
+=
$(FPIC)
define
Build/Prepare
$(INSTALL_DIR)
$(PKG_BUILD_DIR)
endef
define
Build/Compile
$(MAKE_VARS)
\
$(MAKE_FLAGS)
\
npm_config_arch
=
$(NODEJS_CPU)
\
npm_config_target_arch
=
$(NODEJS_CPU)
\
npm_config_build_from_source
=
true
\
npm_config_nodedir
=
$(STAGING_DIR)
/usr/
\
npm_config_prefix
=
$(PKG_INSTALL_DIR)
/usr/
\
npm_config_cache
=
$(TMP_DIR)
/npm-cache-
$(TMPNPM)
\
npm_config_tmp
=
$(TMP_DIR)
/npm-tmp-
$(TMPNPM)
\
npm
install
-g
$(DL_DIR)
/
$(PKG_SOURCE)
rm
-rf
$(TMP_DIR)/npm-tmp-$(TMPNPM)
rm
-rf
$(TMP_DIR)/npm-cache-$(TMPNPM)
endef
define
Package/node-homebridge/install
$(INSTALL_DIR)
$(1)/usr/lib/node
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/*
$(1)/usr/lib/node/
$(INSTALL_DIR)
$(1)/usr/bin
$(LN)
../lib/node/homebridge/bin/homebridge
$(1)/usr/bin/homebridge
$(INSTALL_DIR)
$(1)/etc/init.d
$(INSTALL_BIN)
./files/homebridge.init
$(1)/etc/init.d/homebridge
endef
$(eval
$(call
BuildPackage,node-homebridge))
lang/node-homebridge/files/homebridge.init
0 → 100644
浏览文件 @
49a10f02
#!/bin/sh /etc/rc.common
START
=
98
USE_PROCD
=
1
start_service
()
{
[
-d
/usr/share/homebridge
]
||
{
mkdir
-m
0755
-p
/usr/share/homebridge
chmod
0700 /usr/share/homebridge
chown
homebridge:homebridge /usr/share/homebridge
}
procd_open_instance
procd_set_param
command
/usr/bin/homebridge
-U
/usr/share/homebridge
procd_set_param user homebridge
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}
lang/node-javascript-obfuscator/Makefile
0 → 100644
浏览文件 @
49a10f02
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include
$(TOPDIR)/rules.mk
PKG_NPM_NAME
:=
javascript-obfuscator
PKG_NAME
:=
node-
$(PKG_NPM_NAME)
PKG_VERSION
:=
0.24.0
PKG_RELEASE
:=
1
PKG_SOURCE
:=
$(PKG_NPM_NAME)
-
$(PKG_VERSION)
.tgz
PKG_SOURCE_URL
:=
https://registry.npmjs.org/
$(PKG_NPM_NAME)
/-/
PKG_HASH
:=
2312220a65b8d03195837bb8e2555115c9c9910eb08d3077297f5b9133570c26
PKG_BUILD_DEPENDS
:=
node/host
HOST_BUILD_PARALLEL
:=
1
HOST_BUILD_DEPENDS
:=
node/host
PKG_BUILD_PARALLEL
:=
1
PKG_USE_MIPS16
:=
0
PKG_MAINTAINER
:=
Zbynek Kocur <zbynek.kocur@fel.cvut.cz>
PKG_LICENSE
:=
BSD-2-Clause
PKG_LICENSE_FILES
:=
LICENSE.BSD
include
$(INCLUDE_DIR)/host-build.mk
include
$(INCLUDE_DIR)/package.mk
define
Package/node-javascript-obfuscator
SUBMENU
:=
Node.js
SECTION
:=
lang
CATEGORY
:=
Languages
TITLE
:=
JavaScript obfuscator
URL
:=
https://www.npmjs.org/package/javascript-obfuscator
DEPENDS
:=
+node
endef
define
Package/node-javascript-obfuscator/description
JavaScript
obfuscator
is
a
powerful
free
obfuscator
for
JavaScript
with
a
wide
number
of
features
which
provides
protection
for
your
source
code.
endef
TAR_OPTIONS
+=
--strip-components
1
TAR_CMD
=
$(HOST_TAR)
-C
$(1)
$(TAR_OPTIONS)
NODEJS_CPU
:=
$(
subst
powerpc,ppc,
$(
subst
aarch64,arm64,
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))))
TMPNPM
:=
$(
shell
mktemp
-u
XXXXXXXXXX
)
HOSTTMPNPM
:=
$(
shell
mktemp
-u
XXXXXXXXXX
)
TARGET_CFLAGS
+=
$(FPIC)
TARGET_CPPFLAGS
+=
$(FPIC)
define
Build/Compile
$(MAKE_VARS)
\
$(MAKE_FLAGS)
\
npm_config_arch
=
$(NODEJS_CPU)
\
npm_config_target_arch
=
$(NODEJS_CPU)
\
npm_config_build_from_source
=
true
\
npm_config_nodedir
=
$(STAGING_DIR)
/usr/
\
npm_config_prefix
=
$(PKG_INSTALL_DIR)
/usr/
\
npm_config_cache
=
$(TMP_DIR)
/npm-cache-
$(TMPNPM)
\
npm_config_tmp
=
$(TMP_DIR)
/npm-tmp-
$(TMPNPM)
\
npm
install
-g
$(PKG_BUILD_DIR)
rm
-rf
$(TMP_DIR)/npm-tmp-$(TMPNPM)
rm
-rf
$(TMP_DIR)/npm-cache-$(TMPNPM)
endef
define
Package/node-javascript-obfuscator/install
$(INSTALL_DIR)
$(1)/usr/lib/node/$(PKG_NPM_NAME)
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{package.json,LICENSE.BSD}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/README.md
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{node_modules,bin,dist}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(INSTALL_DIR)
$(1)/usr/bin
$(LN)
../lib/node/javascript-obfuscator/bin/javascript-obfuscator
$(1)/usr/bin/javascript-obfuscator
endef
define
Host/Compile
$(HOST_MAKE_VARS)
\
npm_config_nodedir
=
$(STAGING_DIR)
/usr/
\
npm_config_prefix
=
$(HOST_INSTALL_DIR)
/usr/
\
npm_config_cache
=
$(TMP_DIR)
/npm-cache-
$(HOSTTMPNPM)
\
npm_config_tmp
=
$(TMP_DIR)
/npm-tmp-
$(HOSTTMPNPM)
\
npm
install
-g
--no-optional
$(HOST_BUILD_DIR)
rm
-rf
$(TMP_DIR)/npm-tmp-$(HOSTTMPNPM)
rm
-rf
$(TMP_DIR)/npm-cache-$(HOSTTMPNPM)
endef
define
Host/Install
$(INSTALL_DIR)
$(1)/lib/node_modules/$(PKG_NPM_NAME)
$(CP)
$(HOST_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{package.json,LICENSE.BSD}
\
$(1)/lib/node_modules/$(PKG_NPM_NAME)/
$(CP)
$(HOST_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/README.md
\
$(1)/lib/node_modules/$(PKG_NPM_NAME)/
$(CP)
$(HOST_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{node_modules,bin,dist}
\
$(1)/lib/node_modules/$(PKG_NPM_NAME)/
$(INSTALL_DIR)
$(1)/bin
$(LN)
../lib/node_modules/javascript-obfuscator/bin/javascript-obfuscator
$(1)/bin/javascript-obfuscator
endef
$(eval
$(call
HostBuild))
$(eval
$(call
BuildPackage,node-javascript-obfuscator))
lang/node-mozilla-iot-gateway/Makefile
已删除
100644 → 0
浏览文件 @
b4ba727e
#
# Copyright (C) 2018 Sartura Ltd.
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include
$(TOPDIR)/rules.mk
PKG_NPM_NAME
:=
mozilla-iot-gateway
PKG_NAME
:=
node-
$(PKG_NPM_NAME)
PKG_VERSION
:=
0.3.1
PKG_RELEASE
:=
1
PKG_SOURCE_PROTO
:=
git
PKG_SOURCE_URL
:=
https://github.com/mozilla-iot/gateway.git
PKG_SOURCE_SUBDIR
:=
$(PKG_NAME)
-
$(PKG_VERSION)
PKG_SOURCE_VERSION
:=
v
$(PKG_VERSION)
PKG_SOURCE
:=
$(PKG_NAME)
-
$(PKG_VERSION)
.tar.gz
PKG_MIRROR_HASH
:=
ba05bc3e93c36768244df922434e7132c2dae85a1ff9e3213beea087a4844d11
PKG_BUILD_DEPENDS
:=
node/host openzwave
PKG_MAINTAINER
:=
Marko Ratkaj <marko.ratkaj@sartura.hr>
PKG_LICENSE
:=
MPL-2.0
PKG_LICENSE_FILES
:=
LICENSE
include
$(INCLUDE_DIR)/package.mk
define
Package/node-mozilla-iot-gateway
SUBMENU
:=
Node.js
SECTION
:=
lang
CATEGORY
:=
Languages
TITLE
:=
Things Gateway by Mozilla
URL
:=
https://iot.mozilla.org/gateway/
DEPENDS
:=
+node +node-npm +libopenzwave +python +openssl-util
endef
define
Package/node-mozilla-iot-gateway/description
Build
Your
Own
Web
of
Things
Gateway.
The
"Web of Things"
(WoT)
is
the
idea
of
taking
the
lessons
learned
from
the
World
Wide
Web
and
applying
them
to
IoT.
It's
about
creating
a
decentralized
Internet
of
Things
by
giving
Things
URLs
on
the
web
to
make
them
linkable
and
discoverable,
and
defining
a
standard
data
model
and
APIs
to
make
them
interoperable.
endef
CPU
:=
$(
subst
powerpc,ppc,
$(
subst
aarch64,arm64,
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))))
define
Build/Compile
$(MAKE_VARS)
\
$(MAKE_FLAGS)
\
npm_config_arch
=
$(CONFIG_ARCH)
\
npm_config_nodedir
=
$(STAGING_DIR)
/usr/
\
npm_config_cache
=
$(TMP_DIR)
/npm-cache
\
npm_config_tmp
=
$(TMP_DIR)
/npm-tmp
\
PREFIX
=
"
$(PKG_INSTALL_DIR)
/usr/"
\
$(STAGING_DIR_HOSTPKG)
/bin/npm
install
--build-from-source
--target_arch
=
$(CPU)
-g
$(DL_DIR)
/
$(PKG_SOURCE)
endef
define
Package/node-mozilla-iot-gateway/install
$(INSTALL_DIR)
$(1)/opt/mozilla-iot/gateway
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/things-gateway/*
$(1)/opt/mozilla-iot/gateway
$(STAGING_DIR_HOSTPKG)/bin/npm
--prefix
=
$(1)
/opt/mozilla-iot/gateway
install
$(1)
/opt/mozilla-iot/gateway
$(LN)
../constants.js
$(1)/opt/mozilla-iot/gateway/src/addons/addon-constants.js
$(LN)
/tmp/mozilla-iot/gateway/run-app.log
$(1)/opt/mozilla-iot/gateway/run-app.log
$(INSTALL_DIR)
$(1)/etc/init.d
$(INSTALL_BIN)
./files/mozilla-iot-gateway.init
$(1)/etc/init.d/mozilla-iot-gateway
endef
$(eval
$(call
BuildPackage,node-mozilla-iot-gateway))
lang/node-mozilla-iot-gateway/files/mozilla-iot-gateway.init
已删除
100644 → 0
浏览文件 @
b4ba727e
#!/bin/sh /etc/rc.common
START
=
99
_npm
=
/usr/bin/npm
start
()
{
mkdir
-p
/tmp/mozilla-iot/gateway/
cd
/opt/mozilla-iot/gateway/
$_npm
start &> /tmp/mozilla-iot/gateway/run-app.log &
}
lang/node-serialport-bindings/Makefile
0 → 100644
浏览文件 @
49a10f02
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include
$(TOPDIR)/rules.mk
PKG_NPM_SCOPE
:=
serialport
PKG_NPM_NAME
:=
bindings
PKG_NAME
:=
node-
$(PKG_NPM_SCOPE)
-
$(PKG_NPM_NAME)
PKG_VERSION
:=
8.0.4
PKG_RELEASE
:=
1
PKG_SOURCE
:=
$(PKG_NPM_NAME)
-
$(PKG_VERSION)
.tgz
PKG_SOURCE_URL
:=
https://registry.npmjs.org/@
$(PKG_NPM_SCOPE)
/
$(PKG_NPM_NAME)
/-/
PKG_HASH
:=
fd48dba7fd4de42d9908e33c21cd028345c3d481eff668511966313cfac61695
PKG_BUILD_DEPENDS
:=
node/host
PKG_USE_MIPS16
:=
0
PKG_MAINTAINER
:=
Hirokazu MORIKAWA <morikw2@gmail.com>
PKG_LICENSE
:=
MIT
PKG_LICENSE_FILES
:=
LICENSE
include
$(INCLUDE_DIR)/package.mk
define
Package/node-serialport-bindings
SUBMENU
:=
Node.js
SECTION
:=
lang
CATEGORY
:=
Languages
TITLE
:=
SerialPort Bindings
URL
:=
https://www.npmjs.com/package/@serialport/bindings
DEPENDS
:=
+node
endef
define
Package/node-serialport-bindings/description
The
Binding
is
how
Node-SerialPort
talks
to
the
underlying
system.
By
default,
we
auto
detect
Windows,
Linux
and
OS
X,
and
load
the
appropriate
module
for
your
system.
You
can
assign
SerialPort.Binding
to
any
binding
you
like.
endef
TAR_OPTIONS
+=
--strip-components
1
TAR_CMD
=
$(HOST_TAR)
-C
$(1)
$(TAR_OPTIONS)
NODEJS_CPU
:=
$(
subst
powerpc,ppc,
$(
subst
aarch64,arm64,
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))))
TMPNPM
:=
$(
shell
mktemp
-u
XXXXXXXXXX
)
TARGET_CFLAGS
+=
$(FPIC)
TARGET_CPPFLAGS
+=
$(FPIC)
define
Build/Compile
$(MAKE_VARS)
\
$(MAKE_FLAGS)
\
npm_config_arch
=
$(NODEJS_CPU)
\
npm_config_target_arch
=
$(NODEJS_CPU)
\
npm_config_build_from_source
=
true
\
npm_config_nodedir
=
$(STAGING_DIR)
/usr/
\
npm_config_prefix
=
$(PKG_INSTALL_DIR)
/usr/
\
npm_config_cache
=
$(TMP_DIR)
/npm-cache-
$(TMPNPM)
\
npm_config_tmp
=
$(TMP_DIR)
/npm-tmp-
$(TMPNPM)
\
npm
install
-g
--build-from-source
$(PKG_BUILD_DIR)
rm
-rf
$(TMP_DIR)/npm-tmp-$(TMPNPM)
rm
-rf
$(TMP_DIR)/npm-cache-$(TMPNPM)
endef
define
Package/node-serialport-bindings/install
$(INSTALL_DIR)
$(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/{package.json,LICENSE,*.md}
\
$(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/{node_modules,lib}
\
$(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)
$(INSTALL_DIR)
$(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/build/Release
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/build/Release/bindings.node
\
$(1)/usr/lib/node/@$(PKG_NPM_SCOPE)/$(PKG_NPM_NAME)/build/Release/
endef
$(eval
$(call
BuildPackage,node-serialport-bindings))
lang/node-serialport-bindings/patches/000-powerpc_termios_header.patch
0 → 100644
浏览文件 @
49a10f02
--- a/src/serialport_linux.cpp
+++ b/src/serialport_linux.cpp
@@ -1,8 +1,13 @@
#if defined(__linux__)
#include <sys/ioctl.h>
+#if defined(__powerpc__) || defined(__powerpc64__)
+#include <asm-generic/ioctls.h>
+#include <asm-generic/termbits.h>
+#else
#include <asm/ioctls.h>
#include <asm/termbits.h>
+#endif
// Uses the termios2 interface to set nonstandard baud rates
int linuxSetCustomBaudRate(const int fd, const unsigned int baudrate) {
lang/node-serialport/Makefile
浏览文件 @
49a10f02
...
...
@@ -9,18 +9,18 @@ include $(TOPDIR)/rules.mk
PKG_NPM_NAME
:=
serialport
PKG_NAME
:=
node-
$(PKG_NPM_NAME)
PKG_VERSION
:=
6.1.1
PKG_RELEASE
:=
3
PKG_VERSION
:=
8.0.5
PKG_RELEASE
:=
1
PKG_SOURCE
:=
$(PKG_NPM_NAME)
-
$(PKG_VERSION)
.tgz
PKG_SOURCE_URL
:=
http://registry.npmjs.org/
$(PKG_NPM_NAME)
/-/
PKG_HASH
:=
b58c326d217fb0af1639e4ea834d9fca4be16934c486499e2ddac6e52b8dd560
PKG_SOURCE_URL
:=
http
s
://registry.npmjs.org/
$(PKG_NPM_NAME)
/-/
PKG_HASH
:=
d06e67edcc2d2c6489d8634b3bcef46325ecee0b9f8d9243af3518505608213e
PKG_BUILD_DEPENDS
:=
node/host
PKG_
NODE_VERSION
:=
8.10.
0
PKG_
USE_MIPS16
:=
0
PKG_MAINTAINER
:=
John Crispin <blogic@openwrt.org
>
PKG_LICENSE
:=
Custom
PKG_MAINTAINER
:=
Hirokazu MORIKAWA <morikw2@gmail.com
>
PKG_LICENSE
:=
MIT
PKG_LICENSE_FILES
:=
LICENSE
include
$(INCLUDE_DIR)/package.mk
...
...
@@ -29,40 +29,46 @@ define Package/node-serialport
SUBMENU
:=
Node.js
SECTION
:=
lang
CATEGORY
:=
Languages
TITLE
:=
Node.js package to access serial ports
for
reading and writing
URL
:=
https://
www.npmjs.org/package/serialport
DEPENDS
:=
+node +node-npm
TITLE
:=
Node.js package to access serial ports
URL
:=
https://
serialport.io/
DEPENDS
:=
+node +node-npm
+node-serialport-bindings
endef
define
Package/node-serialport/description
Node.js
package
to
access
serial
ports
for
reading
and
writing
OR
Welcome
your
robotic
JavaScript
overlords.
Better
yet,
program
them!
endef
define
Build/Prepare
/bin/tar
xzf
$(DL_DIR)/$(PKG_SOURCE)
-C
$(PKG_BUILD_DIR)
--strip-components
1
$(Build/Patch)
endef
CPU
:=
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))
TAR_OPTIONS
+=
--strip-components
1
TAR_CMD
=
$(HOST_TAR)
-C
$(1)
$(TAR_OPTIONS)
EXTRA_LDFLAGS
=
"
$(FPIC)
-L
$(TOOLCHAIN_DIR)
/lib/ -Wl,-rpath-link
$(TOOLCHAIN_DIR)
/lib/"
\
NODEJS_CPU
:=
$(
subst
powerpc,ppc,
$(
subst
aarch64,arm64,
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))))
TMPNPM
:=
$(
shell
mktemp
-u
XXXXXXXXXX
)
TARGET_CFLAGS
+=
$(FPIC)
define
Build/Compile
$(MAKE_VARS)
\
$(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-
$(TMPNPM)
\
PREFIX
=
"
$(PKG_INSTALL_DIR)
/usr/"
\
npm
install
--build-from-source
--target_arch
=
$(CPU)
-g
$(PKG_BUILD_DIR)
npm_config_arch
=
$(NODEJS_CPU)
\
npm_config_target_arch
=
$(NODEJS_CPU)
\
npm_config_build_from_source
=
true
\
npm_config_nodedir
=
$(STAGING_DIR)
/usr/
\
npm_config_prefix
=
$(PKG_INSTALL_DIR)
/usr/
\
npm_config_cache
=
$(TMP_DIR)
/npm-cache-
$(TMPNPM)
\
npm_config_tmp
=
$(TMP_DIR)
/npm-tmp-
$(TMPNPM)
\
npm
install
-g
--build-from-source
$(PKG_BUILD_DIR)
rm
-rf
$(TMP_DIR)/npm-tmp-$(TMPNPM)
rm
-rf
$(TMP_DIR)/npm-cache-$(TMPNPM)
endef
define
Package/node-serialport/install
mkdir
-p
$(1)/usr/lib/node/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/*
$(1)/usr/lib/node/
$(INSTALL_DIR)
$(1)/usr/lib/node/$(PKG_NPM_NAME)
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{package.json,LICENSE,*.md}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/test.js
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/$(PKG_NPM_NAME)/{node_modules,lib}
\
$(1)/usr/lib/node/$(PKG_NPM_NAME)/
endef
$(eval
$(call
BuildPackage,node-serialport))
lang/node-serialport/patches/001-turn_off_depends.patch
0 → 100644
浏览文件 @
49a10f02
--- a/package.json
+++ b/package.json
@@ -46,7 +46,6 @@
],
"dependencies": {
"@serialport/binding-mock": "^8.0.4",
- "@serialport/bindings": "^8.0.4",
"@serialport/parser-byte-length": "^8.0.4",
"@serialport/parser-cctalk": "^8.0.4",
"@serialport/parser-delimiter": "^8.0.4",
lang/node/Makefile
浏览文件 @
49a10f02
...
...
@@ -8,24 +8,26 @@
include
$(TOPDIR)/rules.mk
PKG_NAME
:=
node
PKG_VERSION
:=
v8.10.0
PKG_RELEASE
:=
3
PKG_SOURCE
:=
node-
$(PKG_VERSION)
.tar.xz
PKG_SOURCE_URL
:=
http://nodejs.org/dist/
${PKG_VERSION}
PKG_HASH
:=
b72d4e71618d6bcbd039b487b51fa7543631a4ac3331d7caf69bdf55b5b2901a
PKG_VERSION
:=
v12.15.0
PKG_RELEASE
:=
1
HOST_BUILD_DEPENDS
:=
python/host
PKG_BUILD_DEPENDS
:=
python/host
PKG_INSTALL
:=
1
PKG_USE_MIPS16
:=
0
HOST_BUILD_PARALLEL
:=
1
PKG_BUILD_PARALLEL
:=
1
PKG_SOURCE
:=
$(PKG_NAME)
-
$(PKG_VERSION)
.tar.xz
PKG_SOURCE_URL
:=
https://nodejs.org/dist/
$(PKG_VERSION)
PKG_HASH
:=
d2fb4fa80ccf321570552b0a6e6b5f2aedeb281a8450207b057cf54c54d5a81b
PKG_MAINTAINER
:=
John Crispin <blogic@openwrt.org>, Adrian Panella <ianchi74@outlook.com>
PKG_LICENSE
:=
MIT
PKG_LICENSE_FILES
:=
LICENSE
PKG_CPE_ID
:=
cpe:/a:nodejs:node.js
HOST_BUILD_DEPENDS
:=
python3/host
HOST_BUILD_PARALLEL
:=
1
PKG_BUILD_DEPENDS
:=
python3/host
PKG_BUILD_PARALLEL
:=
1
PKG_INSTALL
:=
1
PKG_USE_MIPS16
:=
0
PKG_ASLR_PIE
:=
0
include
$(INCLUDE_DIR)/host-build.mk
include
$(INCLUDE_DIR)/package.mk
...
...
@@ -35,14 +37,17 @@ define Package/node
CATEGORY
:=
Languages
SUBMENU
:=
Node.js
TITLE
:=
Node.js is a platform built on Chrome
's JavaScript runtime
URL
:=
http://nodejs.org/
DEPENDS
:=
@(HAS_FPU||KERNEL_MIPS_FPU_EMULATOR) +libstdcpp +libopenssl +zlib +USE_UCLIBC:libpthread +USE_UCLIBC:librt +NODEJS_ICU:icu
URL
:=
https://nodejs.org/
DEPENDS
:=
@(HAS_FPU||KERNEL_MIPS_FPU_EMULATOR) @!arc @!armeb @!powerpc \
+libstdcpp +libopenssl +zlib +libnghttp2 +libuv +libhttp-parser \
+libcares +libatomic +NODEJS_ICU_SYSTEM:icu +NODEJS_ICU_SYSTEM:icu-full-data
endef
define
Package/node/description
Node.js®
is
a
JavaScript
runtime
built
on
Chrome
's V8 JavaScript engine. Node.js uses
an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js'
package
ecosystem,
npm,
is
the
largest
ecosystem
of
open
source
libraries
in
the
world.
***
Requires
GCC/G++
Multilib
on
host
system
to
build
32-bit
target
***
endef
define
Package/node-npm
...
...
@@ -50,7 +55,7 @@ define Package/node-npm
CATEGORY
:=
Languages
SUBMENU
:=
Node.js
TITLE
:=
NPM stands for Node Package Manager
URL
:=
http
://
npmjs.com/
URL
:=
http
s://www.
npmjs.com/
DEPENDS
:=
+node
endef
...
...
@@ -59,33 +64,55 @@ define Package/node-npm/description
endef
define
Package/node/config
menu
"Module Selection"
config
NODEJS_ICU
bool
"enable i18n features"
default
n
endmenu
if
PACKAGE_node
choice
prompt
"i18n features"
default
NODEJS_ICU_NONE
help
Select
i18n
features
config
NODEJS_ICU_NONE
bool
"Disable"
config
NODEJS_ICU_SMALL
depends
on
!BIG_ENDIAN
bool
"small-icu"
config
NODEJS_ICU_SYSTEM
depends
on
ARCH_64BIT&&!BIG_ENDIAN
bool
"system-icu"
endchoice
endif
endef
NODEJS_CPU
:=
$(
subst
powerpc,ppc,
$(
subst
aarch64,arm64,
$(
subst
x86_64,x64,
$(
subst
i386,ia32,
$(ARCH)
))))
ifneq
($(CONFIG_ARCH_64BIT),y)
FORCE_32BIT
:=
-m32
endif
MAKE_VARS
+=
\
DESTCPU=
$(NODEJS_CPU)
DESTCPU=
$(NODEJS_CPU)
\
LD_LIBRARY_PATH=
$(STAGING_DIR_HOSTPKG)
/share/icu/65.1/lib
CONFIGURE_VARS
:=
\
CC="
$(TARGET_CC)
$(TARGET_OPTIMIZATION)
" \
CXX="
$(TARGET_CXX)
$(TARGET_OPTIMIZATION)
" \
CC_host="
$(HOSTCC)
" \
CXX_host="
$(HOSTCXX)
"
CC_host="
$(HOSTCC)
$(FORCE_32BIT)
" \
CXX_host="
$(HOSTCXX)
$(FORCE_32BIT)
"
CONFIGURE_ARGS
:=
\
--dest-cpu=
$(NODEJS_CPU)
\
--dest-os=linux \
--
without-snapshot
\
--
cross-compiling
\
--shared-zlib \
--shared-openssl \
--with-intl=
$(
if
$(CONFIG_NODEJS_ICU)
,system-icu,none
)
\
--shared-nghttp2 \
--shared-libuv \
--shared-http-parser \
--shared-cares \
$(
if
$(CONFIG_NODEJS_ICU_SMALL)
,, \
--with-intl=
$(
if
$(CONFIG_NODEJS_ICU_SYSTEM)
,system-icu,none
))
\
$(
if
$(
findstring
mips,
$(NODEJS_CPU)
)
, \
$(
if
$(CONFIG_SOFT_FLOAT)
,--with-mips-float-abi=soft
))
\
$(
if
$(
findstring
+neon,
$(CONFIG_CPU_TYPE)
)
,--with-arm-fpu=neon
)
\
...
...
@@ -97,30 +124,26 @@ CONFIGURE_ARGS:= \
HOST_CONFIGURE_VARS
:=
HOST_CONFIGURE_ARGS
:=
\
--dest-os=
linux
\
--with
out-snapshot
\
--dest-os=
$(
if
$(
findstring
Darwin,
$(HOST_OS)
)
,mac,linux
)
\
--with
-intl=none
\
--prefix=
$(STAGING_DIR_HOSTPKG)
HOST_CONFIGURE_CMD
:=
python ./configure
define
Build/InstallDev
$(INSTALL_DIR)
$(1)/usr/include
$(CP)
$(PKG_INSTALL_DIR)/usr/include/*
$(1)/usr/include/
endef
define
Package/node/install
mkdir
-p
$(1)/usr/bin
$(
CP
)
$(PKG_INSTALL_DIR)/usr/bin/node
$(1)/usr/bin/
$(INSTALL_DIR)
$(1)/usr/bin
$(
INSTALL_BIN
)
$(PKG_INSTALL_DIR)/usr/bin/node
$(1)/usr/bin/
endef
define
Package/node-npm/install
mkdir
-p
$(1)/usr/bin
$(1)/usr/lib/node_modules/npm/{bin,lib,node_modules}
$(CP)
$(PKG_INSTALL_DIR)/usr/bin/{npm,npx}
$(1)/usr/bin/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/{package.json,LICENSE}
$(1)/usr/lib/node_modules/npm
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/bin/npm-cli.js
$(1)/usr/lib/node_modules/npm/bin
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/bin/npx-cli.js
$(1)/usr/lib/node_modules/npm/bin
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/lib/*
$(1)/usr/lib/node_modules/npm/lib/
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/node_modules/*
$(1)/usr/lib/node_modules/npm/node_modules/
$(INSTALL_DIR)
$(1)/usr/lib/node_modules
$(CP)
$(PKG_INSTALL_DIR)/usr/lib/node_modules/*
$(1)/usr/lib/node_modules/
$(INSTALL_DIR)
$(1)/usr/bin
$(LN)
../lib/node_modules/npm/bin/npm-cli.js
$(1)/usr/bin/npm
$(LN)
../lib/node_modules/npm/bin/npx-cli.js
$(1)/usr/bin/npx
endef
$(eval
$(call
HostBuild))
...
...
lang/node/patches/001-hardfloat.patch
浏览文件 @
49a10f02
--- a/deps/v8/src/base/cpu.cc
+++ b/deps/v8/src/base/cpu.cc
@@ -14
4,6 +144
,7 @@
@@ -14
3,6 +143
,7 @@
".set push\n\t"
".set noreorder\n\t"
".set oddspreg\n\t"
...
...
lang/node/patches/002-addr_info.patch
浏览文件 @
49a10f02
--- a/deps/uv/src/unix/getaddrinfo.c
+++ b/deps/uv/src/unix/getaddrinfo.c
@@ -10
0,6 +100
,7 @@
@@ -10
3,6 +103
,7 @@
int err;
req = container_of(w, uv_getaddrinfo_t, work_req);
+
req->hints->ai_flags &= ~AI_V4MAPPED;
+ req->hints->ai_flags &= ~AI_V4MAPPED;
err = getaddrinfo(req->hostname, req->service, req->hints, &req->addrinfo);
req->retcode = uv__getaddrinfo_translate_error(err);
}
lang/node/patches/003-path.patch
浏览文件 @
49a10f02
--- a/lib/
module
.js
+++ b/lib/
module
.js
@@ -
714,7 +714
,8 @@
} else {
p
refixDir = p
ath.resolve(process.execPath, '..', '..');
}
-
var
paths = [path.resolve(prefixDir, 'lib', 'node')];
+
var
paths = [path.resolve(prefixDir, 'lib', 'node'),
--- a/lib/
internal/modules/cjs/loader
.js
+++ b/lib/
internal/modules/cjs/loader
.js
@@ -
1095,7 +1095
,8 @@
path.resolve(process.execPath, '..') :
path.resolve(process.execPath, '..', '..');
-
let
paths = [path.resolve(prefixDir, 'lib', 'node')];
+
let
paths = [path.resolve(prefixDir, 'lib', 'node'),
+ path.resolve(prefixDir, 'lib', 'node_modules')];
if (homeDir) {
...
...
lang/node/patches/004-musl_support.patch
0 → 100644
浏览文件 @
49a10f02
diff -urN a/deps/v8/src/base/platform/condition-variable.cc b/deps/v8/src/base/platform/condition-variable.cc
--- a/deps/v8/src/base/platform/condition-variable.cc 2019-09-05 00:36:23.000000000 +0900
+++ b/deps/v8/src/base/platform/condition-variable.cc 2019-09-12 15:10:01.063792083 +0900
@@ -16,7 +16,7 @@
ConditionVariable::ConditionVariable() {
#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
- (V8_OS_LINUX && V8_LIBC_GLIBC))
+ V8_OS_LINUX)
// On Free/Net/OpenBSD and Linux with glibc we can change the time
// source for pthread_cond_timedwait() to use the monotonic clock.
pthread_condattr_t attr;
@@ -92,7 +92,7 @@
&native_handle_, &mutex->native_handle(), &ts);
#else
#if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
- (V8_OS_LINUX && V8_LIBC_GLIBC))
+ V8_OS_LINUX)
// On Free/Net/OpenBSD and Linux with glibc we can change the time
// source for pthread_cond_timedwait() to use the monotonic clock.
result = clock_gettime(CLOCK_MONOTONIC, &ts);
diff -urN a/deps/v8/src/base/platform/platform-posix.cc b/deps/v8/src/base/platform/platform-posix.cc
--- a/deps/v8/src/base/platform/platform-posix.cc 2019-09-05 00:36:23.000000000 +0900
+++ b/deps/v8/src/base/platform/platform-posix.cc 2019-09-12 15:10:01.063792083 +0900
@@ -773,7 +773,7 @@
#if V8_OS_MACOSX
// Default on Mac OS X is 512kB -- bump up to 1MB
stack_size = 1 * 1024 * 1024;
-#elif V8_OS_AIX
+#elif V8_OS_AIX || !defined(__GLIBC__)
// Default on AIX is 96kB -- bump up to 2MB
stack_size = 2 * 1024 * 1024;
#endif
diff -urN a/deps/v8/src/codegen/external-reference-table.cc b/deps/v8/src/codegen/external-reference-table.cc
--- a/deps/v8/src/codegen/external-reference-table.cc 2019-09-05 00:36:23.000000000 +0900
+++ b/deps/v8/src/codegen/external-reference-table.cc 2019-09-12 15:09:41.959828134 +0900
@@ -9,7 +9,7 @@
#include "src/ic/stub-cache.h"
#include "src/logging/counters.h"
-#if defined(DEBUG) && defined(V8_OS_LINUX) && !defined(V8_OS_ANDROID)
+#if defined(DEBUG) && defined(V8_OS_LINUX) && !defined(V8_OS_ANDROID) && defined(V8_LIBC_GLIBC)
#define SYMBOLIZE_FUNCTION
#include <execinfo.h>
#include <vector>
diff -urN a/deps/v8/src/compiler-dispatcher/optimizing-compile-dispatcher.cc b/deps/v8/src/compiler-dispatcher/optimizing-compile-dispatcher.cc
--- a/deps/v8/src/compiler-dispatcher/optimizing-compile-dispatcher.cc 2019-09-05 00:36:23.000000000 +0900
+++ b/deps/v8/src/compiler-dispatcher/optimizing-compile-dispatcher.cc 2019-09-12 15:10:01.063792083 +0900
@@ -134,8 +134,10 @@
// The function may have already been optimized by OSR. Simply continue.
// Use a mutex to make sure that functions marked for install
// are always also queued.
- base::MutexGuard access_output_queue_(&output_queue_mutex_);
- output_queue_.push(job);
+ {
+ base::MutexGuard access_output_queue_(&output_queue_mutex_);
+ output_queue_.push(job);
+ }
}
isolate_->stack_guard()->RequestInstallCode();
lang/node/patches/004-node_crypto_include_cmath.patch
已删除
100644 → 0
浏览文件 @
b4ba727e
From 34825d50db18631a92902af3f51ddd27aa074c90 Mon Sep 17 00:00:00 2001
From: Jeroen Roovers <jer-gentoo@users.noreply.github.com>
Date: Fri, 13 Apr 2018 05:54:42 +0200
Subject: [PATCH 2/2] Include cmath ...
... instead of using the C implementations of isnan and isinf
---
src/node_crypto.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 7c0f65a5735..0aa4adbd467 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -44,9 +44,9 @@
#include "StartComAndWoSignData.inc"
#include <algorithm>
+#include <cmath>
#include <errno.h>
#include <limits.h> // INT_MAX
-#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
lang/node/patches/006-mips64_support.patch
0 → 100644
浏览文件 @
49a10f02
--- a/configure.py
+++ b/configure.py
@@ -48,7 +48,7 @@
valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
'android', 'aix', 'cloudabi')
-valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64el', 'ppc',
+valid_arch = ('arm', 'arm64', 'ia32', 'mips', 'mipsel', 'mips64', 'mips64el', 'ppc',
'ppc64', 'x32','x64', 'x86', 'x86_64', 's390x')
valid_arm_float_abi = ('soft', 'softfp', 'hard')
valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
@@ -883,6 +883,9 @@
if rtn == 'mipsel' and '_LP64' in k:
rtn = 'mips64el'
+ if rtn == 'mips' and '_LP64' in k:
+ rtn = 'mips64'
+
return rtn
@@ -981,7 +984,7 @@
if target_arch == 'arm':
configure_arm(o)
- elif target_arch in ('mips', 'mipsel', 'mips64el'):
+ elif target_arch in ('mips', 'mipsel', 'mips64', 'mips64el'):
configure_mips(o)
if flavor == 'aix':
lang/node/patches/007-fix_host_build_on_macos.patch
0 → 100644
浏览文件 @
49a10f02
--- a/tools/gyp/pylib/gyp/generator/make.py
+++ b/tools/gyp/pylib/gyp/generator/make.py
@@ -176,7 +176,7 @@
LINK_COMMANDS_MAC = """\
quiet_cmd_alink = LIBTOOL-STATIC $@
-cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
+cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool /usr/bin/libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
quiet_cmd_link = LINK($(TOOLSET)) $@
cmd_link = $(LINK.$(TOOLSET)) $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -o "$@" $(LD_INPUTS) $(LIBS)
lang/node/patches/008-deps_v8_fix_big_endian.patch
0 → 100644
浏览文件 @
49a10f02
--- a/deps/v8/src/runtime/runtime-utils.h
+++ b/deps/v8/src/runtime/runtime-utils.h
@@ -126,7 +126,7 @@
#if defined(V8_TARGET_LITTLE_ENDIAN)
return x.ptr() | (static_cast<ObjectPair>(y.ptr()) << 32);
#elif defined(V8_TARGET_BIG_ENDIAN)
- return y->ptr() | (static_cast<ObjectPair>(x->ptr()) << 32);
+ return y.ptr() | (static_cast<ObjectPair>(x.ptr()) << 32);
#else
#error Unknown endianness
#endif
lang/node/patches/999-delete_unnecessary_libraries_for_host_execute.patch
0 → 100644
浏览文件 @
49a10f02
--- a/tools/icu/icu-generic.gyp
+++ b/tools/icu/icu-generic.gyp
@@ -517,6 +517,7 @@
'target_name': 'genrb',
'type': 'executable',
'toolsets': [ 'host' ],
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
'dependencies': [ 'icutools' ],
'sources': [
'<@(icu_src_genrb)'
@@ -533,6 +534,7 @@
'target_name': 'iculslocs',
'toolsets': [ 'host' ],
'type': 'executable',
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
'dependencies': [ 'icutools' ],
'sources': [
'iculslocs.cc',
@@ -545,6 +547,7 @@
'target_name': 'icupkg',
'toolsets': [ 'host' ],
'type': 'executable',
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
'dependencies': [ 'icutools' ],
'sources': [
'<@(icu_src_icupkg)',
@@ -556,6 +559,7 @@
'target_name': 'genccode',
'toolsets': [ 'host' ],
'type': 'executable',
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
'dependencies': [ 'icutools' ],
'sources': [
'<@(icu_src_genccode)',
--- a/tools/v8_gypfiles/v8.gyp 2019-06-27 19:12:20.000000000 +0900
+++ b/tools/v8_gypfiles/v8.gyp 2019-07-01 14:40:48.292020880 +0900
@@ -1258,6 +1258,7 @@
{
'target_name': 'bytecode_builtins_list_generator',
'type': 'executable',
+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
'conditions': [
['want_separate_host_toolset', {
'toolsets': ['host'],
@@ -1281,6 +1282,8 @@
{
'target_name': 'mksnapshot',
'type': 'executable',
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
+ 'library_dirs':[ '../../../../staging_dir/hostpkg/share/icu/65.1/lib' ],
'dependencies': [
'v8_base_without_compiler',
'v8_compiler_for_mksnapshot',
@@ -1303,6 +1306,7 @@
{
'target_name': 'torque',
'type': 'executable',
+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
'dependencies': [
'torque_base',
# "build/win:default_exe_manifest",
@@ -1341,6 +1345,7 @@
{
'target_name': 'torque-language-server',
'type': 'executable',
+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
'conditions': [
['want_separate_host_toolset', {
'toolsets': ['host'],
@@ -1368,6 +1373,8 @@
{
'target_name': 'gen-regexp-special-case',
'type': 'executable',
+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
+ 'library_dirs':[ '../../../../staging_dir/hostpkg/share/icu/65.1/lib' ],
'dependencies': [
'v8_libbase',
# "build/win:default_exe_manifest",
lang/node/patches/999-fix_missing_llhttp_depends.patch
0 → 100644
浏览文件 @
49a10f02
diff -urN a/node.gypi b/node.gypi
--- a/node.gypi 2019-09-05 00:36:25.000000000 +0900
+++ b/node.gypi 2019-09-13 09:57:54.073191914 +0900
@@ -142,6 +142,10 @@
'deps/http_parser/http_parser.gyp:http_parser',
'deps/llhttp/llhttp.gyp:llhttp'
],
+ }, {
+ 'dependencies': [
+ 'deps/llhttp/llhttp.gyp:llhttp'
+ ],
} ],
[ 'node_shared_cares=="false"', {
lang/node/patches/999-v8_this_build_method_will_be_deprecated.patch
0 → 100644
浏览文件 @
49a10f02
diff -urN a/configure.py b/configure.py
--- a/configure.py 2019-09-05 00:36:21.000000000 +0900
+++ b/configure.py 2019-09-27 11:49:55.445800884 +0900
@@ -1202,6 +1202,25 @@
options.build_v8_with_gn = FetchDeps(v8_path)
o['variables']['build_v8_with_gn'] = b(options.build_v8_with_gn)
+def configure_v8_deprecated(o):
+ target_arch = options.dest_cpu
+ if target_arch == 'x86':
+ target_arch = 'ia32'
+ if target_arch == 'x86_64':
+ target_arch = 'x64'
+
+ if target_arch in ('mips', 'mips64'):
+ o['variables']['v8_use_snapshot'] = 'false'
+ elif target_arch in ('mipsel', 'mips64el'):
+ o['variables']['v8_enable_embedded_builtins'] = 0
+ elif target_arch == 'x64':
+ if options.with_intl in (None, 'none'):
+ o['variables']['v8_enable_embedded_builtins'] = 0
+ elif target_arch == 'ia32':
+ if options.with_intl in (None, 'none'):
+ o['variables']['v8_enable_embedded_builtins'] = 1
+ else:
+ o['variables']['v8_enable_embedded_builtins'] = 0
def configure_openssl(o):
variables = o['variables']
@@ -1632,6 +1651,7 @@
configure_intl(output)
configure_static(output)
configure_inspector(output)
+configure_v8_deprecated(output)
# variables should be a root level element,
# move everything else to target_defaults
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录