git: c6a201f65ecc - main - net/yaz: unbreak build with tcl!=8.6 (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Fri, 19 Nov 2021 21:52:25 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c6a201f65ecce2c32446db8ff6b1bb1de1b558d6

commit c6a201f65ecce2c32446db8ff6b1bb1de1b558d6
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2021-11-19 21:46:05 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2021-11-19 21:46:05 +0000

    net/yaz: unbreak build with tcl!=8.6 (+)
    
    Replace hardcoded tcl version with corresponding macro from Uses/tcl.mk
    
    Pointyhat to:   nc
    Approved by:    portmgr blanket (trivial fix build)
    Sponsored by:   Netzkommune GmbH
---
 net/yaz/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/yaz/Makefile b/net/yaz/Makefile
index 5d111b32064f..8c6d3dbc7b53 100644
--- a/net/yaz/Makefile
+++ b/net/yaz/Makefile
@@ -41,7 +41,7 @@ REDIS_CONFIGURE_WITH=	redis
 REDIS_LIB_DEPENDS=	libhiredis.so:databases/hiredis
 
 post-patch:
-	@${REINPLACE_CMD} 's|tclsh |tclsh8.6 |' ${WRKSRC}/configure
+	@${REINPLACE_CMD} 's|tclsh |tclsh${TCL_VER} |' ${WRKSRC}/configure
 
 post-configure:
 	@${REINPLACE_CMD} -e 's,[$$]{datarootdir}/man,${PREFIX}/man,' \