diff options
author | riastradh <riastradh@pkgsrc.org> | 2013-05-10 00:35:51 +0000 |
---|---|---|
committer | riastradh <riastradh@pkgsrc.org> | 2013-05-10 00:35:51 +0000 |
commit | 937682e63b8e9f5e25d4080299d1fe5a542408fa (patch) | |
tree | 851aa16e1815724fddaefd995ce83d85a30b542d /lang | |
parent | a19c693fb64cf17d648bedfb040f25c2a4559121 (diff) | |
download | pkgsrc-937682e63b8e9f5e25d4080299d1fe5a542408fa.tar.gz |
Use a tool dependency, not buildlink3, if PYTHON_FOR_BUILD_ONLY.
ok agc
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/pyversion.mk | 12 |
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} |