blob: 0fb10eef6397c9bab3f9bd60d24e30a3cdab570c (
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
|
# New ports collection makefile for: OpenDesktop.Org.tw Font
# Date created: 2 Sep 2004
# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
#
# $FreeBSD$
#
PORTNAME= opendesktop-fonts
PORTVERSION= 1.4.2
CATEGORIES= chinese x11-fonts
MASTER_SITES?= ftp://ftp.opendesktop.org.tw/odp/ODOFonts/OpenFonts/ \
LOCAL/chinsan/fonts
MAINTAINER= chinsan@FreeBSD.org
COMMENT= Ming and Kai face of OpenDesktop fonts
CONFLICTS= zh-fireflyttf-*
DIST_SUBDIR= OpenFonts
NO_BUILD= yes
TTF= odokai-ExtB.ttf odokai.ttf odosung-ExtB.ttf odosung.ttc
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_X11)
PLIST_SUB+= X11=""
.else
PLIST_SUB+= X11="@comment "
.endif
post-extract:
@${CHMOD} 0755 ${WRKSRC}/license
post-patch:
@${REINPLACE_CMD} -e 's,/usr,${LOCALBASE},; s,opendesktop,,g' \
${WRKSRC}/FAPIcidfmap.zh_CN ${WRKSRC}/FAPIcidfmap.zh_TW \
${WRKSRC}/cidfmap.zh_CN ${WRKSRC}/cidfmap.zh_TW
@${FIND} ${WRKSRC} -name "*.bak" -delete
do-install:
${MKDIR} ${FONTSDIR}
.for i in ${TTF}
${INSTALL_DATA} ${WRKSRC}/${i} ${FONTSDIR}
.endfor
${INSTALL_DATA} ${FILESDIR}/local.conf-odo ${FONTSDIR}
.if !defined(WITHOUT_X11)
${INSTALL_DATA} ${FILESDIR}/local.conf-odo ${X11BASE}/etc/fonts/local.conf
.endif
.include "${PORTSDIR}/chinese/ttfm/Makefile.ttf"
.include <bsd.port.post.mk>
|