blob: b9f81904853f79c781061e668696e7550c1e0a36 (
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
71
72
|
# New ports collection makefile for: IPA TrueType fonts
# Date created: 18 July 2004
# Whom: NAKATA, Maho <maho@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= ipa-ttfonts
PORTVERSION= 20040718
CATEGORIES= japanese x11-fonts
MASTER_SITES= http://www.grass-japan.org/FOSS4G/ipafonts/
DISTNAME= grass5.0.3_i686-pc-linux-i18n-ipafull-gnu_bin
DIST_SUBDIR= ipa-fonts
MAINTAINER= maho@FreeBSD.org
COMMENT= Freely available Japanese TrueType fonts by Infomation-technology Promotion Agency (IPA)
USE_X_PREFIX= yes
NO_BUILD= yes
NO_PACKAGE= "License prohibits to distribute without i18n'ed GRASS http://www.grass-japan.org/FOSS4G/"
NO_CDROM= "License prohibits to distribute without i18n'ed GRASS http://www.grass-japan.org/FOSS4G/"
FONTSDIR= lib/X11/fonts/TrueType
LOCALFONTSDIR= share/fonts/TrueType
MAKE_ENV= FONTSDIR=${FONTSDIR}
PLIST_SUB= FONTSDIR=${FONTSDIR} \
LOCALFONTSDIR=${LOCALBASE}/${LOCALFONTSDIR}
WRKSRC= ${WRKDIR}
DOC_FILES= license-ipafonts.eucjp
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}/fonts/ipag.ttf \
${WRKSRC}/fonts/ipagp.ttf \
${WRKSRC}/fonts/ipagui.ttf \
${WRKSRC}/fonts/ipam.ttf \
${WRKSRC}/fonts/ipamp.ttf \
${FILESDIR}/fonts.dir.ipa \
${FILESDIR}/fonts.alias.ipa \
${PREFIX}/${FONTSDIR}
${MKDIR} ${LOCALBASE}/${LOCALFONTSDIR}
${LN} -s -f \
${PREFIX}/${FONTSDIR}/ipag.ttf \
${LOCALBASE}/${LOCALFONTSDIR}/ipag.ttf
${LN} -s -f \
${PREFIX}/${FONTSDIR}/ipagp.ttf \
${LOCALBASE}/${LOCALFONTSDIR}/ipagp.ttf
${LN} -s -f \
${PREFIX}/${FONTSDIR}/ipagui.ttf \
${LOCALBASE}/${LOCALFONTSDIR}/ipagui.ttf
${LN} -s -f \
${PREFIX}/${FONTSDIR}/ipam.ttf \
${LOCALBASE}/${LOCALFONTSDIR}/ipam.ttf
${LN} -s -f \
${PREFIX}/${FONTSDIR}/ipamp.ttf \
${LOCALBASE}/${LOCALFONTSDIR}/ipamp.ttf
.for F in ${DOC_FILES}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${F} ${DOCSDIR}
.endfor
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
|