aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python31/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/python31/Makefile')
-rw-r--r--lang/python31/Makefile33
1 files changed, 20 insertions, 13 deletions
diff --git a/lang/python31/Makefile b/lang/python31/Makefile
index 18472eedaff6..22ba920641db 100644
--- a/lang/python31/Makefile
+++ b/lang/python31/Makefile
@@ -6,17 +6,14 @@
#
PORTNAME= python
-PORTVERSION= 1.5.2
+PORTVERSION= 1.6
CATEGORIES= lang python
-MASTER_SITES= ftp://www.python.org/pub/python/src/ \
- ftp://ftp.cwi.nl/pub/python/src/
-DISTNAME= py152
-EXTRACT_SUFX= .tgz
+MASTER_SITES= http://www.python.org/1.6/
+DISTNAME= Python-${PORTVERSION}
MAINTAINER= tg@FreeBSD.org
DIST_SUBDIR= python
-WRKSRC= ${WRKDIR}/Python-1.5.2
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
@@ -24,6 +21,9 @@ INSTALL_TARGET= install
PLIST= ${WRKDIR}/PLIST
MAN1= python.1
+PYTHON_VERSION= python1.6
+PYTHON_NO_DEPENDS= yes
+
#
# The standard setup file
#
@@ -31,7 +31,7 @@ SETUP_FILE= Setup
#
# If you don't want to use Python's thread module, you need to set
-# WITHOUT_THREADS. libc_r should be installed on nowadays' systems.
+# WITHOUT_THREADS.
#
LIBC_R!= /sbin/ldconfig -r | grep c_r || true
.if (${LIBC_R} != "") && !defined(WITHOUT_THREADS)
@@ -41,6 +41,13 @@ CONFIGURE_ENV+= LDFLAGS="-pthread ${LDFLAGS}"
.endif
#
+# OpenSSL support is built on machines that have it
+#
+.if exists(/etc/ssl/openssl.cnf)
+SETUP_LOCAL+= Setup.OpenSSL
+.endif
+
+#
# The mpz module is built on machines with a full source tree
#
.if exists(/usr/src/contrib/libgmp/gmp-impl.h)
@@ -88,22 +95,22 @@ PLATFORMS=plat-freebsd3 plat-freebsd4 plat-freebsd5
pre-install:
.for platform in ${PLATFORMS}
- ${MKDIR} ${PREFIX}/lib/python1.5/${platform}
+ ${MKDIR} ${PREFIX}/lib/${PYTHON_VERSION}/${platform}
${INSTALL_DATA} ${WRKSRC}/Lib/${platform}/* \
- ${PREFIX}/lib/python1.5/${platform}/
+ ${PREFIX}/lib/${PYTHON_VERSION}/${platform}/
.endfor
- @sort -r -o ${PLIST} ${PLIST_TK} ${PLIST_GMP} ${PLIST_TOOLS} ${PKGDIR}/PLIST
+ @sort -r -o ${PLIST} ${PLIST_GMP} ${PLIST_TOOLS} ${PKGDIR}/PLIST
post-install:
strip ${PREFIX}/bin/python
@${MKDIR} ${PREFIX}/share/doc/python
@${MKDIR} ${PREFIX}/share/emacs/site-lisp
${INSTALL_DATA} ${WRKSRC}/Misc/python-mode.el ${PREFIX}/share/emacs/site-lisp
- ${INSTALL_DATA} ${WRKSRC}/Misc/COPYRIGHT ${PREFIX}/share/doc/python
- @${MKDIR} ${PREFIX}/lib/python1.5/site-packages
+ ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/python
+ @${MKDIR} ${PREFIX}/lib/${PYTHON_VERSION}/site-packages
.if !defined(WITHOUT_TOOLS)
@cd ${WRKSRC}; tar cf - Tools | \
- (cd ${PREFIX}/lib/python1.5; tar xf -)
+ (cd ${PREFIX}/lib/${PYTHON_VERSION}; tar xf -)
.endif
.include <bsd.port.post.mk>