From ec008f19d494b17ec0ffa6cbc974dd2ed6a5fa97 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Fri, 2 Apr 2004 00:53:31 +0000 Subject: - Change tcl dependency from :build to :extract - Add WITH_THREADS knob PR: ports/64324 Submitted by: Seva Gluschenko --- x11-toolkits/tk84/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'x11-toolkits') 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 +.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 -- cgit v1.2.3