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