diff options
author | drochner <drochner@pkgsrc.org> | 2003-05-07 19:36:01 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2003-05-07 19:36:01 +0000 |
commit | 0497ba6ffd0ce063b88f8c874e22ba67ffeee886 (patch) | |
tree | 0bd3e8b8651125863f670f2997912d504ba50667 /lang/python21-pth | |
parent | 06d6c7767612dd7a3ad4bcf3d172e26455a265b1 (diff) | |
download | pkgsrc-0497ba6ffd0ce063b88f8c874e22ba67ffeee886.tar.gz |
Join the "pthread.buildlink2.mk" game.
So we get native threads on -current in the default case.
The stacksize bug is still annoying. To survive the selftests, we'd
have to limit the recursion depth to 13. But then, people trying the
first recursive function would be disappointed if they can't even
calculate fac(15)...
Otoh, add-ons like py-gtk and py-wxwindows pull in dynamic libraries
which require libpthread, so we have to cope with it somehow.
Diffstat (limited to 'lang/python21-pth')
-rw-r--r-- | lang/python21-pth/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lang/python21-pth/Makefile b/lang/python21-pth/Makefile index e0466ea2d08..e8cb5f74018 100644 --- a/lang/python21-pth/Makefile +++ b/lang/python21-pth/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.4 2003/05/02 11:55:35 wiz Exp $ +# $NetBSD: Makefile,v 1.5 2003/05/07 19:36:01 drochner Exp $ # DISTNAME= Python-2.1.3 PKGNAME= python21-pth-2.1.3 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= lang MASTER_SITES= ftp://ftp.python.org/pub/python/2.1.3/ EXTRACT_SUFX= .tgz @@ -14,7 +14,12 @@ COMMENT= Interpreted, interactive, object-oriented programming language USE_BUILDLINK2= yes GNU_CONFIGURE= YES + +PTHREAD_OPTS= require +.include "../../mk/pthread.buildlink2.mk" +.if ${PTHREAD_TYPE} == "pth" CONFIGURE_ARGS+= --with-pth +.endif INSTALL_TARGET= altinstall @@ -22,7 +27,6 @@ post-extract: ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc2p1 .include "../../devel/zlib/buildlink2.mk" -.include "../../devel/pth/buildlink2.mk" .include "../../mk/bsd.pkg.mk" # This comes after bsd.pkg.mk so that the LDFLAGS here overrides the one |