diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2004-11-21 07:47:10 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2004-11-21 07:47:10 +0000 |
commit | 190ea87a7ef96d9fa104f482e77bf09cc4f590b6 (patch) | |
tree | c0abdf6dd483c01038c1a7f987239c955012110b /lang/python21/Makefile | |
parent | - Update to 1.2.95 (diff) |
- Add support for FreeBSD 6.
- Drop support for FreeBSD 2.
- Bump PORTREVISION.
Diffstat (limited to 'lang/python21/Makefile')
-rw-r--r-- | lang/python21/Makefile | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/lang/python21/Makefile b/lang/python21/Makefile index 55b5ddc43ea5..56c69b7be8df 100644 --- a/lang/python21/Makefile +++ b/lang/python21/Makefile @@ -7,7 +7,7 @@ PORTNAME= python PORTVERSION= 2.1.3 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= lang python MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -46,24 +46,20 @@ DEMODIR= ${PREFIX}/share/examples/${PYTHON_VERSION} .include <bsd.port.pre.mk> -.if ${OSVERSION} >= 600000 -BROKEN= "Broken pkg-plist on FreeBSD >= 6.x" -.endif - .if ${OSVERSION} < 400000 LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses CFLAGS+= -I${LOCALBASE}/include/ncurses -I${LOCALBASE}/include CONFIGURE_ENV+= LDFLAGS="-L${LOCALBASE}/lib" .endif -.if ${OSVERSION} >= 500000 -PLATFORMS=plat-freebsd2 plat-freebsd3 plat-freebsd4 +.if ${OSVERSION} >= 600000 +PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5 +.elif ${OSVERSION} >= 500000 +PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd6 .elif ${OSVERSION} >= 400000 -PLATFORMS=plat-freebsd2 plat-freebsd3 plat-freebsd5 -.elif ${OSVERSION} >= 300000 -PLATFORMS=plat-freebsd2 plat-freebsd4 plat-freebsd5 +PLATFORMS=plat-freebsd3 plat-freebsd5 plat-freebsd6 .else -PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5 +PLATFORMS=plat-freebsd4 plat-freebsd5 plat-freebsd6 .endif post-extract: @@ -77,6 +73,8 @@ pre-patch: ${REINPLACE_CMD} -e \ 's|^\(prefixes = .*\)\]$$|\1, "${X11BASE}"]|g' \ ${WRKSRC}/Lib/site.py + ${MKDIR} ${WRKSRC}/Lib/plat-freebsd6 + ${CP} ${WRKSRC}/Lib/plat-freebsd5/regen ${WRKSRC}/Lib/plat-freebsd6/ pre-su-install: .for platform in ${PLATFORMS} |