]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/nodejs/Config.in
nodejs: security bump to version 6.11.5
[coffee/buildroot.git] / package / nodejs / Config.in
1 comment "nodejs needs a toolchain w/ C++, dynamic library, threads, gcc >= 4.8, wchar"
2         depends on BR2_USE_MMU
3         depends on BR2_arm || BR2_aarch64 || BR2_i386 || BR2_x86_64 || BR2_mipsel
4         depends on !BR2_MIPS_SOFT_FLOAT
5         depends on !BR2_ARM_CPU_ARMV4
6         depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS || \
7                 !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || !BR2_USE_WCHAR
8
9 config BR2_PACKAGE_NODEJS
10         bool "nodejs"
11         depends on BR2_TOOLCHAIN_HAS_THREADS
12         depends on BR2_INSTALL_LIBSTDCPP
13         depends on BR2_arm || BR2_aarch64 || BR2_i386 || BR2_x86_64 || BR2_mipsel
14         depends on !BR2_MIPS_SOFT_FLOAT
15         # ARM needs BLX, so v5t+
16         depends on !BR2_ARM_CPU_ARMV4
17         # 0.10.x could be built without the following toolchain dependencies but
18         # simplify things by requiring these basic dependencies for all versions.
19         depends on BR2_HOST_GCC_AT_LEAST_4_8
20         depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
21         depends on BR2_USE_WCHAR
22         # uses fork()
23         depends on BR2_USE_MMU
24         # uses dlopen(). On ARMv5, we could technically support static
25         # linking, but that's too much of a corner case to support it.
26         depends on !BR2_STATIC_LIBS
27         select BR2_PACKAGE_ZLIB
28         help
29           Event-driven I/O server-side JavaScript environment based on V8.
30
31           http://nodejs.org/
32
33 if BR2_PACKAGE_NODEJS
34
35 # Starting with 0.12.x, on ARM, V8 (the JS engine)
36 # now requires an armv6+ and a VFPv2+.
37 config BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
38         bool
39         # On supported architectures other than ARM, no special requirement
40         default y if !BR2_arm
41         # On ARM, at least ARMv6+ with VFPv2+ is needed
42         default y if !BR2_ARM_CPU_ARMV5 && BR2_ARM_CPU_HAS_VFPV2
43
44 config BR2_PACKAGE_NODEJS_VERSION_STRING
45         string
46         default "6.11.5"                if BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
47         default "0.10.48"
48
49 config BR2_PACKAGE_NODEJS_NPM
50         bool "NPM for the target"
51         select BR2_PACKAGE_OPENSSL
52         help
53           NPM is the package manager for the Node JavaScript platform.
54           Note that enabling NPM on the target also selects OpenSSL for the
55           target.
56
57           http://www.npmjs.org
58
59           Note that NPM is always built for the buildroot host.
60
61 config BR2_PACKAGE_NODEJS_MODULES_EXPRESS
62         bool "Express web application framework"
63         help
64           Express is a minimal and flexible node.js web application
65           framework, providing a robust set of features for building
66           single and multi-page, and hybrid web applications.
67
68           http://www.expressjs.com
69           https://github.com/visionmedia/express
70
71 config BR2_PACKAGE_NODEJS_MODULES_COFFEESCRIPT
72         bool "CoffeeScript"
73         help
74           CoffeeScript is a little language that compiles into JavaScript.
75
76           http://www.coffeescript.org
77
78 config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL
79         string "Additional modules"
80         help
81           List of space-separated nodejs modules to install via npm.
82           See https://npmjs.org/ to find modules and 'npm help install'
83           for available installation methods. For repeatable builds,
84           download and save tgz files or clone git repos for the
85           components you care about.
86
87           Example: serialport uglify-js@1.3.4 /my/module/mymodule.tgz git://github.com/someuser/somemodule.git#v1.2
88
89           This would install the serialport module (at the newest version),
90           the uglify-js module at 1.3.4, a module from a filesystem path,
91           and a module from a git repository.
92
93 config BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL_DEPS
94         string "Additional module dependencies"
95         help
96           List of space-separated buildroot recipes which must be built before
97           your npms can be installed. For example, if in 'Additional modules'
98           you specified 'node-curl' (see:
99           https://github.com/jiangmiao/node-curl), you could then specify
100           'libcurl' here, to ensure that buildroot builds the libcurl package,
101           and does so before building your node modules.
102
103 endif