1 --- node-v0.10.3-o/Makefile 2013-04-03 11:30:57.000000000 -0600
2 +++ node-v0.10.3/Makefile 2013-04-03 19:30:22.000000000 -0600
8 - $(PYTHON) tools/install.py $@ $(DESTDIR)
9 +install: all justinstall
12 + $(PYTHON) tools/install.py install $(DESTDIR) $(LIBDIR)
15 - $(PYTHON) tools/install.py $@ $(DESTDIR)
16 + $(PYTHON) tools/install.py $@ $(DESTDIR) $(LIBDIR)
19 -rm -rf out/Makefile node node_g out/$(BUILDTYPE)/node blog.html email.md
20 --- node-v0.10.3/common.gypi~ 2013-04-03 20:30:57.000000000 +0300
21 +++ node-v0.10.3/common.gypi 2013-04-08 15:50:00.327121152 +0300
23 'component%': 'static_library', # NB. these names match with what V8 expects
24 'msvs_multi_core_compile': '0', # we do enable multicore compiles, but not using the V8 way
25 'gcc_version%': 'unknown',
26 + # For a shared library build, results in "libnode.so.<(soname_version)".
27 + 'soname_version%': '',
31 --- node-v0.10.3-o/node.gyp 2013-04-03 11:30:57.000000000 -0600
32 +++ node-v0.10.3/node.gyp 2013-04-03 19:30:22.000000000 -0600
43 - 'tools/msvs/genfiles',
45 - '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
47 + [ 'node_shared_libuv=="false"', {
48 + 'dependencies': [ 'deps/uv/uv.gyp:libuv' ],
54 + # node.gyp is added to the project by default.
59 + 'NODE_WANT_INTERNALS=1',
60 + 'ARCH="<(target_arch)"',
65 + 'target_name': 'libnode',
66 + 'type': 'shared_library',
67 + 'product_extension': 'so.<(soname_version)',
68 + 'soname_version': '<(soname_version)',
69 + 'cflags': ['-fPIC'],
72 'src/fs_event_wrap.cc',
77 'src/node_http_parser.cc',
78 'src/node_javascript.cc',
82 'src/node_stat_watcher.cc',
89 + 'tools/msvs/genfiles',
91 + '<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
99 'NODE_WANT_INTERNALS=1',
100 'ARCH="<(target_arch)"',
101 --- node-v0.10.3-o/tools/install.py 2013-04-03 11:30:57.000000000 -0600
102 +++ node-v0.10.3/tools/install.py 2013-04-03 19:31:32.000000000 -0600
104 assert(0) # unhandled action type
108 action(['out/Release/node'], 'bin/node')
109 + action(['out/Release/lib.target/libnode.so.10'], lib_dir + '/libnode.so.10.3.0')
111 # install unconditionally, checking if the platform supports dtrace doesn't
112 # work when cross-compiling and besides, there's at least one linux flavor
114 if 'true' == variables.get('node_install_npm'): npm_files(action)
117 - global dst_dir, node_prefix, target_defaults, variables
118 + global dst_dir, node_prefix, target_defaults, variables, lib_dir
120 # chdir to the project's top-level directory
121 os.chdir(abspath(os.path.dirname(__file__), '..'))
123 dst_dir = node_prefix = variables.get('node_prefix') or '/usr/local'
124 if len(args) > 2: dst_dir = abspath(args[2] + '/' + dst_dir)
127 + if len(args) > 3: lib_dir = args[3]
129 cmd = args[1] if len(args) > 1 else 'install'
130 if cmd == 'install': return files(install)
131 if cmd == 'uninstall': return files(uninstall)