pkgsrc/print/tex-texdoc/options.mk
2012-04-25 15:47:49 +00:00

23 lines
552 B
Makefile

# $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