summaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2005-01-29 01:47:40 +0000
committerperky <perky@FreeBSD.org>2005-01-29 01:47:40 +0000
commit3be4d1a6973bd35ee5d367dfefa250d428f5ed2a (patch)
treee62e6fcba8021bc658c24f37bdd81b90fd7e60b8 /Mk
parentbdfe40e559d259e01f481708d415eb11343e54e3 (diff)
downloadFreeBSD-ports-3be4d1a6973bd35ee5d367dfefa250d428f5ed2a.zip
FreeBSD-ports-3be4d1a6973bd35ee5d367dfefa250d428f5ed2a.tar.gz
Propagate PYTHON_VERSION to child make processes to avoid duplicated
dependency on many python versions. This fixes a problem that Zope product ports depend on both of Python 2.3 and 2.4 if they use not only Zope itself but also 3rd party Python modules. Submitted by: Filippo Natali <filippo.natali@widestore.net>
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.python.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index 55462a0..8d4b73a 100644
--- a/Mk/bsd.python.mk
+++ b/Mk/bsd.python.mk
@@ -204,6 +204,9 @@ _PYTHON_PORTVERSION!= (${PYTHON_CMD} -c 'import string, sys; \
PYTHON_PORTVERSION= ${_PYTHON_PORTVERSION}
.endif
+# Propagate the chosen python version to submakes.
+.MAKEFLAGS: PYTHON_VERSION=python${_PYTHON_VERSION}
+
# Python-2.4
.if ${PYTHON_VERSION} == "python2.4"
PYTHON_PORTVERSION?=2.4
OpenPOWER on IntegriCloud