diff options
Diffstat (limited to 'Mk/bsd.python.mk')
-rw-r--r-- | Mk/bsd.python.mk | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk index d584cb789b81..69d19c5fd851 100644 --- a/Mk/bsd.python.mk +++ b/Mk/bsd.python.mk @@ -99,7 +99,8 @@ Python_Include_MAINTAINER= python@FreeBSD.org # PYNUMERIC - Dependency line for the numeric extension. Py-Numeric-17 # is the last release that works with Python versions older # than 1.6. -# PYNUMPY - Dependency line for the new numeric extension.# py-numpy, Py-Numeric is deprecated. +# PYNUMPY - Dependency line for the new numeric extension. +# py-numpy, Py-Numeric is deprecated. # # PYXML - Dependency line for the XML extension. As of Python-2.0, # this extension is in the base distribution. @@ -113,6 +114,9 @@ Python_Include_MAINTAINER= python@FreeBSD.org # PYHASHLIB - Dependency line for the hashlib package. As of Python-2.5, # this module is in the base distribution. # +# PYWSGIREF - Dependency line for the wsgiref package. As of Python-2.5, +# this module is in the base distribution. +# # USE_PYTHON_PREFIX - Says that the port installs in ${PYTHONBASE}. # # USE_PYDISTUTILS - Use distutils as do-configure, do-build and do-install @@ -450,6 +454,12 @@ PYHASHLIB= ${PYTHON_SITELIBDIR}/hashlib.py:${PORTSDIR}/security/py-hashlib PYHASHLIB= ${PYTHON_LIBDIR}/hashlib.py:${PYTHON_PORTSDIR} .endif +.if defined(PYTHON_REL) && ${PYTHON_REL} < 250 +PYWSGIREF= ${PYTHON_SITELIBDIR}/wsgiref/__init__.py:${PORTSDIR}/www/py-wsgiref +.else +PYWSGIREF= ${PYTHON_LIBDIR}/wsgiref/__init__.py:${PYTHON_PORTSIDR} +.endif + # dependencies PYTHON_NO_DEPENDS?= NO |