From fbae320e51ee15bcd430ed1c60ace463526dcea6 Mon Sep 17 00:00:00 2001 From: rillig Date: Thu, 7 Sep 2006 22:12:15 +0000 Subject: 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. --- lang/python/pyversion.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lang') 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 -- cgit v1.2.3