aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/ttfm/Makefile
blob: 21b53770aa829a4cc84e243b7bad7aabad5de45d (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
# Created by: Jing-Tang Keith Jang <keith@FreeBSD.org>
# $FreeBSD$

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

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

LICENSE=    MIT

LIB_DEPENDS=    libfreetype.so:${PORTSDIR}/print/freetype2

MAKE_ARGS=  FREETYPE_BASE=${LOCALBASE:Q} CC="${CC}"

PORTDOCS=   README USAGE

OPTIONS_DEFINE= DOCS

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

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/ttfinfo ${STAGEDIR}${PREFIX}/bin/
    ${INSTALL_SCRIPT} ${WRKSRC}/ttfm.sh ${STAGEDIR}${PREFIX}/bin/
    ${INSTALL_MAN} ${WRKSRC}/ttfm.sh.1 ${STAGEDIR}${MANPREFIX}/man/man1/
    @${MKDIR} ${STAGEDIR}${DATADIR}
.for module in gscjk.ttfm xttfm.ttfm
    ${INSTALL_SCRIPT} ${WRKSRC}/modules/${module} ${STAGEDIR}${DATADIR}/
.endfor

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}/
.endfor

.include <bsd.port.mk>