aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2003-02-23 20:33:36 +0800
committerdinoex <dinoex@FreeBSD.org>2003-02-23 20:33:36 +0800
commit611603d691ad5fe84ed3a32e8429a74989f1015d (patch)
tree4d2e490d24f1204618478b889362f45b06590683 /lang
parent5969175fde7785614e81978538af43524c14c796 (diff)
downloadfreebsd-ports-gnome-611603d691ad5fe84ed3a32e8429a74989f1015d.tar.gz
freebsd-ports-gnome-611603d691ad5fe84ed3a32e8429a74989f1015d.tar.zst
freebsd-ports-gnome-611603d691ad5fe84ed3a32e8429a74989f1015d.zip
- add suuport for option TCL_WITH_THREADS
Submitted by: lehmann@ans-netz.de
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: