summaryrefslogtreecommitdiff
path: root/recipes-devtools/nodejs/nodejs_10.inc
blob: f8e36e9cce7b0c4211ef8158db615075eb3f3492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
DESCRIPTION = "Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine"
HOMEPAGE = "http://nodejs.org"

LICENSE = "MIT"

COMPATIBLE_MACHINE_armv4 = "(!.*armv4).*"
# COMPATIBLE_MACHINE_armv5 = "(!.*armv5).*"
COMPATIBLE_MACHINE_mips64 = "(!.*mips64).*"

INC_PR = "r1"
PR = "${INC_PR}.4"

PROVIDES = "node"
RPROVIDES_${PN} = "node"

SRC_URI = "https://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz;name=src \
           "

S = "${WORKDIR}/node-v${PV}"

# v8 errors out if you have set CCACHE
CCACHE = ""

inherit nodejs-arch

ARCHFLAGS_arm = "${@bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', '--with-arm-float-abi=hard', '--with-arm-float-abi=softfp', d)} \
                 ${@bb.utils.contains('TUNE_FEATURES', 'neon', '--with-arm-fpu=neon', \
                    bb.utils.contains('TUNE_FEATURES', 'vfpv3d16', '--with-arm-fpu=vfpv3-d16', \
                    bb.utils.contains('TUNE_FEATURES', 'vfpv3', '--with-arm-fpu=vfpv3', \
                    '--with-arm-fpu=vfp', d), d), d)}"
ARCHFLAGS ?= ""

CROSSCONF = "--cross-compiling"
CROSSCONF_virtclass-native ="--no-cross-compiling"

GYP_DEFINES_append_mipsel = " mips_arch_variant='r1' "

PACKAGECONFIG ??= "zlib openssl"

PACKAGECONFIG[zlib] = "--shared-zlib,,zlib,"
PACKAGECONFIG[openssl] = "--shared-openssl,,openssl,"
PACKAGECONFIG[v8-inspector] = ",--without-inspector,,"

DISABLE_STATIC = ""

export CXX_host = "${BUILD_CXX}"
export CC_host = "${BUILD_CC}"
export CXXFLAGS_host = "${BUILD_CXXFLAGS}"
export CFLAGS_host = "${BUILD_CFLAGS}"

do_configure () {
  GYP_DEFINES="${GYP_DEFINES}" export GYP_DEFINES
  ./configure	--prefix="${prefix}" \
		--dest-cpu="${@nodejs_map_dest_cpu(d.getVar('TARGET_ARCH', True), d)}" \
		--dest-os=linux ${ARCHFLAGS} \
		--with-intl=none \
		${CROSSCONF} \
		${PACKAGECONFIG_CONFARGS}
}

do_compile () {
  oe_runmake BUILDTYPE=Release
}

do_install () {
  oe_runmake install DESTDIR="${D}"
}

do_install_append_class-native() {
  # make sure we use node from PATH instead of absolute path to sysroot
  sed "1s^.*^#\!/usr/bin/env node^g" -i ${D}${exec_prefix}/lib/node_modules/npm/bin/npm-cli.js
}

do_install_append_class-nativesdk() {
  # make sure we use node from PATH instead of absolute path to sysroot
  sed "1s^.*^#\!/usr/bin/env node^g" -i ${D}${exec_prefix}/lib/node_modules/npm/bin/npm-cli.js
  sed "1s^.*^#\!/usr/bin/env python^g" -i ${D}${exec_prefix}/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples
}

do_install_append_class-target() {
  # make sure we use node from PATH instead of absolute path to sysroot
  sed "1s^.*^#\!${bindir}/env node^g" -i ${D}${exec_prefix}/lib/node_modules/npm/bin/npm-cli.js
}

PACKAGES =+ "${PN}-npm"
FILES_${PN}-npm = "${exec_prefix}/lib/node_modules ${bindir}/npm"
RDEPENDS_${PN}-npm = "bash python-compiler python-shell python-datetime python-subprocess python-multiprocessing python-crypt python-textutils python-netclient python-misc"

PACKAGES =+ "${PN}-dtrace"
FILES_${PN}-dtrace = "${exec_prefix}/lib/dtrace"

