diff options
author | perky <perky@FreeBSD.org> | 2004-08-21 09:02:12 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2004-08-21 09:02:12 +0800 |
commit | c2605509ebe75f6595d4ea386ebb9becd0359208 (patch) | |
tree | 8925588e6a07626315ca7d5ac9f9b22ad0a3a9fb /lang/python31/Makefile | |
parent | 8c05f0ccbdbd9ff405837103b18b09854792546a (diff) | |
download | freebsd-ports-gnome-c2605509ebe75f6595d4ea386ebb9becd0359208.tar.gz freebsd-ports-gnome-c2605509ebe75f6595d4ea386ebb9becd0359208.tar.zst freebsd-ports-gnome-c2605509ebe75f6595d4ea386ebb9becd0359208.zip |
- Add support for FreeBSD 6.
- Drop FreeBSD 2 support.
- Fix build on -stable.
Spotted by: marcus, kris
Obtained from: Python CVS
Diffstat (limited to 'lang/python31/Makefile')
-rw-r--r-- | lang/python31/Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lang/python31/Makefile b/lang/python31/Makefile index 18cd9a6e2ab0..aa043aa2bfc6 100644 --- a/lang/python31/Makefile +++ b/lang/python31/Makefile @@ -6,6 +6,7 @@ PORTNAME= python PORTVERSION= 2.4.a2 +PORTREVISION= 1 CATEGORIES= lang python ipv6 MASTER_SITES= ${PYTHON_MASTER_SITES} MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR} @@ -101,14 +102,14 @@ CONFIGURE_ARGS+= --enable-ipv6 CONFIGURE_ARGS+= --disable-ipv6 .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: @@ -126,6 +127,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/ post-configure: @# prepare a subdir for shared build |