aboutsummaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2003-02-23 12:33:36 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2003-02-23 12:33:36 +0000
commit69b55b0807b61e6ee5e3909f18808605f831fbbf (patch)
tree51195302a1766af584b9618874ba2fa928065ff9 /lang
parent6806ca7f614a813d54adf131d9246550fce1df82 (diff)
downloadports-69b55b0807b61e6ee5e3909f18808605f831fbbf.tar.gz
ports-69b55b0807b61e6ee5e3909f18808605f831fbbf.zip
Notes
Diffstat (limited to 'lang')
-rw-r--r--lang/tcl84/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/tcl84/Makefile b/lang/tcl84/Makefile
index 7e0d4b05393c..7b80c8c78f3c 100644
--- a/lang/tcl84/Makefile
+++ b/lang/tcl84/Makefile
@@ -582,6 +582,16 @@ MLINKS= Access.3 Tcl_Access.3 \
pkgMkIndex.n pkg_mkIndex.n \
safe.n SafeBase.n
+.if defined(TCL_WITH_THREADS) || defined(WITH_THREADS)
+CONFIGURE_ARGS+= --enable-threads
+PKGNAMESUFFIX?= -threads
+USE_REINPLACE= YES
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
+
+.endif
+
.include <bsd.port.pre.mk>
post-install: