summaryrefslogtreecommitdiff
path: root/lang/python26/Makefile
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2004-08-21 01:02:12 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2004-08-21 01:02:12 +0000
commitadca4f9d0ed8ad2f5771aeb47ec40e4b54c0e6a3 (patch)
tree223ee776196f7f8d6fd858aadc26d63ebf424f3c /lang/python26/Makefile
parentUpdate to 0.5.3b (diff)
- Add support for FreeBSD 6.
- Drop FreeBSD 2 support. - Fix build on -stable. Spotted by: marcus, kris Obtained from: Python CVS
Notes
Notes: svn path=/head/; revision=116864
Diffstat (limited to 'lang/python26/Makefile')
-rw-r--r--lang/python26/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/lang/python26/Makefile b/lang/python26/Makefile
index 18cd9a6e2ab0..aa043aa2bfc6 100644
--- a/lang/python26/Makefile
+++ b/lang/python26/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