summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2012-04-25 22:17:19 +0000
committerminskim <minskim@pkgsrc.org>2012-04-25 22:17:19 +0000
commitf9d73cab87fa56ae9dee41b7e7d28244c821d7b8 (patch)
tree4a9c153d226f5731a413353f90e2e9120345734f
parent4d100000fe1f8be0616042567b0dbef4c227f7c1 (diff)
downloadpkgsrc-f9d73cab87fa56ae9dee41b7e7d28244c821d7b8.tar.gz
Let teTeX honor the x11 option.
-rw-r--r--print/teTeX/Makefile5
-rw-r--r--print/teTeX/options.mk11
2 files changed, 14 insertions, 2 deletions
diff --git a/print/teTeX/Makefile b/print/teTeX/Makefile
index fe49f86a82f..7a462b9eccc 100644
--- a/print/teTeX/Makefile
+++ b/print/teTeX/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.59 2012/02/09 21:44:15 minskim Exp $
+# $NetBSD: Makefile,v 1.60 2012/04/25 22:17:19 minskim Exp $
DISTNAME= teTeX-3.0
PKGREVISION= 11
@@ -21,8 +21,9 @@ DEPENDS+= tex-a2ping-[0-9]*:../../graphics/tex-a2ping
DEPENDS+= tex-texdoc-[0-9]*:../../print/tex-texdoc
DEPENDS+= tex-pdftools-[0-9]*:../../print/tex-pdftools
DEPENDS+= texi2html>=1.52:../../textproc/texi2html
-DEPENDS+= xdvik-[0-9]*:../../print/xdvik
META_PACKAGE= yes
+.include "options.mk"
+
.include "../../mk/bsd.pkg.mk"
diff --git a/print/teTeX/options.mk b/print/teTeX/options.mk
new file mode 100644
index 00000000000..e11b4f87b40
--- /dev/null
+++ b/print/teTeX/options.mk
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.1 2012/04/25 22:17:19 minskim Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.teTeX
+PKG_SUPPORTED_OPTIONS+= x11
+PKG_SUGGESTED_OPTIONS+= x11
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mx11)
+DEPENDS+= xdvik-[0-9]*:../../print/xdvik
+.endif