diff options
author | rillig <rillig> | 2006-09-07 22:12:15 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-09-07 22:12:15 +0000 |
commit | fbae320e51ee15bcd430ed1c60ace463526dcea6 (patch) | |
tree | 199a48d2a3cff8df316fdad26c90305d6af24bac /lang/python | |
parent | 5d975ae7b0aae09ab523c27a3011b79018cc6ec7 (diff) | |
download | pkgsrc-fbae320e51ee15bcd430ed1c60ace463526dcea6.tar.gz |
Moved the BUILD_DEFS code a bit so that it only gets executed when the
PYTHON_VERSION_DEFAULT can really change things. Thanks to joerg for
noticing it.
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/pyversion.mk | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index 9ccfc132909..5dc184aea84 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.44 2006/09/07 16:22:54 rillig Exp $ +# $NetBSD: pyversion.mk,v 1.45 2006/09/07 22:12:15 rillig Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -39,8 +39,6 @@ PYTHON_PYVERSION_MK= defined .include "../../mk/bsd.prefs.mk" -BUILD_DEFS+= PYTHON_VERSION_DEFAULT - PYTHON_VERSION_DEFAULT?= 24 .if ${OPSYS} == "Darwin" PYTHON_VERSIONS_INCOMPATIBLE+= 22 21 20 15 @@ -75,6 +73,7 @@ _PYTHON_VERSION= ${PYTHON_VERSION_REQD} .else # if the default is accepted, it is first choice . if !defined(_PYTHON_VERSION) +BUILD_DEFS+= PYTHON_VERSION_DEFAULT . if defined(_PYTHON_VERSION_${PYTHON_VERSION_DEFAULT}_OK) _PYTHON_VERSION= ${PYTHON_VERSION_DEFAULT} . endif |