Teach npm how to use eg++. This removes the need to do things like:

env CXX=eg++ npm install nativemodule

OK jasper@
This commit is contained in:
abieber 2016-01-08 16:50:13 +00:00
parent ab2fb02306
commit 5d617819b8
2 changed files with 14 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.39 2016/01/01 04:47:05 abieber Exp $
# $OpenBSD: Makefile,v 1.40 2016/01/08 16:50:13 abieber Exp $
# XXX:
# - Needs __ARM_NR_cacheflush (or the like) to work on arm-based ports.
@ -9,6 +9,7 @@ ONLY_FOR_ARCHS= amd64 i386 powerpc
COMMENT= V8 JavaScript for clients and servers
NODE_VERSION= v4.2.4
REVISION= 0
DISTNAME= node-${NODE_VERSION}
PKGNAME= ${DISTNAME:S/v//g}

View File

@ -1,7 +1,15 @@
$OpenBSD: patch-deps_npm_node_modules_node-gyp_gyp_pylib_gyp_generator_make_py,v 1.2 2014/07/10 19:53:30 landry Exp $
--- deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py.orig Fri May 2 02:47:47 2014
+++ deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py Thu Jul 10 15:58:13 2014
@@ -372,7 +372,7 @@ cmd_touch = touch $@
$OpenBSD: patch-deps_npm_node_modules_node-gyp_gyp_pylib_gyp_generator_make_py,v 1.3 2016/01/08 16:50:13 abieber Exp $
--- deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py.orig Wed Dec 23 09:53:37 2015
+++ deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py Thu Jan 7 15:46:17 2016
@@ -272,6 +272,7 @@ all_deps :=
%(make_global_settings)s
+CXX := eg++
CC.target ?= %(CC.target)s
CFLAGS.target ?= $(CFLAGS)
CXX.target ?= %(CXX.target)s
@@ -365,7 +366,7 @@ cmd_touch = touch $@
quiet_cmd_copy = COPY $@
# send stderr to /dev/null to ignore messages when linking directories.