|
|
@ -8,12 +8,12 @@ |
|
|
|
include $(TOPDIR)/rules.mk |
|
|
|
|
|
|
|
PKG_NAME:=node |
|
|
|
PKG_VERSION:=v12.18.4 |
|
|
|
PKG_VERSION:=v12.19.0 |
|
|
|
PKG_RELEASE:=1 |
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
|
|
|
PKG_SOURCE_URL:=https://nodejs.org/dist/$(PKG_VERSION) |
|
|
|
PKG_HASH:=25f03cb18e53b6d0959d0c219e701a85eb4693f526bdda7c72bc6199b364f609 |
|
|
|
PKG_HASH:=3b671c45c493f96d7e018c15110cdbafa4478e5e5cfc9e6eec83cea9e6b551e1 |
|
|
|
|
|
|
|
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>, Adrian Panella <ianchi74@outlook.com> |
|
|
|
PKG_LICENSE:=MIT |
|
|
@ -38,8 +38,8 @@ define Package/node |
|
|
|
SUBMENU:=Node.js |
|
|
|
TITLE:=Node.js is a platform built on Chrome's JavaScript runtime |
|
|
|
URL:=https://nodejs.org/ |
|
|
|
DEPENDS:=@(HAS_FPU||KERNEL_MIPS_FPU_EMULATOR) @!arc @!armeb @!powerpc \
|
|
|
|
+libstdcpp +libopenssl +zlib +libnghttp2 +libuv +libhttp-parser \
|
|
|
|
DEPENDS:=@HAS_FPU @(i386||x86_64||arm||aarch64||mipsel) \
|
|
|
|
+libstdcpp +libopenssl +zlib +libnghttp2 +libuv \
|
|
|
|
+libcares +libatomic +NODEJS_ICU_SYSTEM:icu +NODEJS_ICU_SYSTEM:icu-full-data |
|
|
|
endef |
|
|
|
|
|
|
@ -79,17 +79,16 @@ define Package/node/config |
|
|
|
bool "Disable" |
|
|
|
|
|
|
|
config NODEJS_ICU_SMALL |
|
|
|
depends on !BIG_ENDIAN |
|
|
|
bool "small-icu" |
|
|
|
|
|
|
|
config NODEJS_ICU_SYSTEM |
|
|
|
depends on ARCH_64BIT&&!BIG_ENDIAN |
|
|
|
depends on ARCH_64BIT |
|
|
|
bool "system-icu" |
|
|
|
endchoice |
|
|
|
endif |
|
|
|
endef |
|
|
|
|
|
|
|
NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH))))) |
|
|
|
NODEJS_CPU:=$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))) |
|
|
|
|
|
|
|
ifneq ($(CONFIG_ARCH_64BIT),y) |
|
|
|
FORCE_32BIT:=-m32 |
|
|
@ -97,8 +96,11 @@ endif |
|
|
|
|
|
|
|
MAKE_VARS+= \
|
|
|
|
DESTCPU=$(NODEJS_CPU) \
|
|
|
|
NO_LOAD='cctest.target.mk embedtest.target.mk node_mksnapshot.target.mk' \
|
|
|
|
LD_LIBRARY_PATH=$(STAGING_DIR_HOSTPKG)/share/icu/current/lib |
|
|
|
|
|
|
|
HOST_MAKE_VARS+=NO_LOAD='cctest.target.mk embedtest.target.mk' |
|
|
|
|
|
|
|
CONFIGURE_VARS:= \
|
|
|
|
CC="$(TARGET_CC) $(TARGET_OPTIMIZATION)" \
|
|
|
|
CXX="$(TARGET_CXX) $(TARGET_OPTIMIZATION)" \
|
|
|
@ -113,12 +115,9 @@ CONFIGURE_ARGS:= \ |
|
|
|
--shared-openssl \
|
|
|
|
--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) \
|
|
|
|
$(if $(findstring +vfp",$(CONFIG_CPU_TYPE)),--with-arm-fpu=vfp) \
|
|
|
|
$(if $(findstring +vfpv3",$(CONFIG_CPU_TYPE)),--with-arm-fpu=vfpv3-d16) \
|
|
|
|