PACKAGES =+ "${PN}-systemtap"
FILES_${PN}-systemtap = "${datadir}/systemtap"

INSANE_SKIP_${PN} += "file-rdeps"
INSANE_SKIP_${PN}-dbg += "host-user-contaminated"

BBCLASSEXTEND = "native nativesdk"
>
-rw-r--r--recipes/angstrom/angstrom-uboot-scripts/touchbook.cmd4
-rw-r--r--recipes/ant/ant-native_1.7.1.bb64
-rwxr-xr-xrecipes/ant/files/ant10
-rw-r--r--recipes/apache2/apache2-2.2.14/apr-sockets-patch10
-rw-r--r--recipes/apache2/apache2-2.2.14/apr.h.in.patch13
-rw-r--r--recipes/apache2/apache2-2.2.14/configure-patch71
-rw-r--r--recipes/apache2/apache2-2.2.14/configure.in.patch27
-rw-r--r--recipes/apache2/apache2-2.2.14/dftables-makefile-patch10
-rw-r--r--recipes/apache2/apache2-2.2.14/server-makefile-patch11
-rw-r--r--recipes/apache2/apache2-native_2.2.14.bb39
-rw-r--r--recipes/apache2/apache2_2.2.14.bb114
-rw-r--r--recipes/apt/apt-0.7.20.2/no-doxygen.patch12
-rw-r--r--recipes/apt/apt-0.7.20.2/no-ko-translation.patch9
-rw-r--r--recipes/apt/apt-0.7.20.2/use-host.patch44
-rw-r--r--recipes/apt/apt-package.inc7
-rw-r--r--recipes/apt/apt.inc3
-rw-r--r--recipes/apt/apt_0.7.14.bb7
-rw-r--r--recipes/apt/apt_0.7.19.bb7
-rw-r--r--recipes/apt/apt_0.7.20.2.bb9
-rw-r--r--recipes/apt/files/volatiles4
-rw-r--r--recipes/asciidoc/asciidoc_8.5.1.bb20
-rw-r--r--recipes/asio/asio.inc14
-rw-r--r--recipes/asio/asio_1.1.1.bb15
-rw-r--r--recipes/asio/asio_1.4.1.bb3
-rw-r--r--recipes/asterisk/asterisk_1.4.23.1.bb2
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91cap9adk/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9260ek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9261ek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9263ek/defconfig113
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9g20ek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9g45ek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9rlek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/at91sam9xeek/defconfig110
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/defconfig91
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp-embedded/memory_bus_1.8v.patch22
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp/defconfig91
-rw-r--r--recipes/at91bootstrap/at91bootstrap-2.13/mtcdp/sdram_slow_slew_rate.patch15
-rw-r--r--recipes/at91bootstrap/at91bootstrap.inc1
-rw-r--r--recipes/at91bootstrap/at91bootstrap_2.13.bb15
-rw-r--r--recipes/atk/atk-native_1.28.0.bb6
-rw-r--r--recipes/atk/atk_1.26.0.bb16
-rw-r--r--recipes/atk/atk_1.28.0.bb16
-rw-r--r--recipes/audiofile/audiofile-0.2.6/CVE-2008-5824.patch23
-rw-r--r--recipes/audiofile/audiofile-0.2.6/audiofile-0.2.6.patch67
-rw-r--r--recipes/audiofile/audiofile-0.2.6/audiofile-m4_quote_fix.diff11
-rw-r--r--recipes/audiofile/audiofile-0.2.6/audiofile-oldstyle.patch55
-rw-r--r--recipes/audiofile/audiofile_0.2.6.bb22
-rw-r--r--recipes/aufs/aufs2-util_git.bb28
-rw-r--r--recipes/aufs/aufs_cvs.bb8
-rw-r--r--recipes/autoconf/autoconf-2.59/path_prog_fixes.patch126
-rw-r--r--recipes/autoconf/autoconf-2.61/autoconf-dont-execute-perl.patch41
-rw-r--r--recipes/autoconf/autoconf-2.61/path_prog_fixes.patch126
-rw-r--r--recipes/autoconf/autoconf-2.63/path_prog_fixes.patch126
-rw-r--r--recipes/autoconf/autoconf-native_2.59.bb2
-rw-r--r--recipes/autoconf/autoconf-native_2.61.bb1
-rw-r--r--recipes/autoconf/autoconf-native_2.63.bb1
-rw-r--r--recipes/autoconf/autoconf.inc12
-rw-r--r--recipes/autoconf/autoconf213-native_2.13.bb2
-rw-r--r--recipes/autoconf/autoconf213_2.13.bb2
-rw-r--r--recipes/autoconf/autoconf_2.57.bb2
-rw-r--r--recipes/autoconf/autoconf_2.59.bb7
-rw-r--r--recipes/autoconf/autoconf_2.61.bb8
-rw-r--r--recipes/autoconf/autoconf_2.63.bb17
-rw-r--r--recipes/autofs/autofs-4.1.4/Makefile.rules-cross.patch8
-rw-r--r--recipes/autofs/autofs.inc19
-rw-r--r--recipes/autofs/autofs_3.1.7.bb20
-rw-r--r--recipes/autofs/autofs_4.0.0.bb17
-rw-r--r--recipes/autofs/autofs_4.1.4.bb23
-rw-r--r--recipes/automake/automake-1.10/path_prog_fixes.patch43
-rw-r--r--recipes/automake/automake-native.inc4
-rw-r--r--recipes/automake/automake-native_1.11.1.bb5
-rw-r--r--recipes/automake/automake.inc25
-rw-r--r--recipes/automake/automake_1.10.2.bb31
-rw-r--r--recipes/automake/automake_1.11.1.bb4
-rw-r--r--recipes/automake/automake_1.9.6.bb29
-rw-r--r--recipes/automake/files/path_prog_fixes.patch55
-rw-r--r--recipes/avahi/avahi-python_0.6.25.bb19
-rw-r--r--recipes/avahi/avahi-ui_0.6.25.bb20
-rw-r--r--recipes/avahi/avahi.inc2
-rw-r--r--recipes/avahi/avahi_0.6.25.bb7
-rw-r--r--recipes/balsa/balsa-2.4.0/balsa-no-spell.patch53
-rw-r--r--recipes/balsa/balsa-2.4.0/balsa-touch.patch11
-rw-r--r--recipes/balsa/balsa-2.4.2/libbalsa-gpe-corruption.patch14
-rw-r--r--recipes/balsa/balsa_2.4.0.bb80
-rw-r--r--recipes/balsa/balsa_2.4.2.bb93
-rw-r--r--recipes/base-files/base-files/corecdp/issue8
-rw-r--r--recipes/base-files/base-files/corecdp/issue.net8
-rw-r--r--recipes/base-files/base-files/corecdp/profile34
-rwxr-xr-x[-rw-r--r--]recipes/base-files/base-files/jornada6xx/fstab6
-rwxr-xr-xrecipes/base-files/base-files/jornada6xx/issue2
-rwxr-xr-xrecipes/base-files/base-files/jornada6xx/issue.net2
-rwxr-xr-xrecipes/base-files/base-files/jornada6xx/profile34
-rw-r--r--recipes/base-files/base-files/mtcdp-embedded/fstab12
-rw-r--r--recipes/base-files/base-files/mtcdp-embedded/profile34
-rw-r--r--recipes/base-files/base-files/mtcdp/fstab12
-rw-r--r--recipes/base-files/base-files/mtcdp/profile34
-rw-r--r--recipes/base-files/base-files/omap3-pandora/fstab13
-rw-r--r--recipes/base-files/base-files/omap3-pandora/profile34
-rw-r--r--recipes/base-files/base-files_3.0.14.bb17
-rw-r--r--recipes/bash/bash_3.0.bb2
-rw-r--r--recipes/bash/bash_3.2.bb2
-rw-r--r--recipes/batmand/batmand-0.3.2/makefile-fix.patch13
-rw-r--r--recipes/batmand/batmand.inc28
-rw-r--r--recipes/batmand/batmand_0.3.2.bb3
-rw-r--r--recipes/batmand/batmand_0.3.bb30
-rw-r--r--