aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/tk84
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-04-02 00:53:31 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-04-02 00:53:31 +0000
commitec008f19d494b17ec0ffa6cbc974dd2ed6a5fa97 (patch)
treebbed6ab131021beb6b88a4f0e8944ea24c843337 /x11-toolkits/tk84
parentdbd898b4a978e25ee939ff35f2a833b867f922c3 (diff)
downloadports-ec008f19d494b17ec0ffa6cbc974dd2ed6a5fa97.tar.gz
ports-ec008f19d494b17ec0ffa6cbc974dd2ed6a5fa97.zip
Notes
Diffstat (limited to 'x11-toolkits/tk84')
-rw-r--r--x11-toolkits/tk84/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/x11-toolkits/tk84/Makefile b/x11-toolkits/tk84/Makefile
index a87a1f9dba23..a506af599cad 100644
--- a/x11-toolkits/tk84/Makefile
+++ b/x11-toolkits/tk84/Makefile
@@ -16,7 +16,7 @@ DISTNAME= ${PORTNAME}${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Graphical toolkit for TCL
-BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${TCL84_PORT}:build
+BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/${TCL84_PORT}:extract
LIB_DEPENDS= tcl84.1:${PORTSDIR}/${TCL84_PORT}
LATEST_LINK= tk84
@@ -38,6 +38,11 @@ TCL84_PORT?= lang/tcl84
USE_REINPLACE= YES
MANCOMPRESSED= no
+.ifdef (WITH_THREADS)
+CONFIGURE_ARGS+= --enable-threads
+PKGNAMESUFFIX?= -threads
+.endif
+
MAN1= wish.1
MAN3= 3DBorder.3 AddOption.3 BindTable.3 CanvPsY.3 CanvTkwin.3 \
CanvTxtInfo.3 Clipboard.3 ClrSelect.3 ConfigWidg.3 ConfigWind.3 \
@@ -341,6 +346,13 @@ MLINKS= 3DBorder.3 Tk_Alloc3DBorderFromObj.3 \
.include <bsd.port.pre.mk>
+.if defined(WITH_THREADS)
+post-patch:
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
+ ${WRKSRC}/configure
+
+.endif
+
pre-extract:
@if test -e "${NONEXISTENT}"; then echo "=== Aborted, please remove ${NONEXISTENT}"; exit 1; fi