diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2013-01-30 07:44:26 +0000 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-01-31 12:59:06 +0100 |
| commit | d6d009b2625d6bcc7152d700fce2fdfecd3e0bd7 (patch) | |
| tree | d617beadb91c14145d5b40cb836ed70aa28c24fb /meta-oe/recipes-devtools/nodejs/nodejs_0.6.21.bb | |
| parent | b56f860759930f3478bd195851204e9a2f2c4363 (diff) | |
| download | meta-openembedded-d6d009b2625d6bcc7152d700fce2fdfecd3e0bd7.tar.gz | |
nodejs: update 0.6.x to 0.6.21
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs/nodejs_0.6.21.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_0.6.21.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_0.6.21.bb b/meta-oe/recipes-devtools/nodejs/nodejs_0.6.21.bb new file mode 100644 index 0000000000..588a704ce8 --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs_0.6.21.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] = "0da985a0bf820400af92363b9f453fe4" | ||
| 11 | SRC_URI[sha256sum] = "22265fd07e09c22f1d058156d548e7398c9740210f534e2f848eeab5b9772117" | ||
| 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" | ||
