On Wed, 8 Jul 2026, Stuart Cassoff wrote:
> On Sun, 5 Jul 2026, Stuart Cassoff wrote:
> > Here is a Tcl 8/9 version of sqlite3-tcl.
>
> Based on the teachings of sthen@, here are the 8/9 version
> bits, with the FLAVOR, and comments in the PLIST.
> It's also possible to have two PLISTS instead.
>
> Looks good so far, but I suspect not quite there yet:
> Warning: @option no-default-conflict without @conflict
>
Getting there.
SUBST_VARS += TCL9
FLAVORS = tcl8
FLAVOR ?=
.if ${FLAVOR:Mtcl8}
MODTCL_VERSION = 8.6
INSTALL_TARGET = all install-lib-binaries
TCL9 = "@comment "
COMMENT += (Tcl8)
.else
MODTCL_VERSION = 9
RUN_DEPENDS += databases/sqlite3-tcl,tcl8
TEST_FLAGS = TCLSH_PROG=${MODTCL_BIN}
TCL9 =
COMMENT += (Tcl9)
.endif
.if ${FLAVOR:Mtcl8}
post-install:
rm ${WRKINST}${MODTCL_TCLDIR}/sqlite3/pkgIndex.tcl
.endif
# This would go in tcl.port.mk?
# Maybe the commented lines are better?
# ("lib" would match in more files than "tcl9")
.if "${MODTCL_VERSION}" == "9"
MODTCL_EXTLIB = libtcl9
#MODTCL_EXTLIB = tcl9
.else
MODTCL_EXTLIB = lib
#MODTCL_EXTLIB =
.endif
# Not sure if this should be done by default.
SUBST_VARS += MODTCL_EXTLIB
@option no-default-conflict
@pkgpath databases/sqlite3,-tcl
@so lib/tcl/sqlite3/${MODTCL_EXTLIB}sqlite${VER}.so
${TCL9}lib/tcl/sqlite3/pkgIndex.tcl
${TCL9}@man man/mann/sqlite3.n
${TCL9}share/examples/sqlite3-tcl/
${TCL9}share/examples/sqlite3-tcl/sqlite3_analyzer