aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-10-13 06:41:34 +0800
committerbdrewery <bdrewery@FreeBSD.org>2015-10-13 06:41:34 +0800
commit1b8073fe1ba450ac58d50461dc60ff23237b520a (patch)
tree707c13d6da2e57b32f633eef710485ae5cbfddf4
parent1e717d00bd4644a508b9e731c5cc3e8b4a16e8c1 (diff)
downloadfreebsd-ports-gnome-1b8073fe1ba450ac58d50461dc60ff23237b520a.tar.gz
freebsd-ports-gnome-1b8073fe1ba450ac58d50461dc60ff23237b520a.tar.zst
freebsd-ports-gnome-1b8073fe1ba450ac58d50461dc60ff23237b520a.zip
Export more sysctl(8) vars.
LINUX_OSRELEASE, _SMP_CPUS (used as default MAKE_JOBS), CONFIGURE_MAX_CMD_LEN. With hat: portmgr
-rw-r--r--Mk/bsd.port.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index efc84dcdd74c..c5eb49438721 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1751,6 +1751,7 @@ USE_LINUX?= yes
. if !defined(LINUX_OSRELEASE)
LINUX_OSRELEASE!= ${ECHO_CMD} `${SYSCTL} -n compat.linux.osrelease 2>/dev/null`
. endif
+_EXPORTED_VARS+= LINUX_OSRELEASE
# install(1) also does a brandelf on strip, so don't strip with FreeBSD tools.
STRIP=
@@ -2036,7 +2037,11 @@ MAKE_JOBS_NUMBER= 1
.if defined(MAKE_JOBS_NUMBER)
_MAKE_JOBS_NUMBER:= ${MAKE_JOBS_NUMBER}
.else
-_MAKE_JOBS_NUMBER!= ${SYSCTL} -n kern.smp.cpus
+.if !defined(_SMP_CPUS)
+_SMP_CPUS!= ${SYSCTL} -n kern.smp.cpus
+.endif
+_EXPORTED_VARS+= _SMP_CPUS
+_MAKE_JOBS_NUMBER= ${_SMP_CPUS}
.endif
.if defined(MAKE_JOBS_NUMBER_LIMIT) && ( ${MAKE_JOBS_NUMBER_LIMIT} < ${_MAKE_JOBS_NUMBER} )
MAKE_JOBS_NUMBER= ${MAKE_JOBS_NUMBER_LIMIT}
@@ -2623,6 +2628,7 @@ CONFIGURE_FAIL_MESSAGE?= "Please report the problem to ${MAINTAINER} [maintainer
.if !defined(CONFIGURE_MAX_CMD_LEN)
CONFIGURE_MAX_CMD_LEN!= ${SYSCTL} -n kern.argmax
.endif
+_EXPORTED_VARS+= CONFIGURE_MAX_CMD_LEN
GNU_CONFIGURE_PREFIX?= ${PREFIX}
GNU_CONFIGURE_MANPREFIX?= ${MANPREFIX}
CONFIG_SITE?= ${PORTSDIR}/Templates/config.site