summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-01-25 14:28:52 +0000
committerrecht <recht@pkgsrc.org>2004-01-25 14:28:52 +0000
commit9312301754e60dda8dcbf548126233e97e8bc919 (patch)
tree24c066f7601e217b5061ae8d3d7eb2bb6ca9bde6
parent88d81000e5be6df6928ba309b3e33a544eda6f6f (diff)
downloadpkgsrc-9312301754e60dda8dcbf548126233e97e8bc919.tar.gz
add buildlink3 support
-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}