summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-07-17 18:53:27 +0800
committerzeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09>2013-07-17 18:53:27 +0800
commitf3204121408c180a52683c4736213db8572717f2 (patch)
treeff5ced629b655e38089de833cf8ceffa186cd28b
parentd36748645d9e21fecb27d3111d84ea455d9906bf (diff)
downloadxorg-devel-ports-f3204121408c180a52683c4736213db8572717f2.tar
xorg-devel-ports-f3204121408c180a52683c4736213db8572717f2.tar.gz
xorg-devel-ports-f3204121408c180a52683c4736213db8572717f2.tar.bz2
xorg-devel-ports-f3204121408c180a52683c4736213db8572717f2.tar.lz
xorg-devel-ports-f3204121408c180a52683c4736213db8572717f2.tar.xz
xorg-devel-ports-f3204121408c180a52683c4736213db8572717f2.tar.zst
xorg-devel-ports-f3204121408c180a52683c4736213db8572717f2.zip
Sync with ports.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@1026 058c260c-8361-11dd-a0ac-aa2bafec7d09
-rw-r--r--Mk/bsd.port.mk30
1 files changed, 14 insertions, 16 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index fe4c48f..1649b8e 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -893,20 +893,16 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org
# MAKE_ARGS - Any extra arguments to sub-make in build and install stages.
# Default: none
##
-# MAKE_JOBS_SAFE
-# - This port can safely be built on multiple cpus in parallel.
-# The make will be invoked with -jX parameter where X equals
-# number of cores present in the system.
# MAKE_JOBS_UNSAFE
# - Disallow multiple jobs even when user set a global override.
# To be used with known bad ports.
# DISABLE_MAKE_JOBS
# - Set to disable the multiple jobs feature. User settable.
-# FORCE_MAKE_JOBS
-# - Force all ports to be built with multiple jobs, except ports
-# that are explicitly marked MAKE_JOBS_UNSAFE. User settable.
# MAKE_JOBS_NUMBER
# - Override the number of make jobs to be used. User settable.
+# MAKE_JOBS_NUMBER_LIMIT
+# - Set a limit for maximum number of make jobs allowed to be
+# used.
## cacche
#
# WITH_CCACHE_BUILD
@@ -2157,18 +2153,20 @@ CFLAGS:= ${CFLAGS:N-std=*} -std=${USE_CSTD}
# Multiple make jobs support
.if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE)
_MAKE_JOBS= #
+MAKE_JOBS_NUMBER= 1
.else
-.if defined(MAKE_JOBS_SAFE) || defined(FORCE_MAKE_JOBS)
-MAKE_JOBS_NUMBER?= `${SYSCTL} -n kern.smp.cpus`
-_MAKE_JOBS?= -j${MAKE_JOBS_NUMBER}
-.if defined(FORCE_MAKE_JOBS) && !defined(MAKE_JOBS_SAFE)
-BUILD_FAIL_MESSAGE+= You have chosen to use multiple make jobs (parallelization) for all ports. This port was not tested for this setting. Please remove FORCE_MAKE_JOBS and retry the build before reporting the failure to the maintainer.
-.endif
+.if defined(MAKE_JOBS_NUMBER)
+_MAKE_JOBS_NUMBER:= ${MAKE_JOBS_NUMBER}
+.else
+_MAKE_JOBS_NUMBER!= ${SYSCTL} -n kern.smp.cpus
.endif
+.if defined(MAKE_JOBS_NUMBER_LIMIT) && ( ${MAKE_JOBS_NUMBER_LIMIT} < ${_MAKE_JOBS_NUMBER} )
+MAKE_JOBS_NUMBER= ${MAKE_JOBS_NUMBER_LIMIT}
+.else
+MAKE_JOBS_NUMBER= ${_MAKE_JOBS_NUMBER}
.endif
-
-.if empty(MAKE_JOBS_NUMBER)
-MAKE_JOBS_NUMBER= 1
+_MAKE_JOBS?= -j${MAKE_JOBS_NUMBER}
+BUILD_FAIL_MESSAGE+= Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer.
.endif
# ccache support