summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorriastradh <riastradh>2013-05-10 00:35:51 +0000
committerriastradh <riastradh>2013-05-10 00:35:51 +0000
commitaf7e866c19955ec1686154c56d08417af2626321 (patch)
tree851aa16e1815724fddaefd995ce83d85a30b542d /lang/python
parentad760a70db741bd7a8db60d4aa8a3010a8063f10 (diff)
downloadpkgsrc-af7e866c19955ec1686154c56d08417af2626321.tar.gz
Use a tool dependency, not buildlink3, if PYTHON_FOR_BUILD_ONLY.
ok agc
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/pyversion.mk12
1 files changed, 7 insertions, 5 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index 46d9d2b1cba..82768624c87 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.106 2013/04/29 10:49:37 wiz Exp $
+# $NetBSD: pyversion.mk,v 1.107 2013/05/10 00:35:51 riastradh Exp $
# This file determines which Python version is used as a dependency for
# a package.
@@ -195,11 +195,13 @@ PYPKGPREFIX=
PTHREAD_OPTS+= require
.include "../../mk/pthread.buildlink3.mk"
-.if defined(PYTHON_FOR_BUILD_ONLY)
-BUILDLINK_DEPMETHOD.python?= build
-.endif
.if defined(PYPKGSRCDIR)
-.include "${PYPKGSRCDIR}/buildlink3.mk"
+# XXX BUILD_DEPENDS/TOOL_DEPENDS split makes this variable name confusing.
+. if defined(PYTHON_FOR_BUILD_ONLY)
+TOOL_DEPENDS+= ${PYDEPENDENCY}
+. else
+. include "${PYPKGSRCDIR}/buildlink3.mk"
+. endif
.endif
PYTHONBIN= ${LOCALBASE}/bin/python${PYVERSSUFFIX}