diff options
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb')
| -rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb new file mode 100644 index 0000000000..839bfa425f --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | SUMMARY = "nodeJS Evented I/O for V8 JavaScript" | ||
| 2 | HOMEPAGE = "http://nodejs.org" | ||
| 3 | LICENSE = "MIT & BSD" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=95a589a3257ab7dfe37d8a8379e3c72d" | ||
| 5 | |||
| 6 | DEPENDS = "openssl" | ||
| 7 | |||
| 8 | inherit pythonnative | ||
| 9 | |||
| 10 | SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \ | ||
| 11 | file://0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch \ | ||
| 12 | " | ||
| 13 | SRC_URI[md5sum] = "25ed6aa5710ac46b867ff3f17a4da1d6" | ||
| 14 | SRC_URI[sha256sum] = "1d63dd42f9bd22f087585ddf80a881c6acbe1664891b1dda3b71306fe9ae00f9" | ||
| 15 | |||
| 16 | S = "${WORKDIR}/node-v${PV}" | ||
| 17 | |||
| 18 | # v8 errors out if you have set CCACHE | ||
| 19 | CCACHE = "" | ||
| 20 | |||
| 21 | ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)}" | ||
| 22 | ARCHFLAGS ?= "" | ||
| 23 | |||
| 24 | # Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi | ||
| 25 | do_configure () { | ||
| 26 | export LD="${CXX}" | ||
| 27 | |||
| 28 | ./configure --prefix=${prefix} --without-snapshot ${ARCHFLAGS} | ||
| 29 | } | ||
| 30 | |||
| 31 | do_compile () { | ||
| 32 | export LD="${CXX}" | ||
| 33 | make BUILDTYPE=Release | ||
| 34 | } | ||
| 35 | |||
| 36 | do_install () { | ||
| 37 | oe_runmake install DESTDIR=${D} | ||
| 38 | } | ||
| 39 | |||
| 40 | RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess python-crypt python-textutils python-netclient " | ||
| 41 | RDEPENDS_${PN}_class-native = "" | ||
| 42 | |||
| 43 | FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace ${libdir}/*" | ||
| 44 | BBCLASSEXTEND = "native" | ||
