aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2001-08-03 19:20:33 +0800
committertg <tg@FreeBSD.org>2001-08-03 19:20:33 +0800
commit9c0b0549152132b6682bf6d698fc715c04288f5c (patch)
treec3c4cbb3876a451c2946ca0cf3b0c2234626e93f /Mk
parent88fb7742828359881d9f1cc645baab8b696a7873 (diff)
downloadfreebsd-ports-gnome-9c0b0549152132b6682bf6d698fc715c04288f5c.tar.gz
freebsd-ports-gnome-9c0b0549152132b6682bf6d698fc715c04288f5c.tar.zst
freebsd-ports-gnome-9c0b0549152132b6682bf6d698fc715c04288f5c.zip
Use a variable for PYTHON_PORTVERSION.
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk2
-rw-r--r--Mk/bsd.python.mk7
2 files changed, 5 insertions, 4 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 91ff2f04f0ee..d08570149327 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -702,7 +702,7 @@ MAKE_ENV+= OPENSSLLIB=${OPENSSLLIB} OPENSSLINC=${OPENSSLINC} \
.include "${PORTSDIR}/Mk/bsd.emacs.mk"
.endif
-.if defined(USE_PYTHON) || defined(PYTHON_VERSION)
+.if defined(USE_PYTHON)
.include "${PORTSDIR}/Mk/bsd.python.mk"
.endif
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index 7af097482977..29c0450f6ce3 100644
--- a/Mk/bsd.python.mk
+++ b/Mk/bsd.python.mk
@@ -79,20 +79,21 @@ Python_Include_MAINTAINER= tg@FreeBSD.org
_PYTHON_VERSION!= (python -c 'import sys; print sys.version[:3]') 2> /dev/null \
|| echo 2.1
PYTHON_VERSION?= python${_PYTHON_VERSION}
+_PYTHON_PORTVERSION= 2.1.1
PYTHON_PORTVERSION!= (${PYTHON_VERSION} -c 'import string, sys; \
print string.split(sys.version)[0]') 2> /dev/null \
- || echo 2.1
+ || echo ${_PYTHON_PORTVERSION}
# Python-2.1
.if ${PYTHON_VERSION} == "python2.1"
PYDISTUTILS= ${PYTHON_LIBDIR}/distutils/core.py:${PYTHON_PORTSDIR}
PYXML= ${PYTHON_SITELIBDIR}/_xmlplus/__init__.py:${PORTSDIR}/textproc/py-xml
-PYTHON_DISTFILE= Python-2.1.1.tgz
+PYTHON_DISTFILE= Python-${_PYTHON_PORTVERSION}.tgz
PYTHON_PORTSDIR= ${PORTSDIR}/lang/python
PYTHON_REL= 211
PYTHON_SUFFIX= # empty, default version
-PYTHON_WRKSRC= ${WRKDIR}/Python-2.1.1
+PYTHON_WRKSRC= ${WRKDIR}/Python-${_PYTHON_PORTVERSION}
# Python-2.0
.elif ${PYTHON_VERSION} == "python2.0"