diff --git a/lang/chez-scheme/Makefile b/lang/chez-scheme/Makefile
index 8b3bbfc644a2..88dcc6c25cff 100644
--- a/lang/chez-scheme/Makefile
+++ b/lang/chez-scheme/Makefile
@@ -1,86 +1,86 @@
 PORTNAME=	chez-scheme
-PORTVERSION=	9.6.2
+PORTVERSION=	9.6.4
 DISTVERSIONPREFIX=	v
 CATEGORIES=	lang
 MASTER_SITES=	https://github.com/cisco/ChezScheme/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/ \
 		http://distfiles.pirateparty.in/ashish/:boot \
 		LOCAL/ashish:boot
 DISTNAME=	csv${PORTVERSION}
 DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
 		${PORTNAME}-boot-ta6fb-${PORTVERSION}.tar.xz:boot \
 		${PORTNAME}-boot-ti3fb-${PORTVERSION}.tar.xz:boot
 
 MAINTAINER=	ashish@FreeBSD.org
 COMMENT=	Chez Scheme system
 WWW=		https://cisco.github.io/ChezScheme
 
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
 ONLY_FOR_ARCHS=	amd64 i386
 
 LIB_DEPENDS=	libuuid.so:misc/e2fsprogs-libuuid \
 		libossp-uuid.so:misc/ossp-uuid
 
 USES=		gmake iconv:lib ncurses
 
 OPTIONS_DEFAULT=	X11
 OPTIONS_DEFINE=	X11
 
 HAS_CONFIGURE=	yes
 ALL_TARGET=	build
 CONFLICTS_INSTALL=	petite-chez
 STRIP_FILES=	bin/petite bin/${PORTNAME} bin/${PORTNAME}-script
 CHEZ_LIBDIR=	lib/${DISTNAME:S/.0$//}
 CFLAGS+=	-fPIC
 CFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib -luuid
 CONFIGURE_ARGS=	--installprefix=${PREFIX} \
 		--temproot=${STAGEDIR} \
 		--installschemename=${PORTNAME} \
 		--installscriptname=${PORTNAME}-script
 PLIST_SUB=	PORTNAME=${PORTNAME} \
 		CHEZ_ARCH=${CHEZ_ARCH} \
 		CHEZ_LIBDIR=${CHEZ_LIBDIR}
 X11_USES=	xorg
 X11_USE=	XORG=x11
 
 .include <bsd.port.pre.mk>
 
 .if (${ARCH} == "amd64")
 CONFIGURE_ARGS+=	--threads --64 -m=ta6fb
 CHEZ_ARCH=	ta6fb
 .elif (${ARCH} == "i386")
 CONFIGURE_ARGS+=	--threads --32 -m=ti3fb
 CHEZ_ARCH=	ti3fb
 .endif
 
 .if defined(NCURSES_RPATH)
 NCURSES_REPL=	-e 's|-Wl,-rpath,${NCURSESRPATH}||g'
 .else
 NCURSES_REPL=
 .endif
 
 post-patch:
 	${LN} -sf ${WRKDIR}/${CHEZ_ARCH} ${WRKSRC}/boot/
 
 post-configure:
 	${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
 		-e 's,/usr/local,${LOCALBASE},g' ${NCURSES_REPL} \
 		-e 's,-liconv,${ICONV_LIB},g' ${WRKSRC}/${CHEZ_ARCH}/c/Mf-config ${WRKSRC}/c/Mf-${CHEZ_ARCH}
 
 pre-build-X11-off:
 	${ECHO_CMD} '#undef LIBX11' >>${WRKSRC}/c/version.h
 
 post-install:
 .for f in ${STRIP_FILES}
 	@${CHMOD} +w ${STAGEDIR}${PREFIX}/${f}
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/${f}
 	@${CHMOD} -w ${STAGEDIR}${PREFIX}/${f}
 .endfor
 .if ("lib/${DISTNAME}" != "${CHEZ_LIBDIR}")
 	@${MV} ${STAGEDIR}${PREFIX}/lib/${DISTNAME} ${STAGEDIR}${PREFIX}/${CHEZ_LIBDIR}
 .endif
 	@${LN} -sf scheme.boot ${STAGEDIR}${PREFIX}/${CHEZ_LIBDIR}/${CHEZ_ARCH}/${PORTNAME}-script.boot
 
 .include <bsd.port.post.mk>
diff --git a/lang/chez-scheme/distinfo b/lang/chez-scheme/distinfo
index 8669748e0df5..5e13392cf4df 100644
--- a/lang/chez-scheme/distinfo
+++ b/lang/chez-scheme/distinfo
@@ -1,7 +1,7 @@
-TIMESTAMP = 1693338988
-SHA256 (csv9.6.2.tar.gz) = 714695789e1bad3518e6cd5fbc8ae8204f76103d5ad2ba05a3f1c063eb2d5d02
-SIZE (csv9.6.2.tar.gz) = 35691078
-SHA256 (chez-scheme-boot-ta6fb-9.6.2.tar.xz) = 3ca9be53068daea83a8ed3b8ff2db095943b26d970d66a0c10a720ecac50b060
-SIZE (chez-scheme-boot-ta6fb-9.6.2.tar.xz) = 2132376
-SHA256 (chez-scheme-boot-ti3fb-9.6.2.tar.xz) = bddd18fd5e4ca4b34bd4052f85e702ad03d5028364c1fbc84d55c3751cdb3476
-SIZE (chez-scheme-boot-ti3fb-9.6.2.tar.xz) = 2079524
+TIMESTAMP = 1697534558
+SHA256 (csv9.6.4.tar.gz) = f5827682fa259c47975ffe078785fb561e4a5c54f764331ef66c32132843685d
+SIZE (csv9.6.4.tar.gz) = 35679113
+SHA256 (chez-scheme-boot-ta6fb-9.6.4.tar.xz) = c6993e0cfe712c2f85ccb8578f510918e4c41ab1ac86b82679533c7c8fc6215f
+SIZE (chez-scheme-boot-ta6fb-9.6.4.tar.xz) = 2131520
+SHA256 (chez-scheme-boot-ti3fb-9.6.4.tar.xz) = 3496605c4b7fda6c8e6b9f7fcea8734ec1401cdc794cd857728542081d231b07
+SIZE (chez-scheme-boot-ti3fb-9.6.4.tar.xz) = 2078340