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