From 1a18abe5f662ddc6247ea8f905c1e6960d37db68 Mon Sep 17 00:00:00 2001
From: Hiroki Sato <hrs@FreeBSD.org>
Date: Tue, 18 Jul 2006 18:53:59 +0000
Subject: Fix WITHOUT_X11 support.

---
 print/teTeX/Makefile | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

(limited to 'print/teTeX')

diff --git a/print/teTeX/Makefile b/print/teTeX/Makefile
index c83e73004dc7..3202fc56c4c5 100644
--- a/print/teTeX/Makefile
+++ b/print/teTeX/Makefile
@@ -20,19 +20,22 @@ RUN_DEPENDS=	${TEXMFLOCAL_LSR}:${PORTSDIR}/print/tex-texmflocal \
 		${LOCALBASE}/${TEXMFDISTDIR}/LICENSE.texmf:${PORTSDIR}/print/teTeX-texmf \
 		latex:${PORTSDIR}/print/teTeX-base \
 		${LOCALBASE}/share/fonts/cm-super/README:${PORTSDIR}/print/cm-super \
-		dvips:${PORTSDIR}/print/dvipsk-tetex \
-		xdvi:${PORTSDIR}/print/xdvik
+		dvips:${PORTSDIR}/print/dvipsk-tetex
+
+OPTIONS=	LETTERSIZE "Use letter size by default" off
+
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_X11)
+RUN_DEPENDS+=	xdvi:${PORTSDIR}/print/xdvik
+.endif
 
 # XXX: We always build in batch mode to disable OPTIONS
 #      in print/teTeX-base.
 DEPENDS_ARGS+=	BATCH=yes
 
-OPTIONS=	LETTERSIZE "Use letter size by default" off
-
 CONFLICTS=	latex2e-[0-9]* tex-[0-9]* dvips-[0-9]* xdvi-[0-9]*
 
-.include <bsd.port.pre.mk>
-
 .if defined(WITH_LETTERSIZE)
 FLAVOR+=	letter
 DEPENDS_ARGS+=	WITH_LETTERSIZE=true
-- 
cgit v1.2.3