diff options
Diffstat (limited to 'recipes/nodejs')
-rw-r--r-- | recipes/nodejs/files/libev-cross-cc_0.4.0.patch | 13 | ||||
-rw-r--r-- | recipes/nodejs/nodejs_0.4.0.bb | 32 |
2 files changed, 45 insertions, 0 deletions
diff --git a/recipes/nodejs/files/libev-cross-cc_0.4.0.patch b/recipes/nodejs/files/libev-cross-cc_0.4.0.patch new file mode 100644 index 0000000000..2b9838f0c6 --- /dev/null +++ b/recipes/nodejs/files/libev-cross-cc_0.4.0.patch @@ -0,0 +1,13 @@ +diff --git a/deps/libev/wscript b/deps/libev/wscript +index 4f6c9a8..1796749 100644 +--- a/deps/libev/wscript ++++ b/deps/libev/wscript +@@ -58,7 +58,7 @@ def configure(conf): + return 0; + } + """ +- conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=True, ++ conf.check_cc(fragment=code, define_name="HAVE_CLOCK_SYSCALL", execute=False, + msg="Checking for SYS_clock_gettime") + + have_librt = conf.check(lib='rt', uselib_store='RT') diff --git a/recipes/nodejs/nodejs_0.4.0.bb b/recipes/nodejs/nodejs_0.4.0.bb new file mode 100644 index 0000000000..be3d23e02f --- /dev/null +++ b/recipes/nodejs/nodejs_0.4.0.bb @@ -0,0 +1,32 @@ +DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript" +HOMEPAGE = "http://nodejs.org" +LICENSE = "MIT" + +DEPENDS = "openssl" + +SRC_URI = " \ + http://nodejs.org/dist/node-v${PV}.tar.gz \ + file://libev-cross-cc_${PV}.patch \ +" + +SRC_URI[md5sum] = "18f89256751f9b8e27dee8494f508171" +SRC_URI[sha256sum] = "4a30bd9963373cb86a994479bdd451ab3b6f2124f0089493366315da79d3408e" + +S = "${WORKDIR}/node-v${PV}" + +# v8 errors out if you have set CCACHE +CCACHE = "" + +do_configure () { + ./configure --prefix=${prefix} --without-snapshot +} + +do_compile () { + make +} + +do_install () { + DESTDIR=${D} oe_runmake install +} + +BBCLASSEXTEND = "native" |