diff options
author | perky <perky@FreeBSD.org> | 2005-01-29 09:47:40 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2005-01-29 09:47:40 +0800 |
commit | 3be4d1a6973bd35ee5d367dfefa250d428f5ed2a (patch) | |
tree | e62e6fcba8021bc658c24f37bdd81b90fd7e60b8 /Mk | |
parent | bdfe40e559d259e01f481708d415eb11343e54e3 (diff) | |
download | freebsd-ports-gnome-3be4d1a6973bd35ee5d367dfefa250d428f5ed2a.tar.gz freebsd-ports-gnome-3be4d1a6973bd35ee5d367dfefa250d428f5ed2a.tar.zst freebsd-ports-gnome-3be4d1a6973bd35ee5d367dfefa250d428f5ed2a.zip |
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.mk | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk index 55462a0874ec..8d4b73abc63e 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 |