From d8ce2802e0090bf2c37da24186f8a1389d9e95cc Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Fri, 29 Apr 2022 22:21:40 +0200 Subject: [PATCH] Ports: Make the number of compile jobs configurable --- Ports/.port_include.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Ports/.port_include.sh b/Ports/.port_include.sh index 75793938c0..a0e504f089 100755 --- a/Ports/.port_include.sh +++ b/Ports/.port_include.sh @@ -2,6 +2,7 @@ set -eu SCRIPT="$(dirname "${0}")" +export MAKEJOBS="${MAKEJOBS:-$(nproc)}" maybe_source() { if [ -f "$1" ]; then @@ -46,7 +47,7 @@ host_env() { packagesdb="${DESTDIR}/usr/Ports/packages.db" -makeopts=("-j$(nproc)") +makeopts=("-j${MAKEJOBS}") installopts=() configscript=configure configopts=()