aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/opendesktop-fonts/Makefile
blob: 2cdbbc38797106795564ce4ed1282b586c4e6c64 (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
# Created by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
# $FreeBSD$

PORTNAME=   opendesktop-fonts
PORTVERSION=    1.4.2
PORTREVISION=   5
CATEGORIES= chinese x11-fonts
MASTER_SITES?=  LOCAL/chinsan/fonts

MAINTAINER= ports@FreeBSD.org
COMMENT=    Ming and Kai face of OpenDesktop fonts

CONFLICTS=  zh-fireflyttf-[0-9]*
DIST_SUBDIR=    OpenFonts
NO_BUILD=   yes
NO_ARCH=    yes

TTF=        odokai-ExtB.ttf odokai.ttf odosung-ExtB.ttf odosung.ttc
PLIST_FILES=    ${FONTSDIR_REL}/local.conf-odo

.include "${.CURDIR}/../ttfm/Makefile.ttf"

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} ${STAGEDIR}${FONTSDIR}
.for i in ${TTF}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${FONTSDIR}
.endfor
    ${INSTALL_DATA} ${FILESDIR}/local.conf-odo ${STAGEDIR}${FONTSDIR}

.include <bsd.port.mk>