nodejs4: reinstate installing all the files

Cloud9 needs the headers to build the o3-xml binary, using 0.8.x headers makes it crash.

This installs everything namespaced as 'node4' to avoid collisions.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Koen Kooi 2013-04-12 10:04:45 +00:00 committed by Martin Jansa
parent 3628f272d1
commit 4fe1acbe3b

View File

@ -28,8 +28,20 @@ do_compile () {
}
do_install () {
install -d ${D}${bindir}
install -m 0755 build/default/node ${D}${bindir}/node4
DESTDIR=${D} oe_runmake install
# fix namespace conflicts with other nodejs recipes
mv ${D}${bindir}/node ${D}${bindir}/node4
mv ${D}${bindir}/node-waf ${D}${bindir}/node4-waf
mv ${D}${includedir}/node ${D}${includedir}/node4
mv ${D}${libdir}/node ${D}${libdir}/node4
mv ${D}${libdir}/pkgconfig/nodejs.pc ${D}${libdir}/pkgconfig/nodejs4.pc
sed -i -e s:include/node:include/node4: ${D}${libdir}/pkgconfig/nodejs4.pc
mv ${D}${datadir}/man/man1/node.1 ${D}${datadir}/man/man1/node4.1
}
FILES_${PN} += "${libdir}/node4/wafadmin"
BBCLASSEXTEND = "native"