summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrecht <recht>2004-01-25 14:28:52 +0000
committerrecht <recht>2004-01-25 14:28:52 +0000
commit8ad7f09e0d64f8884377775f6fede77936e8b744 (patch)
tree24c066f7601e217b5061ae8d3d7eb2bb6ca9bde6 /lang
parent1472830a3cd4acf92ad6fff984b6928815552ac1 (diff)
downloadpkgsrc-8ad7f09e0d64f8884377775f6fede77936e8b744.tar.gz
add buildlink3 support
Diffstat (limited to 'lang')
-rw-r--r--lang/python/pyversion.mk29
1 files changed, 26 insertions, 3 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index 4d5affdb827..8cf5f83cdc8 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.22 2003/09/30 22:44:52 kristerw Exp $
+# $NetBSD: pyversion.mk,v 1.23 2004/01/25 14:28:52 recht Exp $
.if !defined(PYTHON_PYVERSION_MK)
PYTHON_PYVERSION_MK= defined
@@ -115,6 +115,12 @@ PTHREAD_OPTS= require
. if ${PTHREAD_TYPE} == "pth"
. include "../../devel/pth/buildlink2.mk"
. endif
+. elif defined(USE_BUILDLINK3) && empty(USE_BUILDLINK3:M[nN][oO])
+PTHREAD_OPTS= require
+. include "../../mk/pthread.buildlink3.mk"
+. if ${PTHREAD_TYPE} == "pth"
+. include "../../devel/pth/buildlink3.mk"
+. endif
. endif
.elif ${_PYTHON_VERSION} == "22"
PYPKGSRCDIR= ../../lang/python22
@@ -134,6 +140,12 @@ PTHREAD_OPTS= require
. if ${PTHREAD_TYPE} == "pth"
. include "../../devel/pth/buildlink2.mk"
. endif
+. elif defined(USE_BUILDLINK3) && empty(USE_BUILDLINK3:M[nN][oO])
+PTHREAD_OPTS= require
+. include "../../mk/pthread.buildlink3.mk"
+. if ${PTHREAD_TYPE} == "pth"
+. include "../../devel/pth/buildlink3.mk"
+. endif
. endif
.elif ${_PYTHON_VERSION} == "21"
PYPKGSRCDIR= ../../lang/python21
@@ -153,6 +165,12 @@ PTHREAD_OPTS= require
. if ${PTHREAD_TYPE} == "pth"
. include "../../devel/pth/buildlink2.mk"
. endif
+. elif defined(USE_BUILDLINK3) && empty(USE_BUILDLINK3:M[nN][oO])
+PTHREAD_OPTS= require
+. include "../../mk/pthread.buildlink3.mk"
+. if ${PTHREAD_TYPE} == "pth"
+. include "../../devel/pth/buildlink3.mk"
+. endif
. endif
.elif ${_PYTHON_VERSION} == "20"
PYPKGSRCDIR= ../../lang/python20
@@ -174,11 +192,16 @@ BUILD_DEPENDS+= py15-distutils-*:../../devel/py-distutils
error: no valid Python version
.endif
-.if defined(USE_BUILDLINK2) && empty(USE_BUILDLINK2:M[nN][oO])
+.if (defined(USE_BUILDLINK2) && empty(USE_BUILDLINK2:M[nN][oO])) || \
+ (defined(USE_BUILDLINK3) && empty(USE_BUILDLINK3:M[nN][oO]))
. if defined(PYTHON_FOR_BUILD_ONLY)
BUILD_DEPMETHOD.python?= build
. endif
-. include "${PYPKGSRCDIR}/buildlink2.mk"
+. if defined(USE_BUILDLINK2) && empty(USE_BUILDLINK2:M[nN][oO])
+. include "${PYPKGSRCDIR}/buildlink2.mk"
+. else
+. include "${PYPKGSRCDIR}/buildlink3.mk"
+. endif
.else
. if defined(PYTHON_FOR_BUILD_ONLY)
BUILD_DEPENDS+= ${PYDEPENDENCY}