git: 2447a8078112 - main - databases/sqlite3: use the right TCL even if a newer version is installed

From: Mikhail Teterin <mi_at_FreeBSD.org>
Date: Mon, 14 Feb 2022 03:31:40 UTC
The branch main has been updated by mi:

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

commit 2447a8078112d28ea245404f8ca5dfebb4742cbe
Author:     Mikhail Teterin <mi@FreeBSD.org>
AuthorDate: 2022-02-14 03:30:54 +0000
Commit:     Mikhail Teterin <mi@FreeBSD.org>
CommitDate: 2022-02-14 03:30:54 +0000

    databases/sqlite3: use the right TCL even if a newer version is installed
    
    PR:     261367
---
 databases/sqlite3/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile
index f17d3cae2d7b..2281d3dec89e 100644
--- a/databases/sqlite3/Makefile
+++ b/databases/sqlite3/Makefile
@@ -197,6 +197,8 @@ STMT_CPPFLAGS=	-DSQLITE_ENABLE_STMT_SCANSTATUS=1
 TCL_USES=	tcl
 TCL_USES_OFF=	tcl:build
 TCL_CONFIGURE_ENABLE=	tcl
+TCL_CONFIGURE_WITH=	tcl=${TCL_LIBDIR}
+TCL_CONFIGURE_ENV=	ac_cv_prog_TCLSH_CMD=${TCLSH}
 TCL_ALL_TARGET+=	sqlite3_analyzer
 THREADS_CONFIGURE_ENABLE=	threadsafe
 THREADS_LIBS=	-lpthread