diff options
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.bb | 64 |
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 @@ | |||
1 | DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" | ||
2 | HOMEPAGE = "http://nodejs.org" | ||
3 | LICENSE = "MIT & BSD" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=914812f2875eef849b5c509cc25dcb4f" | ||
5 | |||
6 | DEPENDS = "openssl" | ||
7 | |||
8 | SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \ | ||
9 | file://fix-hardfloat-detection.patch" | ||
10 | SRC_URI[md5sum] = "fcf8e0f2981f9dd66606a2162a2df55d" | ||
11 | SRC_URI[sha256sum] = "b7bf4cf143ddf46ba5e975761b98a38dd3d72b176fd5d4bb2f9c9e7bbe6c4b15" | ||
12 | |||
13 | S = "${WORKDIR}/node-v${PV}" | ||
14 | |||
15 | # v8 errors out if you have set CCACHE | ||
16 | CCACHE = "" | ||
17 | |||
18 | do_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 | ||
26 | do_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 | |||
45 | do_compile_virtclass-native () { | ||
46 | make BUILDTYPE=Release | ||
47 | } | ||
48 | |||
49 | do_compile () { | ||
50 | export PATH=${WORKDIR}:${PATH} | ||
51 | export CC=gcc | ||
52 | export CXX=g++ | ||
53 | make BUILDTYPE=Release | ||
54 | } | ||
55 | |||
56 | do_install () { | ||
57 | DESTDIR=${D} oe_runmake install | ||
58 | } | ||
59 | |||
60 | RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess python-crypt python-textutils python-netclient " | ||
61 | RDEPENDS_${PN}_virtclass-native = "curl-native python-native" | ||
62 | |||
63 | FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules" | ||
64 | BBCLASSEXTEND = "native" | ||