pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python add buildlink3 support



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e26ee38832f6
branches:  trunk
changeset: 467007:e26ee38832f6
user:      recht <recht%pkgsrc.org@localhost>
date:      Sun Jan 25 14:28:52 2004 +0000

description:
add buildlink3 support

diffstat:

 lang/python/pyversion.mk |  29 ++++++++++++++++++++++++++---
 1 files changed, 26 insertions(+), 3 deletions(-)

diffs (67 lines):

diff -r 94e43326d10e -r e26ee38832f6 lang/python/pyversion.mk
--- a/lang/python/pyversion.mk  Sun Jan 25 14:23:39 2004 +0000
+++ b/lang/python/pyversion.mk  Sun Jan 25 14:28:52 2004 +0000
@@ -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 @@
 .    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 @@
 .    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 @@
 .    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 @@
        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}



Home | Main Index | Thread Index | Old Index