diff options
author | rillig <rillig@pkgsrc.org> | 2006-09-07 22:12:15 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-09-07 22:12:15 +0000 |
commit | 693597153ffb4f9998577211eb384d1067967660 (patch) | |
tree | 199a48d2a3cff8df316fdad26c90305d6af24bac /lang/python | |
parent | 096a6045873e9e9e773bc5fc1d2a0e31cb8ade5e (diff) | |
download | pkgsrc-693597153ffb4f9998577211eb384d1067967660.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 |