mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-17 06:50:07 +00:00
903e7131ba
* 0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch seems to be resolved by https://chromiumcodereview.appspot.com/10713009 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
43 lines
1.3 KiB
BlitzBasic
43 lines
1.3 KiB
BlitzBasic
DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
|
|
HOMEPAGE = "http://nodejs.org"
|
|
# tools/wrk is under Apache-2.0
|
|
LICENSE = "MIT & BSD & Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=1b19aee7bf088151c559f3ec9f830b44"
|
|
|
|
DEPENDS = "openssl"
|
|
|
|
SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \
|
|
"
|
|
SRC_URI[md5sum] = "a4554450864af89c4420c54349b62295"
|
|
SRC_URI[sha256sum] = "1c960d2822447a9e4f7c46b832ff05e86743033c6643d644975af1cbf6a44fb8"
|
|
|
|
S = "${WORKDIR}/node-v${PV}"
|
|
|
|
# v8 errors out if you have set CCACHE
|
|
CCACHE = ""
|
|
|
|
ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)}"
|
|
ARCHFLAGS ?= ""
|
|
|
|
# Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi
|
|
do_configure () {
|
|
export LD="${CXX}"
|
|
|
|
./configure --prefix=${prefix} --without-snapshot ${ARCHFLAGS}
|
|
}
|
|
|
|
do_compile () {
|
|
export LD="${CXX}"
|
|
make BUILDTYPE=Release
|
|
}
|
|
|
|
do_install () {
|
|
oe_runmake install DESTDIR=${D}
|
|
}
|
|
|
|
RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess python-crypt python-textutils python-netclient "
|
|
RDEPENDS_${PN}_class-native = ""
|
|
|
|
FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace"
|
|
BBCLASSEXTEND = "native"
|