mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-15 16:07:26 +00:00
nodejs: update to 0.6.18 and fix hardfloat detection
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Eric Bénard <eric@eukrea.com>
This commit is contained in:
committed by
Eric Bénard
parent
372f86378b
commit
10f443c2cd
@@ -0,0 +1,65 @@
|
||||
DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
|
||||
HOMEPAGE = "http://nodejs.org"
|
||||
LICENSE = "MIT & BSD"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=914812f2875eef849b5c509cc25dcb4f"
|
||||
|
||||
DEPENDS = "openssl"
|
||||
|
||||
SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \
|
||||
file://gcc-4.7.patch"
|
||||
|
||||
SRC_URI[md5sum] = "4a3d3123ccc7b9b21c1990fe074e3d14"
|
||||
SRC_URI[sha256sum] = "6cf4311ecbc1700e88f4382a31b3a7017c1572cd641fd06e653fc1692c2cffff"
|
||||
|
||||
S = "${WORKDIR}/node-v${PV}"
|
||||
|
||||
# v8 errors out if you have set CCACHE
|
||||
CCACHE = ""
|
||||
|
||||
do_configure_virtclass-native () {
|
||||
sed -i -e s:\'/usr/lib:\'${STAGING_LIBDIR}:g wscript
|
||||
sed -i -e s:\'/usr/local/lib:\'${STAGING_LIBDIR}:g wscript
|
||||
|
||||
./configure --prefix=${prefix} --without-snapshot
|
||||
}
|
||||
|
||||
# Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround waf+scons
|
||||
do_configure () {
|
||||
echo '#!/bin/sh' > ${WORKDIR}/gcc
|
||||
echo '${CC} $@' >> ${WORKDIR}/gcc
|
||||
|
||||
echo '#!/bin/sh' > ${WORKDIR}/g++
|
||||
echo '${CXX} $@'>> ${WORKDIR}/g++
|
||||
|
||||
chmod +x ${WORKDIR}/gcc ${WORKDIR}/g++
|
||||
|
||||
sed -i -e s:\'/usr/lib:\'${STAGING_LIBDIR}:g wscript
|
||||
sed -i -e s:\'/usr/local/lib:\'${STAGING_LIBDIR}:g wscript
|
||||
|
||||
export PATH=${WORKDIR}:${PATH}
|
||||
export CC=gcc
|
||||
export CXX=g++
|
||||
|
||||
./configure --prefix=${prefix} --without-snapshot
|
||||
}
|
||||
|
||||
do_compile_virtclass-native () {
|
||||
make BUILDTYPE=Release
|
||||
}
|
||||
|
||||
do_compile () {
|
||||
export PATH=${WORKDIR}:${PATH}
|
||||
export CC=gcc
|
||||
export CXX=g++
|
||||
make BUILDTYPE=Release
|
||||
}
|
||||
|
||||
do_install () {
|
||||
DESTDIR=${D} oe_runmake install
|
||||
}
|
||||
|
||||
RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess python-crypt python-textutils python-netclient "
|
||||
RDEPENDS_${PN}_virtclass-native = "curl-native python-native"
|
||||
|
||||
FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules"
|
||||
BBCLASSEXTEND = "native"
|
||||
Reference in New Issue
Block a user