summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordrochner <drochner>2003-05-07 20:08:18 +0000
committerdrochner <drochner>2003-05-07 20:08:18 +0000
commit88e486d10325427541913ba10c6a817050f9a90e (patch)
treea79aca1fc0ed90d94b487bc98d9404db48547943 /lang
parent91743434737b33ecb774b75ad67eedb69114a737 (diff)
downloadpkgsrc-88e486d10325427541913ba10c6a817050f9a90e.tar.gz
use the same logics for pth dependency like in python2?-pth/Makefile
Diffstat (limited to 'lang')
-rw-r--r--lang/python/pyversion.mk14
1 files changed, 11 insertions, 3 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk
index b6126c5eceb..db2a11d68d9 100644
--- a/lang/python/pyversion.mk
+++ b/lang/python/pyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.19 2003/03/10 09:19:07 jdolecek Exp $
+# $NetBSD: pyversion.mk,v 1.20 2003/05/07 20:08:18 drochner Exp $
.if !defined(PYTHON_PYVERSION_MK)
PYTHON_PYVERSION_MK= defined
@@ -102,7 +102,11 @@ PYPACKAGE= python22-pth
PYVERSSUFFIX= 2p2
PYPKGPREFIX= py22pth
. if defined(USE_BUILDLINK2)
-. include "../../devel/pth/buildlink2.mk"
+PTHREAD_OPTS= require
+. include "../../mk/pthread.buildlink2.mk"
+. if ${PTHREAD_TYPE} == "pth"
+. include "../../devel/pth/buildlink2.mk"
+. endif
. endif
.elif ${_PYTHON_VERSION} == "21"
PYPKGSRCDIR= ../../lang/python21
@@ -117,7 +121,11 @@ PYDEPENDENCY= ${BUILDLINK_DEPENDS.python21-pth}:${PYPKGSRCDIR}
PYVERSSUFFIX= 2p1
PYPKGPREFIX= py21pth
. if defined(USE_BUILDLINK2)
-. include "../../devel/pth/buildlink2.mk"
+PTHREAD_OPTS= require
+. include "../../mk/pthread.buildlink2.mk"
+. if ${PTHREAD_TYPE} == "pth"
+. include "../../devel/pth/buildlink2.mk"
+. endif
. endif
.elif ${_PYTHON_VERSION} == "20"
PYPKGSRCDIR= ../../lang/python20