aboutsummaryrefslogtreecommitdiff
path: root/lang/python30
diff options
context:
space:
mode:
authorThomas Gellekum <tg@FreeBSD.org>2000-07-27 12:19:38 +0000
committerThomas Gellekum <tg@FreeBSD.org>2000-07-27 12:19:38 +0000
commit3a97a73ec64038de32b57db5d09fe0b7e795591e (patch)
treeacd3cce66cd689575ed1038c47bbde28af98ed4e /lang/python30
parent6e78c7ad4f07ce4ba30bad866df26d6b67e8895f (diff)
downloadports-3a97a73ec64038de32b57db5d09fe0b7e795591e.tar.gz
ports-3a97a73ec64038de32b57db5d09fe0b7e795591e.zip
- Clarify comment on thread support.
- Don't link against libxpg4 on newer systems. - Remove last remnants of Tkinter support, it's all in x11-toolkits/py-tkinter.
Notes
Notes: svn path=/head/; revision=31063
Diffstat (limited to 'lang/python30')
-rw-r--r--lang/python30/Makefile16
1 files changed, 10 insertions, 6 deletions
diff --git a/lang/python30/Makefile b/lang/python30/Makefile
index 954c1d45a6ea..0f0bdbf9b49d 100644
--- a/lang/python30/Makefile
+++ b/lang/python30/Makefile
@@ -18,7 +18,7 @@ MAINTAINER= tg@FreeBSD.org
DIST_SUBDIR= python
WRKSRC= ${WRKDIR}/Python-1.5.2
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-fpectl --with-libs='-lxpg4'
+CONFIGURE_ARGS= --with-fpectl
CONFIGURE_ENV= OPT="${CFLAGS}"
INSTALL_TARGET= install
PLIST= ${WRKDIR}/PLIST
@@ -30,11 +30,8 @@ MAN1= python.1
SETUP_FILE= Setup
#
-# If you want to use Python's thread module, you need to set WITH_THREADS
-# to 'yes', and you must have the FreeBSD threading c library (libc_r)
-# installed. See 'man 3 pthread' for details on libc_r.
-#
-# This option is enabled by default.
+# If you don't want to use Python's thread module, you need to set
+# WITHOUT_THREADS. libc_r should be installed on current systems.
#
LIBC_R!= /sbin/ldconfig -r | grep c_r || true
.if (${LIBC_R} != "") && !defined(WITHOUT_THREADS)
@@ -72,6 +69,13 @@ post-configure:
.include <bsd.port.pre.mk>
+.if ${OSVERSION} >= 500000 && ${OSVERSION} < 500005
+CONFIGURE_ARGS+= --with-libs='-lxpg4'
+.endif
+.if ${OSVERSION} < 400020
+CONFIGURE_ARGS+= --with-libs='-lxpg4'
+.endif
+
.if ${OSVERSION} >= 500000
PLATFORMS=plat-freebsd2 plat-freebsd3 plat-freebsd4
.elif ${OSVERSION} >= 400000