summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
committerTudor Florea <tudor.florea@enea.com>2014-10-10 03:20:04 +0200
commit1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch)
tree0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-oe/recipes-devtools/nodejs/nodejs4_0.4.12.bb
downloadmeta-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.bb47
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 @@
1SUMMARY = "nodeJS Evented I/O for V8 JavaScript"
2HOMEPAGE = "http://nodejs.org"
3LICENSE = "MIT & zlib"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=d6237f3a840aef5b7880fb4e49eecfe5"
5
6DEPENDS = "openssl"
7
8SRC_URI = " \
9 http://nodejs.org/dist/node-v${PV}.tar.gz \
10 file://libev-cross-cc_${PV}.patch \
11"
12SRC_URI[md5sum] = "a6375eaa43db5356bf443e25b828ae16"
13SRC_URI[sha256sum] = "c01af05b933ad4d2ca39f63cac057f54f032a4d83cff8711e42650ccee24fce4"
14
15S = "${WORKDIR}/node-v${PV}"
16
17# v8 errors out if you have set CCACHE
18CCACHE = ""
19
20do_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
26do_compile () {
27 make
28}
29
30do_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
46FILES_${PN} += "${libdir}/node4/wafadmin"
47BBCLASSEXTEND = "native"