blob: 45a9351253dc667f4a5bbd313c37c7e0d134b8ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# 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
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/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}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${i} ${FONTDIR}
@${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>
|