2000-11-19 04:26:02 +00:00
|
|
|
# New ports collection makefile for: zh-wangttf
|
|
|
|
# Date created: 19 Nov 2000
|
|
|
|
# Whom: Jing-Tang Keith Jang <keith@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= wangttf
|
|
|
|
PORTVERSION= 1.0
|
|
|
|
CATEGORIES= chinese x11-fonts
|
|
|
|
MASTER_SITES= ftp://freebsd.sinica.edu.tw/pub/keith/wangttf/
|
|
|
|
DISTFILES= wcl-01.ttf.bz2 wcl-02.ttf.bz2 wcl-03.ttf.bz2 wcl-04.ttf.bz2 \
|
|
|
|
wcl-05.ttf.bz2 wcl-06.ttf.bz2 wcl-07.ttf.bz2 wcl-08.ttf.bz2 \
|
|
|
|
wcl-09.ttf.bz2 wcl-10.ttf.bz2
|
|
|
|
EXTRACT_ONLY=
|
|
|
|
|
|
|
|
MAINTAINER= keith@FreeBSD.org
|
|
|
|
|
|
|
|
RUN_DEPENDS= ttfm.sh:${PORTSDIR}/chinese/ttfm
|
|
|
|
|
|
|
|
DIST_SUBDIR= zh-wangttf
|
|
|
|
USE_BZIP2= yes
|
Adding supports for zh-CJK, zh-ghostscript6, and X-TT, following
zh-arphicttf's pattern.
Some fonts have problems with X-TT/X-freetype, possibly due to bogus
entries, including wcl-02.ttf, wcl-03.ttf, wcl-05.ttf, wcl-06.ttf, and
wcl-07.ttf. The rest are displayed correctly.
Further testings showed that all these fonts can't be used in GS6. It
seems that the patched GS6 is confused identifying Big5 and GB TTFs,
so for now only the newer Unicode-encoded TTFs can be used.
2000-12-08 16:23:16 +00:00
|
|
|
USE_XLIB= yes
|
2000-11-19 04:26:02 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
SHAREMODE= 644
|
Adding supports for zh-CJK, zh-ghostscript6, and X-TT, following
zh-arphicttf's pattern.
Some fonts have problems with X-TT/X-freetype, possibly due to bogus
entries, including wcl-02.ttf, wcl-03.ttf, wcl-05.ttf, wcl-06.ttf, and
wcl-07.ttf. The rest are displayed correctly.
Further testings showed that all these fonts can't be used in GS6. It
seems that the patched GS6 is confused identifying Big5 and GB TTFs,
so for now only the newer Unicode-encoded TTFs can be used.
2000-12-08 16:23:16 +00:00
|
|
|
FONTDIR= ${PREFIX}/share/fonts/TrueType
|
|
|
|
XFONTDIR= ${X11BASE}/lib/X11/fonts/TrueType
|
|
|
|
INSTALL_ENV= PKG_PREFIX=${PREFIX} XFREE86_VERSION=${XFREE86_VERSION} \
|
2000-12-10 07:57:18 +00:00
|
|
|
DEFAULT=${DEFAULT} WANT_CJK=${WANT_CJK} WANT_GS6=${WANT_GS6} \
|
|
|
|
WITHOUT_X=${WITHOUT_X}
|
2000-11-19 04:26:02 +00:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-12-10 07:57:18 +00:00
|
|
|
.if defined(WANT_CJK)
|
Adding supports for zh-CJK, zh-ghostscript6, and X-TT, following
zh-arphicttf's pattern.
Some fonts have problems with X-TT/X-freetype, possibly due to bogus
entries, including wcl-02.ttf, wcl-03.ttf, wcl-05.ttf, wcl-06.ttf, and
wcl-07.ttf. The rest are displayed correctly.
Further testings showed that all these fonts can't be used in GS6. It
seems that the patched GS6 is confused identifying Big5 and GB TTFs,
so for now only the newer Unicode-encoded TTFs can be used.
2000-12-08 16:23:16 +00:00
|
|
|
RUN_DEPENDS+= bg5latex:${PORTSDIR}/chinese/CJK
|
|
|
|
.endif
|
2000-12-10 07:57:18 +00:00
|
|
|
.if defined(WANT_GS6)
|
Adding supports for zh-CJK, zh-ghostscript6, and X-TT, following
zh-arphicttf's pattern.
Some fonts have problems with X-TT/X-freetype, possibly due to bogus
entries, including wcl-02.ttf, wcl-03.ttf, wcl-05.ttf, wcl-06.ttf, and
wcl-07.ttf. The rest are displayed correctly.
Further testings showed that all these fonts can't be used in GS6. It
seems that the patched GS6 is confused identifying Big5 and GB TTFs,
so for now only the newer Unicode-encoded TTFs can be used.
2000-12-08 16:23:16 +00:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/ghostscript/CJK/CMap/B5pc-H:${PORTSDIR}/chinese/ghostscript6
|
|
|
|
.endif
|
2000-12-10 07:57:18 +00:00
|
|
|
.if ${XFREE86_VERSION} == 3 && !defined(WITHOUT_X)
|
Adding supports for zh-CJK, zh-ghostscript6, and X-TT, following
zh-arphicttf's pattern.
Some fonts have problems with X-TT/X-freetype, possibly due to bogus
entries, including wcl-02.ttf, wcl-03.ttf, wcl-05.ttf, wcl-06.ttf, and
wcl-07.ttf. The rest are displayed correctly.
Further testings showed that all these fonts can't be used in GS6. It
seems that the patched GS6 is confused identifying Big5 and GB TTFs,
so for now only the newer Unicode-encoded TTFs can be used.
2000-12-08 16:23:16 +00:00
|
|
|
RUN_DEPENDS+= mkfontdir.pl:${PORTSDIR}/x11-servers/XttXF86srv-common
|
|
|
|
.endif
|
|
|
|
|
2000-12-10 07:57:18 +00:00
|
|
|
pre-fetch:
|
|
|
|
.if defined(WANT_CJK)
|
|
|
|
@${ECHO} "CJK support will be added."
|
|
|
|
.endif
|
|
|
|
.if defined(WANT_GS6)
|
|
|
|
@${ECHO} "Ghostscript6 support will be added."
|
|
|
|
.endif
|
|
|
|
.if defined(WITHOUT_X)
|
|
|
|
@${ECHO} "X Window support will NOT be added."
|
|
|
|
.endif
|
|
|
|
.if !defined(WANT_CJK) && !defined(WANT_GS6) && !defined(WITHOUT_X)
|
|
|
|
@${ECHO} --
|
|
|
|
@${ECHO} "Type \"make WANT_CJK=yes\" if you want CJK support."
|
|
|
|
@${ECHO} "Type \"make WANT_GS6=yes\" if you want Ghostscript6 support."
|
|
|
|
@${ECHO} "Type \"make WITHOUT_X=yes\" if you DONT want X Window support."
|
|
|
|
@${ECHO} "You can use them in combinations."
|
|
|
|
@${ECHO} --
|
|
|
|
.endif
|
|
|
|
|
2000-11-19 04:26:02 +00:00
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${FONTDIR}
|
|
|
|
.for i in ${DISTFILES}
|
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${i} ${FONTDIR}
|
|
|
|
@${EXTRACT_CMD} -dv ${FONTDIR}/${i}
|
|
|
|
.endfor
|
|
|
|
@${INSTALL_DATA} ${FILESDIR}/wangttf.txt ${FONTDIR}
|
Adding supports for zh-CJK, zh-ghostscript6, and X-TT, following
zh-arphicttf's pattern.
Some fonts have problems with X-TT/X-freetype, possibly due to bogus
entries, including wcl-02.ttf, wcl-03.ttf, wcl-05.ttf, wcl-06.ttf, and
wcl-07.ttf. The rest are displayed correctly.
Further testings showed that all these fonts can't be used in GS6. It
seems that the patched GS6 is confused identifying Big5 and GB TTFs,
so for now only the newer Unicode-encoded TTFs can be used.
2000-12-08 16:23:16 +00:00
|
|
|
@${SETENV} ${INSTALL_ENV} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
2000-11-19 04:26:02 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|