aboutsummaryrefslogtreecommitdiffstats
path: root/japanese/font-kochi/Makefile
blob: 481a84e4d9856c95901e88d6d3068e8fd7a2461d (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:    Kochi TrueType fonts
# Date created:     6 January 2001
# Whom:         KANOU Hiroki <kanou@mil.allnet.ne.jp>
#
# $FreeBSD$
#

PORTNAME=   kochi-ttfonts
PORTVERSION=    20030118
CATEGORIES= japanese x11-fonts
MASTER_SITES=   http://www.on.cs.keio.ac.jp/~yasu/linux/fonts/ \
        ${MASTER_SITE_PORTS_JP}
DISTFILES=  kochi-mincho-0.2.${MINCHO_VER}.tar.bz2 \
        kochi-gothic-0.2.${GOTHIC_VER}.tar.bz2

MAINTAINER= ports@FreeBSD.org
COMMENT=    Free Japanese TrueType fonts named 'Kochi'

USE_X_PREFIX=   yes
USE_BZIP2=  yes
NO_BUILD=   yes

MINCHO_VER= 20020727
GOTHIC_VER= ${PORTVERSION}
FONTSDIR=   lib/X11/fonts/TrueType
MAKE_ENV=   FONTSDIR=${FONTSDIR}
PLIST_SUB=  FONTSDIR=${FONTSDIR}

post-extract:
    (cd ${WRKDIR}/kochi-mincho/examples; \
     ${MV} fonts.dir.xtt fonts.dir.kochi )

do-install:
.if !exists(${PREFIX}/${FONTSDIR})
    @${ECHO} "*********************************************************"
    @${ECHO} "Please add ${PREFIX}/${FONTSDIR} to your font path"
    @${ECHO} "and load 'xtt' module in /etc/XF86Config."
    @${ECHO} "*********************************************************"
    ${MKDIR} ${PREFIX}/${FONTSDIR}
.endif
    ${INSTALL_DATA} ${WRKDIR}/kochi-gothic/fonts/kochi-gothic.ttf \
            ${WRKDIR}/kochi-mincho/fonts/kochi-mincho.ttf \
            ${FILESDIR}/fonts.dir.kochi \
            ${FILESDIR}/fonts.alias.kochi \
            ${PREFIX}/${FONTSDIR}
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/ja/kochi-ttfonts/mincho
    ${INSTALL_DATA} ${WRKDIR}/kochi-mincho/README \
        ${PREFIX}/share/doc/ja/kochi-ttfonts/mincho
    ${MKDIR} ${PREFIX}/share/doc/ja/kochi-ttfonts/gothic
    ${INSTALL_DATA} ${WRKDIR}/kochi-gothic/README \
        ${PREFIX}/share/doc/ja/kochi-ttfonts/gothic
.endif
    ${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>