aboutsummaryrefslogtreecommitdiff
path: root/lang/python31/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python31/Makefile')
-rw-r--r--lang/python31/Makefile15
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