diff options
author | drochner <drochner> | 2002-01-19 12:54:52 +0000 |
---|---|---|
committer | drochner <drochner> | 2002-01-19 12:54:52 +0000 |
commit | c0684c9ba0fc39548195eedc4a60ad024fe51873 (patch) | |
tree | b14a9c4fb84aafa5332431a0d1d12da3d2bec9b4 /lang/python | |
parent | 0f3a08ca142290a6cfef2941065b6ae552d203fe (diff) | |
download | pkgsrc-c0684c9ba0fc39548195eedc4a60ad024fe51873.tar.gz |
add an option to get a BUILD_DEPENDS only
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/pyversion.mk | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index 354be09d88e..68cc4522cc1 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.5 2002/01/17 11:06:42 drochner Exp $ +# $NetBSD: pyversion.mk,v 1.6 2002/01/19 12:54:52 drochner Exp $ .if !defined(PYTHON_PYVERSION_MK) PYTHON_PYVERSION_MK= defined @@ -74,19 +74,24 @@ _PYTHON_VERSION= ${_PYTHON_VERSION_FIRSTACCEPTED} # to multiple Python versions # .if ${_PYTHON_VERSION} == "22" -DEPENDS+= ${BUILDLINK_DEPENDS.python22}:../../lang/python22 +PYDEPENDENCY= ${BUILDLINK_DEPENDS.python22}:../../lang/python22 PYVERSSUFFIX= 2.2 PYPKGPREFIX= py22 .elif ${_PYTHON_VERSION} == "21" -DEPENDS+= ${BUILDLINK_DEPENDS.python21}:../../lang/python21 +PYDEPENDENCY= ${BUILDLINK_DEPENDS.python21}:../../lang/python21 PYVERSSUFFIX= 2.1 PYPKGPREFIX= py21 .elif ${_PYTHON_VERSION} == "20" -DEPENDS+= ${BUILDLINK_DEPENDS.python20}:../../lang/python20 +PYDEPENDENCY= ${BUILDLINK_DEPENDS.python20}:../../lang/python20 PYVERSSUFFIX= 2.0 PYPKGPREFIX= py20 .endif PYTHONBIN= ${LOCALBASE}/bin/python${PYVERSSUFFIX} +.if defined(PYTHON_FOR_BUILD_ONLY) +BUILD_DEPENDS+= ${PYDEPENDENCY} +.else +DEPENDS+= ${PYDEPENDENCY} +.endif .endif # PYTHON_PYVERSION_MK |