summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrillig <rillig>2006-09-07 22:12:15 +0000
committerrillig <rillig>2006-09-07 22:12:15 +0000
commitfbae320e51ee15bcd430ed1c60ace463526dcea6 (patch)
tree199a48d2a3cff8df316fdad26c90305d6af24bac /lang
parent5d975ae7b0aae09ab523c27a3011b79018cc6ec7 (diff)
downloadpkgsrc-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')
-rw-r--r--lang/python/pyversion.mk5
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