aboutsummaryrefslogtreecommitdiff
path: root/lang/stackless_python/Makefile
blob: 40d28131bece66ff4d65b4f2e605c5d8934dc304 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Ports collection makefile for:  stackless_python
# Date created:			  29 March 2001
# Whom:				  Hye-Shik Chang <perky@python.or.kr>
#
# $FreeBSD$
#

PORTNAME=	python
PORTVERSION=	2.3.3
PORTREVISION=	${CVSDATE}0
CATEGORIES=	lang python
MASTER_SITES=	#
PKGNAMEPREFIX=	stackless_

PATCH_SITES=	${MASTER_SITE_LOCAL} \
		http://people.freebsd.org/~perky/distfiles/
PATCH_SITE_SUBDIR=	perky
PATCHFILES=	stackless-${CVSDATE}.diff.bz2
PATCH_DIST_STRIP=	-p1

MAINTAINER=	perky@FreeBSD.org
COMMENT=	Python implementation that does not use the C stack

BROKEN=		Distinfo out of date
DEPRECATED=	${BROKEN}
EXPIRATION_DATE=2005-09-22

CONFLICTS=	python-2.3.*
ONLY_FOR_ARCHS=	i386 powerpc
CVSDATE=	040225
MASTERDIR=	${.CURDIR}/../python23
LATEST_LINK=	stackless_python
STACKLESS_POST_CONFIGURE=	stackless-post-configure

DESCR=		${.CURDIR}/pkg-descr
MD5_FILE=	${.CURDIR}/distinfo
PLIST=		${WRKDIR}/pkg-plist

post-patch:
	@${FIND} ${WRKSRC} -name '*.orig' -exec ${RM} -f {} \;
.for hf in atomicobject.h cframeobject.h channelobject.h cstackobject.h \
		flextype.h nonrecursive.h prickelpit.h schedulerobject.h \
		slp_platformselect.h stackless.h stackless_api.h \
		stackless_ceval.h stackless_frame.h stackless_impl.h \
		stackless_structs.h stackless_tstate.h stackless_version.h \
		stacklesseval.h stacklessversion.h switch_ppc_macosx.h \
		switch_ppc_unix.h switch_s390_unix.h switch_sparc_sun_gcc.h \
		switch_x86_msvc.h switch_x86_unix.h taskletobject.h
	@${ECHO} "include/%%PYTHON_VERSION%%/${hf}" >>${PLIST}
.endfor
	@${CAT} ${MASTERDIR}/pkg-plist >>${PLIST}

stackless-post-configure:
	${MKDIR} ${SHARED_WRKSRC}/Stackless
	${LN} -sf ${WRKSRC}/Stackless/slp_transfer.c \
		${SHARED_WRKSRC}/Stackless/slp_transfer.c
	${LN} -sf ${WRKSRC}/Stackless/*.h ${SHARED_WRKSRC}/Stackless/

.include "${MASTERDIR}/Makefile"