[oe-commits] Eric Bénard : nodejs: add 0.4.0

git version control git at git.openembedded.org
Thu Feb 17 13:41:06 UTC 2011


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 870374197f6d9d65c05cb4278ae92fac7a9e9036
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=870374197f6d9d65c05cb4278ae92fac7a9e9036

Author: Eric Bénard <eric at eukrea.com>
Date:   Tue Feb 15 21:27:22 2011 +0100

nodejs: add 0.4.0

compile tested for armv5, previous node-cross-cc_0.2.6.patch
doesn't seems anymore necessary unless I made a mistake, AJ may
you please check this point ?

Signed-off-by: Eric Bénard <eric at eukrea.com>
Cc: AJ ONeal <coolaj86 at gmail.com>
Acked-by: Khem Raj <raj.khem at gmail.com>
Tested-by: AJ ONeal <coolaj86 at gmail.com>

---

 recipes/nodejs/files/libev-cross-cc_0.4.0.patch |   13 +++++++++
 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 0000000..2b9838f
--- /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 0000000..be3d23e
--- /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"





More information about the Openembedded-commits mailing list