Skip to content

Commit

Permalink
nodejs: package creation 10.15.3
Browse files Browse the repository at this point in the history
Added g++-multilib package to Dockerfile for 32 bits cross-compilation
Published as beta
  • Loading branch information
florianbehrens authored and ymartin59 committed Jul 26, 2019
1 parent 74d6347 commit b9f7d04
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN apt-get update && \
debootstrap \
expect \
flex \
g++-multilib \
gettext \
git \
gperf \
Expand Down
53 changes: 53 additions & 0 deletions cross/nodejs/Makefile
Original file line number Diff line number Diff line change
@@ -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

10 changes: 10 additions & 0 deletions cross/nodejs/PLIST
Original file line number Diff line number Diff line change
@@ -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/*
3 changes: 3 additions & 0 deletions cross/nodejs/digests
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions spk/nodejs/Makefile
Original file line number Diff line number Diff line change
@@ -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
Empty file added spk/nodejs/PLIST
Empty file.
Binary file added spk/nodejs/src/node.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b9f7d04

Please sign in to comment.