summaryrefslogtreecommitdiff
path: root/print/tex-texdoc/options.mk
diff options
context:
space:
mode:
authorminskim <minskim>2012-04-25 15:47:49 +0000
committerminskim <minskim>2012-04-25 15:47:49 +0000
commit0f3c74c9409200f7b090e2c3077724f55992fb9c (patch)
tree737d4ddb9f6a1aecb10c8734ef8a9601c8beaf9a /print/tex-texdoc/options.mk
parent26bed9e37068f17631648d856ee26f39b48e40c0 (diff)
downloadpkgsrc-0f3c74c9409200f7b090e2c3077724f55992fb9c.tar.gz
Let tex-texdoc honor the x11 option.
Diffstat (limited to 'print/tex-texdoc/options.mk')
-rw-r--r--print/tex-texdoc/options.mk23
1 files changed, 23 insertions, 0 deletions
diff --git a/print/tex-texdoc/options.mk b/print/tex-texdoc/options.mk
new file mode 100644
index 00000000000..12db67183ec
--- /dev/null
+++ b/print/tex-texdoc/options.mk
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1 2012/04/25 15:47:49 minskim Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.tex-texdoc
+PKG_SUPPORTED_OPTIONS+= x11
+PKG_SUGGESTED_OPTIONS+= x11
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= x11
+.if !empty(PKG_OPTIONS:Mx11)
+DEPENDS+= p5-Tk-[0-9]*:../../x11/p5-Tk
+
+PLIST.x11= yes
+REPLACE_PERL= bin/texdoctk
+
+extract-texdoctk:
+ ${MKDIR} ${WRKSRC}/bin
+ ${MV} ${WRKSRC}/texmf/scripts/tetex/texdoctk.pl ${WRKSRC}/bin/texdoctk
+ ${RMDIR} ${WRKSRC}/texmf/scripts/tetex
+.else
+extract-texdoctk:
+ ${RM} -rf ${WRKSRC}/texmf/scripts/tetex
+.endif