On Tue, Oct 09, 2012 at 01:41:49PM -0600, Aaron Bieber wrote: > Hola, > > Given jeremy@'s recent plv8 port, it seems that we need a shared v8. > > Here is a WIP I have had floating around for a bit. It adds devel/gyp > and devel/v8. > > Also here is a diff to make node play. > > Looking for clue sticks and testing.
Latest version is at http://deftly.net/libv8.tar.gz - changed name to libv8 - resolved -Werror issues on i386 - added d8 - use MAKE_FLAGS vs patching for some options Here is a diff to make databases/node-sqlite3 work: Index: Makefile =================================================================== RCS file: /cvs/ports/databases/node-sqlite3/Makefile,v retrieving revision 1.6 diff -N -u -p Makefile --- Makefile 18 Jul 2012 04:28:40 -0000 1.6 +++ Makefile 10 Oct 2012 00:36:44 -0000 @@ -5,6 +5,8 @@ COMMENT = sqlite3 bindings for Node.js NPM_VERSION = 2.1.5 NPM_NAME = sqlite3 +REVISION=0 + CATEGORIES = databases MAINTAINER = Aaron Bieber <[email protected]> @@ -25,7 +27,12 @@ WANTLIB = sqlite3 BUILD_DEPENDS = ${RUN_DEPENDS} +SUBST_VARS+= LOCALBASE + # needs expresso and further love NO_REGRESS = Yes + +pre-configure: + ${SUBST_CMD} ${WRKDIST}/binding.gyp .include <bsd.port.mk> Index: patches/patch-binding_gyp =================================================================== RCS file: /cvs/ports/databases/node-sqlite3/patches/patch-binding_gyp,v retrieving revision 1.1.1.1 diff -N -u -p patches/patch-binding_gyp --- patches/patch-binding_gyp 10 May 2012 10:46:17 -0000 1.1.1.1 +++ patches/patch-binding_gyp 10 Oct 2012 00:36:44 -0000 @@ -2,9 +2,9 @@ $OpenBSD: patch-binding_gyp,v 1.1.1.1 2012/05/10 10:46 Build against the system sqlite3. ---- binding.gyp.orig Wed May 9 22:13:31 2012 -+++ binding.gyp Wed May 9 22:14:00 2012 -@@ -7,9 +7,13 @@ +--- binding.gyp.orig Mon Apr 23 16:47:08 2012 ++++ binding.gyp Tue Oct 9 18:13:39 2012 +@@ -7,9 +7,15 @@ 'src/node_sqlite3.cc', 'src/statement.cc' ], @@ -13,7 +13,9 @@ Build against the system sqlite3. - ] + 'link_settings': { + 'libraries': [ ++ '-L${LOCALBASE}/lib', + '-lsqlite3', ++ '-lv8', + '-lm', + '-lstdc++' + ],
