diff options
author | perky <perky@FreeBSD.org> | 2003-10-30 05:31:13 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-10-30 05:31:13 +0800 |
commit | c3ede8549b3c1a391eda9e4f805c4f0c04031f28 (patch) | |
tree | 8c321ca4b11629330d04b3eb38de5f7061ec7dc8 /lang/python-devel/Makefile | |
parent | 68a56114c0a479d981acd113abaddf69f4332ba3 (diff) | |
download | freebsd-ports-gnome-c3ede8549b3c1a391eda9e4f805c4f0c04031f28.tar.gz freebsd-ports-gnome-c3ede8549b3c1a391eda9e4f805c4f0c04031f28.tar.zst freebsd-ports-gnome-c3ede8549b3c1a391eda9e4f805c4f0c04031f28.zip |
- Update lang/python-devel to Python-2.4 031022 snapshot.
- Correct USE_ZOPE dependency to Python 2.1. [1]
- Fetch from correct MASTER_SITE_SUBDIR when upgrading python
in same branch. [2]
- Enable installing separated standard modules for python-devel port.
Reported by: Filippo Natali <pitonat@libero.it> [1],
Yoshihiko Sarumaru <mistral@imasy.or.jp> [2]
Diffstat (limited to 'lang/python-devel/Makefile')
-rw-r--r-- | lang/python-devel/Makefile | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/lang/python-devel/Makefile b/lang/python-devel/Makefile index ef6e13150801..8fe819da604f 100644 --- a/lang/python-devel/Makefile +++ b/lang/python-devel/Makefile @@ -5,18 +5,17 @@ # $FreeBSD$ PORTNAME= python -PORTVERSION= 2.4.a0.20030801 -PORTREVISION= 1 +PORTVERSION= 2.4.a0.20031022 CATEGORIES= lang python ipv6 -MASTER_SITES= ${MASTER_SITE_LOCAL} -MASTER_SITE_SUBDIR= perky -DISTNAME= Python-${PORTVERSION} -EXTRACT_SUFX= .tgz +MASTER_SITES= ${PYTHON_MASTER_SITES} +MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} +DISTFILES= ${PYTHON_DISTFILE} MAINTAINER= perky@FreeBSD.org COMMENT?= An interpreted object-oriented programming language DIST_SUBDIR= python +WRKSRC= ${PYTHON_WRKSRC} GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-fpectl CONFIGURE_ENV= OPT="${CFLAGS}" @@ -24,6 +23,7 @@ INSTALL_TARGET= altinstall MAN1= ${PYTHON_VERSION}.1 USE_PYTHON= yes +USE_REINPLACE= yes PYTHON_VERSION= python2.4 PYTHON_NO_DEPENDS= yes LATEST_LINK= ${PYTHON_VERSION:S/.//} @@ -35,6 +35,11 @@ LATEST_LINK= ${PYTHON_VERSION:S/.//} .if !defined(WITHOUT_THREADS) CONFIGURE_ARGS+= --with-threads CFLAGS+= ${PTHREAD_CFLAGS} +.if !defined(WANT_HUGE_STACK_SIZE) +CFLAGS+= -DTHREAD_STACK_SIZE=0x20000 +.else +CFLAGS+= -DTHREAD_STACK_SIZE=0x100000 +.endif # !defined(WANT_HUGE_STACK_SIZE) CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}" .else CONFIGURE_ARGS+= --without-threads @@ -47,6 +52,10 @@ CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" CONFIGURE_ARGS+= --enable-unicode=ucs4 .endif +.if defined(WITHOUT_PYMALLOC) +CONFIGURE_ARGS+= --without-pymalloc +.endif + .if defined(BUILD_SHARED) CONFIGURE_ARGS+= --enable-shared INSTALLS_SHLIB= yes @@ -57,7 +66,6 @@ PLIST_SUB+= SHARED_ONLY="@comment " DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION} TOOLSDIR= ${PREFIX}/share/${PYTHON_VERSION} -CFLAGS+= -D__BSD_VISIBLE # see python/configure.in rev 1.409 .include <bsd.port.pre.mk> @@ -66,6 +74,14 @@ PLIST_SUB+= X86_ONLY="" .else PLIST_SUB+= X86_ONLY="@comment " .endif +.if ${ARCH} == amd64 +CFLAGS+= -fPIC +.endif +.if ${ARCH} == amd64 || ${ARCH} == ia64 || ${ARCH} == sparc64 || ${ARCH} == alpha +PLIST_SUB+= 32BIT_ONLY="@comment " +.else +PLIST_SUB+= 32BIT_ONLY="" +.endif .if ${OSVERSION} < 400000 LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses @@ -102,6 +118,10 @@ post-extract: ${SED} -e '1s,^.*$$,#!${PREFIX}/bin/${PYTHON_VERSION},' \ ${WRKSRC}/Tools/scripts/idle > ${WRKDIR}/idle2.4 +post-patch: + ${REINPLACE_CMD} -e 's,\(PY_VERSION.*\)2\.4a0,\1${PORTVERSION},g' \ + ${WRKSRC}/Include/patchlevel.h + pre-install: .for platform in ${PLATFORMS} ${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform} |