From c4f8b706654c63fb32b6f41e0c792175f5a98524 Mon Sep 17 00:00:00 2001
From: Hiroki Sato <hrs@FreeBSD.org>
Date: Sun, 20 Feb 2005 17:14:25 +0000
Subject: [PATCH] Add a comment that explains why
 ${PREFIX}/share/texmf-dist/LICENSE.texmf should be checked.

Suggested by:	simon
---
 share/mk/doc.project.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/share/mk/doc.project.mk b/share/mk/doc.project.mk
index fe0997b3a9..97ba7c5c24 100644
--- a/share/mk/doc.project.mk
+++ b/share/mk/doc.project.mk
@@ -93,6 +93,12 @@ REALPATH?=	/bin/realpath
 SETENV?=	/usr/bin/env
 XSLTPROC?=	${PREFIX}/bin/xsltproc
 TIDY?=		${PREFIX}/bin/tidy
+#
+# In teTeX 3.0 and later, pdfetex(1) is used as the default TeX
+# engine for JadeTeX and tex(1) cannot be used as ${TEX_CMD} anymore
+# due to incompatibility of the format file.  Since the teTeX 3.0
+# distribution has "${PREFIX}/share/texmf-dist/LICENSE.texmf,"
+# it is checked here to determine which TeX engine should be used.
 .if exists(${PREFIX}/share/texmf-dist/LICENSE.texmf)
 TEX_CMD?=	${PREFIX}/bin/etex
 PDFTEX_CMD?=	${PREFIX}/bin/pdfetex