| @@ -1,67 +1,67 @@ | | | @@ -1,67 +1,67 @@ |
1 | # $NetBSD: Makefile,v 1.30 2014/12/28 17:46:17 fhajny Exp $ | | 1 | # $NetBSD: Makefile,v 1.31 2015/01/29 08:44:44 fhajny Exp $ |
2 | | | 2 | |
3 | DISTNAME= node-v0.10.35 | | 3 | DISTNAME= node-v0.10.36 |
4 | CATEGORIES= devel | | 4 | CATEGORIES= devel |
5 | MASTER_SITES= http://nodejs.org/dist/${DISTNAME:S/node-//}/ | | 5 | MASTER_SITES= http://nodejs.org/dist/${DISTNAME:S/node-//}/ |
6 | PKGNAME= ${DISTNAME:S/-v/js-/} | | 6 | PKGNAME= ${DISTNAME:S/-v/js-/} |
7 | | | 7 | |
8 | MAINTAINER= filip@joyent.com | | 8 | MAINTAINER= filip@joyent.com |
9 | HOMEPAGE= http://nodejs.org/ | | 9 | HOMEPAGE= http://nodejs.org/ |
10 | COMMENT= V8 JavaScript for clients and servers | | 10 | COMMENT= V8 JavaScript for clients and servers |
11 | LICENSE= mit | | 11 | LICENSE= mit |
12 | | | 12 | |
13 | HAS_CONFIGURE= yes | | 13 | HAS_CONFIGURE= yes |
14 | USE_TOOLS+= gmake pkg-config | | 14 | USE_TOOLS+= gmake pkg-config |
15 | USE_LANGUAGES= c c++ | | 15 | USE_LANGUAGES= c c++ |
16 | | | 16 | |
17 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 0.10.24 | | 17 | PYTHON_VERSIONS_INCOMPATIBLE= 33 34 # not yet ported as of 0.10.24 |
18 | | | 18 | |
19 | .include "../../mk/bsd.prefs.mk" | | 19 | .include "../../mk/bsd.prefs.mk" |
20 | .include "options.mk" | | 20 | .include "options.mk" |
21 | | | 21 | |
22 | SUBST_CLASSES+= python | | 22 | SUBST_CLASSES+= python |
23 | SUBST_STAGE.python= pre-configure | | 23 | SUBST_STAGE.python= pre-configure |
24 | SUBST_MESSAGE.python= Fixing Python references | | 24 | SUBST_MESSAGE.python= Fixing Python references |
25 | SUBST_FILES.python= node.gyp deps/v8/tools/gyp/v8.gyp | | 25 | SUBST_FILES.python= node.gyp deps/v8/tools/gyp/v8.gyp |
26 | SUBST_VARS.python= PYTHONBIN | | 26 | SUBST_VARS.python= PYTHONBIN |
27 | | | 27 | |
28 | SUBST_CLASSES+= man | | 28 | SUBST_CLASSES+= man |
29 | SUBST_STAGE.man= pre-configure | | 29 | SUBST_STAGE.man= pre-configure |
30 | SUBST_MESSAGE.man= Fixing man path | | 30 | SUBST_MESSAGE.man= Fixing man path |
31 | SUBST_FILES.man= tools/install.py | | 31 | SUBST_FILES.man= tools/install.py |
32 | SUBST_VARS.man= PKGMANDIR | | 32 | SUBST_VARS.man= PKGMANDIR |
33 | | | 33 | |
34 | CONFIG_SHELL= ${PYTHONBIN} | | 34 | CONFIG_SHELL= ${PYTHONBIN} |
35 | CONFIGURE_ARGS+= --prefix=${PREFIX} | | 35 | CONFIGURE_ARGS+= --prefix=${PREFIX} |
36 | | | 36 | |
37 | .if ${OPSYS} == "NetBSD" | | 37 | .if ${OPSYS} == "NetBSD" |
38 | CONFIGURE_ENV+= GYP_DEFINES="OS=netbsd" | | 38 | CONFIGURE_ENV+= GYP_DEFINES="OS=netbsd" |
39 | MAKE_ENV+= GYP_DEFINES="OS=netbsd" | | 39 | MAKE_ENV+= GYP_DEFINES="OS=netbsd" |
40 | .endif | | 40 | .endif |
41 | | | 41 | |
42 | REPLACE_PYTHON+= configure | | 42 | REPLACE_PYTHON+= configure |
43 | REPLACE_PYTHON+= tools/genv8constants.py | | 43 | REPLACE_PYTHON+= tools/genv8constants.py |
44 | REPLACE_PYTHON+= tools/gyp_node | | 44 | REPLACE_PYTHON+= tools/gyp_node |
45 | REPLACE_PYTHON+= tools/gyp/pylib/gyp/flock_tool.py | | 45 | REPLACE_PYTHON+= tools/gyp/pylib/gyp/flock_tool.py |
46 | REPLACE_PYTHON+= tools/gyp/pylib/gyp/sun_tool.py | | 46 | REPLACE_PYTHON+= tools/gyp/pylib/gyp/sun_tool.py |
47 | REPLACE_PYTHON+= tools/node-waf | | 47 | REPLACE_PYTHON+= tools/node-waf |
48 | REPLACE_PYTHON+= tools/waf-light | | 48 | REPLACE_PYTHON+= tools/waf-light |
49 | REPLACE_PYTHON+= tools/wafadmin/*.py | | 49 | REPLACE_PYTHON+= tools/wafadmin/*.py |
50 | REPLACE_PYTHON+= tools/wafadmin/Tools/*.py | | 50 | REPLACE_PYTHON+= tools/wafadmin/Tools/*.py |
51 | | | 51 | |
52 | CHECK_INTERPRETER_SKIP+= lib/node_modules/npm/* | | 52 | CHECK_INTERPRETER_SKIP+= lib/node_modules/npm/* |
53 | | | 53 | |
54 | .if ${OPSYS} == "NetBSD" | | 54 | .if ${OPSYS} == "NetBSD" |
55 | BUILD_DEPENDS+= lockf-[0-9]*:../../sysutils/lockf | | 55 | BUILD_DEPENDS+= lockf-[0-9]*:../../sysutils/lockf |
56 | .endif | | 56 | .endif |
57 | | | 57 | |
58 | pre-install: | | 58 | pre-install: |
59 | ${FIND} ${WRKSRC}/deps/npm -name '*.orig' | ${XARGS} ${RM} -f | | 59 | ${FIND} ${WRKSRC}/deps/npm -name '*.orig' | ${XARGS} ${RM} -f |
60 | ${CHMOD} -R g-w ${WRKSRC} | | 60 | ${CHMOD} -R g-w ${WRKSRC} |
61 | | | 61 | |
62 | .if ${OPSYS} != "Darwin" | | 62 | .if ${OPSYS} != "Darwin" |
63 | .include "../../devel/libexecinfo/buildlink3.mk" | | 63 | .include "../../devel/libexecinfo/buildlink3.mk" |
64 | .endif | | 64 | .endif |
65 | .include "../../lang/python/application.mk" | | 65 | .include "../../lang/python/application.mk" |
66 | .include "../../lang/python/tool.mk" | | 66 | .include "../../lang/python/tool.mk" |
67 | .include "../../mk/bsd.pkg.mk" | | 67 | .include "../../mk/bsd.pkg.mk" |