summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--print/texinfo/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/print/texinfo/Makefile b/print/texinfo/Makefile
index 05c1f659b572..36df7eb96334 100644
--- a/print/texinfo/Makefile
+++ b/print/texinfo/Makefile
@@ -16,8 +16,16 @@ DISTFILES= texinfo.tex lcircle10.tfm
MAINTAINER= ports@geeksrus.net
-BUILD_DEPENDS= tex:${PORTSDIR}/print/teTeX
-RUN_DEPENDS= tex:${PORTSDIR}/print/teTeX
+.if !defined(WITH_TETEX)
+TEX_PORT= tex:${PORTSDIR}/print/tex
+pre-everything::
+ @${ECHO_MSG} 'Use make-flag WITH_TETEX=yes if you want to install with teTeX'
+.else
+TEX_PORT= tex:${PORTSDIR}/print/teTeX
+.endif
+
+BUILD_DEPENDS= ${TEX_PORT}
+RUN_DEPENDS= ${TEX_PORT}
EXTRACT_ONLY=
NO_WRKSUBDIR= yes