diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb')
-rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb b/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb new file mode 100644 index 0000000000..7e67bcb338 --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb | |||
@@ -0,0 +1,47 @@ | |||
1 | SUMMARY = "nodeJS Evented I/O for V8 JavaScript" | ||
2 | HOMEPAGE = "http://nodejs.org" | ||
3 | LICENSE = "MIT & zlib" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=d6237f3a840aef5b7880fb4e49eecfe5" | ||
5 | |||
6 | DEPENDS = "openssl" | ||
7 | |||
8 | SRC_URI = " \ | ||
9 | http://nodejs.org/dist/node-v${PV}.tar.gz \ | ||
10 | file://libev-cross-cc_${PV}.patch \ | ||
11 | " | ||
12 | SRC_URI[md5sum] = "a6375eaa43db5356bf443e25b828ae16" | ||
13 | SRC_URI[sha256sum] = "c01af05b933ad4d2ca39f63cac057f54f032a4d83cff8711e42650ccee24fce4" | ||
14 | |||
15 | S = "${WORKDIR}/node-v${PV}" | ||
16 | |||
17 | # v8 errors out if you have set CCACHE | ||
18 | CCACHE = "" | ||
19 | |||
20 | do_configure () { | ||
21 | sed -i -e 's:/usr/lib:${STAGING_LIBDIR}:g' wscript | ||
22 | sed -i -e 's:/usr/local/lib:${STAGING_LIBDIR}:g' wscript | ||
23 | ./configure --prefix=${prefix} --without-snapshot | ||
24 | } | ||
25 | |||
26 | do_compile () { | ||
27 | make | ||
28 | } | ||
29 | |||
30 | do_install () { | ||
31 | oe_runmake install DESTDIR=${D} | ||
32 | |||
33 | # fix namespace conflicts with other nodejs recipes | ||
34 | mv ${D}${bindir}/node ${D}${bindir}/node4 | ||
35 | mv ${D}${bindir}/node-waf ${D}${bindir}/node4-waf | ||
36 | |||
37 | mv ${D}${includedir}/node ${D}${includedir}/node4 | ||
38 | |||
39 | mv ${D}${libdir}/node ${D}${libdir}/node4 | ||
40 | mv ${D}${libdir}/pkgconfig/nodejs.pc ${D}${libdir}/pkgconfig/nodejs4.pc | ||
41 | sed -i -e s:include/node:include/node4: ${D}${libdir}/pkgconfig/nodejs4.pc | ||
42 | |||
43 | mv ${D}${datadir}/man/man1/node.1 ${D}${datadir}/man/man1/node4.1 | ||
44 | } | ||
45 | |||
46 | FILES_${PN} += "${libdir}/node4/wafadmin" | ||
47 | BBCLASSEXTEND = "native" | ||