I've been carrying this diff for quite a while and it saves a bunch of time in my bulks. The build never failed, so as far as I can tell tdesktop is happy with this.
Index: Makefile =================================================================== RCS file: /cvs/ports/net/tdesktop/Makefile,v retrieving revision 1.40 diff -u -p -r1.40 Makefile --- Makefile 20 Aug 2022 17:18:14 -0000 1.40 +++ Makefile 21 Aug 2022 12:04:27 -0000 @@ -10,6 +10,8 @@ DISTNAME = tdesktop-${V}-full PKGNAME = ${DISTNAME:-full=} CATEGORIES = net +DPB_PROPERTIES = parallel + DEBUG_PACKAGES = ${BUILD_PACKAGES} HOMEPAGE = https://desktop.telegram.org