summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHirokazu MORIKAWA <morikw2@gmail.com>2019-05-07 12:43:14 +0900
committerHirokazu MORIKAWA <morikw2@gmail.com>2019-05-10 15:03:33 +0900
commit192cd0e792107687c8e4c9256ffb5df0e4e6246d (patch)
tree90c998544e38e44a1917796d9bfd023dc836866e
parent20667b5ea21ce0560627cc979232f0a7e83663fb (diff)
node: add mips64 support
see: https://github.com/openwrt/packages/pull/8796 And remove uclibc depends Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
-rw-r--r--lang/node/Makefile3
-rw-r--r--lang/node/patches/006-mips64_support.patch30
2 files changed, 31 insertions, 2 deletions
diff --git a/lang/node/Makefile b/lang/node/Makefile
index 25816a893..71b023bd0 100644
--- a/lang/node/Makefile
+++ b/lang/node/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=node
PKG_VERSION:=v8.16.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE:=node-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=https://nodejs.org/dist/${PKG_VERSION}
PKG_HASH:=3515e8e01568a5dc4dff3d91a76ebc6724f5fa2fbb58b4b0c5da7b178a2f7340
@@ -39,7 +39,6 @@ define Package/node
URL:=https://nodejs.org/
DEPENDS:=@(HAS_FPU||KERNEL_MIPS_FPU_EMULATOR) @!arc @!armeb \
+libstdcpp +libopenssl +zlib +libnghttp2 +libuv +libhttp-parser \
- +USE_UCLIBC:libpthread +USE_UCLIBC:librt \
+NODEJS_ICU:icu
endef
diff --git a/lang/node/patches/006-mips64_support.patch b/lang/node/patches/006-mips64_support.patch
new file mode 100644
index 000000000..80062450c
--- /dev/null
+++ b/lang/node/patches/006-mips64_support.patch
@@ -0,0 +1,30 @@
+--- a/configure
++++ b/configure
+@@ -60,7 +60,7 @@
+
+ valid_os = ('win', 'mac', 'solaris', 'freebsd', 'openbsd', 'linux',
+ 'android', 'aix')
+-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', 's390', 's390x')
+ valid_arm_float_abi = ('soft', 'softfp', 'hard')
+ valid_arm_fpu = ('vfp', 'vfpv3', 'vfpv3-d16', 'neon')
+@@ -795,6 +795,9 @@
+ if rtn == 'mipsel' and '_LP64' in k:
+ rtn = 'mips64el'
+
++ if rtn == 'mips' and '_LP64' in k:
++ rtn = 'mips64'
++
+ return rtn
+
+
+@@ -877,7 +880,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':