aboutsummaryrefslogtreecommitdiff
path: root/chinese/wangttf/Makefile
diff options
context:
space:
mode:
authorJing-Tang Keith Jang <keith@FreeBSD.org>2000-12-08 16:23:16 +0000
committerJing-Tang Keith Jang <keith@FreeBSD.org>2000-12-08 16:23:16 +0000
commit1b4ebbb32d981f6594ae5acc015f0d8328a2ccb4 (patch)
tree33478a01c36009c3af5ab7c1ff5aa00aadc4c325 /chinese/wangttf/Makefile
parent843544003ec83ec0783ed3694cd28aedad81c636 (diff)
downloadports-1b4ebbb32d981f6594ae5acc015f0d8328a2ccb4.tar.gz
ports-1b4ebbb32d981f6594ae5acc015f0d8328a2ccb4.zip
Notes
Diffstat (limited to 'chinese/wangttf/Makefile')
-rw-r--r--chinese/wangttf/Makefile21
1 files changed, 20 insertions, 1 deletions
diff --git a/chinese/wangttf/Makefile b/chinese/wangttf/Makefile
index 8394d4d84a65..45a9351253dc 100644
--- a/chinese/wangttf/Makefile
+++ b/chinese/wangttf/Makefile
@@ -18,14 +18,32 @@ MAINTAINER= keith@FreeBSD.org
RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm
+WANT_CJK?= NO
+WANT_GS6?= NO
+WANT_X?= YES
+
DIST_SUBDIR= zh-wangttf
USE_BZIP2= yes
+USE_XLIB= yes
NO_BUILD= yes
SHAREMODE= 644
-FONTDIR= ${PREFIX}/share/fonts/ttf
+FONTDIR= ${PREFIX}/share/fonts/TrueType
+XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType
+INSTALL_ENV= PKG_PREFIX=${PREFIX} XFREE86_VERSION=${XFREE86_VERSION} \
+ WANT_CJK=${WANT_CJK} WANT_GS6=${WANT_GS6} WANT_X=${WANT_X}
.include <bsd.port.pre.mk>
+.if ${WANT_CJK} != "NO"
+RUN_DEPENDS+= bg5latex:${PORTSDIR}/chinese/CJK
+.endif
+.if ${WANT_GS6} != "NO"
+RUN_DEPENDS+= ${LOCALBASE}/share/ghostscript/CJK/CMap/B5pc-H:${PORTSDIR}/chinese/ghostscript6
+.endif
+.if ${XFREE86_VERSION} == 3 && ${WANT_X} != "NO"
+RUN_DEPENDS+= mkfontdir.pl:${PORTSDIR}/x11-servers/XttXF86srv-common
+.endif
+
do-install:
@${MKDIR} ${FONTDIR}
.for i in ${DISTFILES}
@@ -33,5 +51,6 @@ do-install:
@${EXTRACT_CMD} -dv ${FONTDIR}/${i}
.endfor
@${INSTALL_DATA} ${FILESDIR}/wangttf.txt ${FONTDIR}
+ @${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>