aboutsummaryrefslogtreecommitdiff
path: root/japanese/kochi-ttfonts/Makefile
blob: c2823253c5e9a072acea49b49d737de0d81a5192 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# 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=	20030809
CATEGORIES=	japanese x11-fonts
MASTER_SITES=	http://downloads.sourceforge.jp/efont/5411/ \
		${MASTER_SITE_PORTS_JP}
DISTFILES=	kochi-substitute-${PORTVERSION}.tar.bz2

MAINTAINER=	kanou@khdd.net
COMMENT=	Free Japanese TrueType fonts named 'Kochi'

USE_X_PREFIX=	yes
USE_BZIP2=	yes
NO_BUILD=	yes

FONTSDIR=	lib/X11/fonts/TrueType
MAKE_ENV=	FONTSDIR=${FONTSDIR}
PLIST_SUB=	FONTSDIR=${FONTSDIR}

WRKSRC=	${WRKDIR}/kochi-substitute-${PORTVERSION}

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} ${WRKSRC}/*.ttf \
			${FILESDIR}/fonts.dir.kochi \
			${FILESDIR}/fonts.alias.kochi \
			${PREFIX}/${FONTSDIR}
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/share/doc/ja/kochi-ttfonts
	${INSTALL_DATA} ${WRKSRC}/README.ja ${WRKSRC}/COPYING \
		${PREFIX}/share/doc/ja/kochi-ttfonts
	${MKDIR} -p ${PREFIX}/share/doc/ja/kochi-ttfonts/docs/ayu20gothic
	${INSTALL_DATA} ${WRKSRC}/docs/README \
		${PREFIX}/share/doc/ja/kochi-ttfonts/docs
	${INSTALL_DATA} ${WRKSRC}/docs/ayu20gothic/* \
		${PREFIX}/share/doc/ja/kochi-ttfonts/docs/ayu20gothic
	${MKDIR} -p ${PREFIX}/share/doc/ja/kochi-ttfonts/docs/k14goth
	${INSTALL_DATA} ${WRKSRC}/docs/k14goth/* \
		${PREFIX}/share/doc/ja/kochi-ttfonts/docs/k14goth
	${MKDIR} -p ${PREFIX}/share/doc/ja/kochi-ttfonts/docs/kappa20
	${INSTALL_DATA} ${WRKSRC}/docs/kappa20/* \
		${PREFIX}/share/doc/ja/kochi-ttfonts/docs/kappa20
	${MKDIR} -p ${PREFIX}/share/doc/ja/kochi-ttfonts/docs/naga10
	${INSTALL_DATA} ${WRKSRC}/docs/naga10/* \
		${PREFIX}/share/doc/ja/kochi-ttfonts/docs/naga10
	${MKDIR} -p ${PREFIX}/share/doc/ja/kochi-ttfonts/docs/shinonome12
	${INSTALL_DATA} ${WRKSRC}/docs/shinonome12/* \
		${PREFIX}/share/doc/ja/kochi-ttfonts/docs/shinonome12
	${MKDIR} -p ${PREFIX}/share/doc/ja/kochi-ttfonts/docs/shinonome16
	${INSTALL_DATA} ${WRKSRC}/docs/shinonome16/* \
		${PREFIX}/share/doc/ja/kochi-ttfonts/docs/shinonome16
	${MKDIR} -p ${PREFIX}/share/doc/ja/kochi-ttfonts/docs/wadalab
	${INSTALL_DATA} ${WRKSRC}/docs/wadalab/* \
		${PREFIX}/share/doc/ja/kochi-ttfonts/docs/wadalab
.endif
	${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>