aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/ttfm/Makefile
blob: a1438f92ce0f44df82ce7a910e79e05f0dd211e2 (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
# New ports collection makefile for:    zh-ttfm
# Date created:     12 Nov 2000
# Whom:         Jing-Tang Keith Jang <keith@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   ttfm
PORTVERSION=    0.9.5
PORTREVISION=   2
CATEGORIES= chinese print
MASTER_SITES=   LOCAL/rafan/chinese

MAINTAINER= rafan@FreeBSD.org
COMMENT=    A Big5/GB enhanced TrueType Font Manager

RUN_DEPENDS=    mkfontdir:${X_CLIENTS_PORT}
LIB_DEPENDS=    freetype.9:${PORTSDIR}/print/freetype2

PORTDOCS=   README USAGE
MAN1=       ttfm.sh.1

post-patch:
    @${REINPLACE_CMD} -e 's,%%X11BASE%%,${X11BASE},' \
        -e 's,%%PREFIX%%,${PREFIX},' \
        ${WRKSRC}/modules/gscjk.ttfm \
        ${WRKSRC}/modules/xttfm.ttfm

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ttfinfo ${PREFIX}/bin
    ${INSTALL_SCRIPT} ${WRKSRC}/ttfm.sh ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
.endfor
.endif
    ${INSTALL_MAN} ${WRKSRC}/ttfm.sh.1 ${PREFIX}/man/man1
    @${MKDIR} ${DATADIR}
.for module in gscjk.ttfm xttfm.ttfm
    ${INSTALL_SCRIPT} ${WRKSRC}/modules/${module} ${DATADIR}
.endfor

.include <bsd.port.mk>