summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/nodejs/nodejs_0.6.20.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs/nodejs_0.6.20.bb')
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs_0.6.20.bb64
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_0.6.20.bb b/meta-oe/recipes-devtools/nodejs/nodejs_0.6.20.bb
new file mode 100644
index 000000000..77ed388d3
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_0.6.20.bb
@@ -0,0 +1,64 @@
1DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
2HOMEPAGE = "http://nodejs.org"
3LICENSE = "MIT & BSD"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=914812f2875eef849b5c509cc25dcb4f"
5
6DEPENDS = "openssl"
7
8SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \
9 file://fix-hardfloat-detection.patch"
10SRC_URI[md5sum] = "fcf8e0f2981f9dd66606a2162a2df55d"
11SRC_URI[sha256sum] = "b7bf4cf143ddf46ba5e975761b98a38dd3d72b176fd5d4bb2f9c9e7bbe6c4b15"
12
13S = "${WORKDIR}/node-v${PV}"
14
15# v8 errors out if you have set CCACHE
16CCACHE = ""
17
18do_configure_virtclass-native () {
19 sed -i -e s:\'/usr/lib:\'${STAGING_LIBDIR}:g wscript
20 sed -i -e s:\'/usr/local/lib:\'${STAGING_LIBDIR}:g wscript
21
22 ./configure --prefix=${prefix} --without-snapshot
23}
24
25# Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround waf+scons
26do_configure () {
27 echo '#!/bin/sh' > ${WORKDIR}/gcc
28 echo '${CC} $@' >> ${WORKDIR}/gcc
29
30 echo '#!/bin/sh' > ${WORKDIR}/g++
31 echo '${CXX} $@'>> ${WORKDIR}/g++
32
33 chmod +x ${WORKDIR}/gcc ${WORKDIR}/g++
34
35 sed -i -e s:\'/usr/lib:\'${STAGING_LIBDIR}:g wscript
36 sed -i -e s:\'/usr/local/lib:\'${STAGING_LIBDIR}:g wscript
37
38 export PATH=${WORKDIR}:${PATH}
39 export CC=gcc
40 export CXX=g++
41
42 ./configure --prefix=${prefix} --without-snapshot
43}
44
45do_compile_virtclass-native () {
46 make BUILDTYPE=Release
47}
48
49do_compile () {
50 export PATH=${WORKDIR}:${PATH}
51 export CC=gcc
52 export CXX=g++
53 make BUILDTYPE=Release
54}
55
56do_install () {
57 DESTDIR=${D} oe_runmake install
58}
59
60RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess python-crypt python-textutils python-netclient "
61RDEPENDS_${PN}_virtclass-native = "curl-native python-native"
62
63FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules"
64BBCLASSEXTEND = "native"