aboutsummaryrefslogtreecommitdiff
path: root/chinese/gb2ps
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/gb2ps')
-rw-r--r--chinese/gb2ps/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/chinese/gb2ps/Makefile b/chinese/gb2ps/Makefile
index 4132c056ff68..6b4fb0867644 100644
--- a/chinese/gb2ps/Makefile
+++ b/chinese/gb2ps/Makefile
@@ -17,6 +17,8 @@ COMMENT= Converts Chinese GB (simple) encoded text to PostScript
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
WRKSRC= ${WRKDIR}/GB2PS
+.include <bsd.port.options.mk>
+
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/chinese/gb
${INSTALL_PROGRAM} ${WRKSRC}/gb2ps ${STAGEDIR}${PREFIX}/bin
@@ -24,7 +26,7 @@ do-install:
.for font in csong24.ccf ckai24.ccf cfang24.ccf chei24.ccf cfan24.ccf
${GUNZIP_CMD} -c ${DISTDIR}/${font}.gz > ${STAGEDIR}${PREFIX}/share/chinese/gb/${font}
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/gb2ps
${INSTALL_DATA} ${WRKSRC}/gb2ps.help ${STAGEDIR}${PREFIX}/share/doc/gb2ps
.endif