diff --git a/Dockerfile b/Dockerfile index 59bcf7606b8..8c605a978be 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,6 +23,7 @@ RUN apt-get update && \ debootstrap \ expect \ flex \ + g++-multilib \ gettext \ git \ gperf \ diff --git a/cross/nodejs/Makefile b/cross/nodejs/Makefile new file mode 100644 index 00000000000..50d863626f0 --- /dev/null +++ b/cross/nodejs/Makefile @@ -0,0 +1,53 @@ +PKG_NAME = nodejs +PKG_VERS = v10.15.3 +PKG_EXT = tar.gz +PKG_DIST_NAME = node-$(PKG_VERS).$(PKG_EXT) +PKG_DIST_SITE = https://nodejs.org/dist/$(PKG_VERS) +PKG_DIR = node-$(PKG_VERS) + +UNSUPPORTED_ARCHS = 88f6281 hi3535 ppc853x qoriq + +HOMEPAGE = http://www.nodejs.org +COMMENT = A JavaScript runtime built on Chrome\'s V8 JavaScript engine. +LICENSE = https://github.com/nodejs/node/raw/master/LICENSE + +CONFIGURE_ARGS = --cross-compiling --dest-os=linux --prefix=$(INSTALL_PREFIX) + +include ../../mk/spksrc.cross-cc.mk + +ifeq ($(findstring $(ARCH),$(ARM5_ARCHES)),$(ARCH)) +ENV += CC_host="gcc -m32" +ENV += CXX_host="g++ -m32" +CONFIGURE_ARGS += --dest-cpu=arm +endif + +ifeq ($(findstring $(ARCH),$(ARM7_ARCHES)),$(ARCH)) +ENV += CC_host="gcc -m32" +ENV += CXX_host="g++ -m32" +CONFIGURE_ARGS += --dest-cpu=arm +endif + +ifeq ($(findstring $(ARCH),$(ARM8_ARCHES)),$(ARCH)) +ENV += CC_host=gcc +ENV += CXX_host=g++ +CONFIGURE_ARGS += --dest-cpu=arm64 +endif + +ifeq ($(findstring $(ARCH),$(x86_ARCHES)),$(ARCH)) +ENV += CC_host="gcc -m32" +ENV += CXX_host="g++ -m32" +CONFIGURE_ARGS += --dest-cpu=x86 +endif + +ifeq ($(findstring $(ARCH),$(x64_ARCHES)),$(ARCH)) +ENV += CC_host=gcc +ENV += CXX_host=g++ +CONFIGURE_ARGS += --dest-cpu=x86_64 --openssl-no-asm +endif + +ifeq ($(findstring $(ARCH),$(PPC_ARCHES)),$(ARCH)) +ENV += CC_host="gcc -m32" +ENV += CXX_host="g++ -m32" +CONFIGURE_ARGS += --dest-cpu=ppc +endif + diff --git a/cross/nodejs/PLIST b/cross/nodejs/PLIST new file mode 100644 index 00000000000..cddb48c5d9e --- /dev/null +++ b/cross/nodejs/PLIST @@ -0,0 +1,10 @@ +bin:bin/node +rsc:bin/npm +rsc:bin/npx +rsc:lib/node_modules/npm/AUTHORS +rsc:lib/node_modules/npm/bin/* +rsc:lib/node_modules/npm/lib/* +rsc:lib/node_modules/npm/LICENSE +rsc:lib/node_modules/npm/node_modules/* +rsc:lib/node_modules/npm/package.json +rsc:lib/node_modules/npm/scripts/* diff --git a/cross/nodejs/digests b/cross/nodejs/digests new file mode 100644 index 00000000000..9338bf2b485 --- /dev/null +++ b/cross/nodejs/digests @@ -0,0 +1,3 @@ +node-v10.15.3.tar.gz SHA1 b64774eea1a877829d6882b92dd86af8d3459498 +node-v10.15.3.tar.gz SHA256 db460a63d057ac015b75bb6a879fcbe2fefaaf22afa4b6f6445b9db61ce2270d +node-v10.15.3.tar.gz MD5 fa0bcf98b918337c0f368bb0674a2489 diff --git a/spk/nodejs/Makefile b/spk/nodejs/Makefile new file mode 100644 index 00000000000..82f65bd24f6 --- /dev/null +++ b/spk/nodejs/Makefile @@ -0,0 +1,19 @@ +SPK_NAME = nodejs +SPK_VERS = 10.15.3 +SPK_REV = 1 +SPK_ICON = src/node.png + +BETA = 1 + +DEPENDS = cross/$(SPK_NAME) + +MAINTAINER = Florian Behrens +DESCRIPTION = A JavaScript runtime built on Chrome's V8 JavaScript engine. +RELOAD_UI = yes +STARTABLE = no +DISPLAY_NAME = Node.js + +HOMEPAGE = https://nodejs.org +LICENSE = https://github.com/nodejs/node/raw/master/LICENSE + +include ../../mk/spksrc.spk.mk diff --git a/spk/nodejs/PLIST b/spk/nodejs/PLIST new file mode 100644 index 00000000000..e69de29bb2d diff --git a/spk/nodejs/src/node.png b/spk/nodejs/src/node.png new file mode 100644 index 00000000000..3ef20e55daf Binary files /dev/null and b/spk/nodejs/src/node.png differ