blob: 782b9124ff0ab53c48356f59f392db456aea541c (
plain)
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
|
# Created by: MANTANI Nobutaka <nobutaka@FreeBSD.org>
# $FreeBSD$
PORTNAME= mona
PORTVERSION= 2.90
CATEGORIES= japanese x11-fonts
MASTER_SITES= SF/monafont/monafont/monafont-${PORTVERSION}
PKGNAMEPREFIX= ja-font-
PKGNAMESUFFIX= -ttf
DISTNAME= monafont-ttf-${PORTVERSION}
MAINTAINER= nobutaka@FreeBSD.org
COMMENT= TrueType Kanji fonts
USES= fonts:fc zip
FONTNAME= TTF
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
SUB_FILES= pkg-install
SUB_LIST= DIRFILE="${DATADIR}/fonts.dir"
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-install
MAKE_ENV= FONTSDIR=${FONTSDIR:S,${PREFIX},,}
PLIST_FILES= %%DATADIR%%/fonts.dir \
%%DATADIR%%/mona.ttf \
%%FONTSDIR%%/mona.ttf
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/mona.ttf ${FILESDIR}/fonts.dir \
${STAGEDIR}${DATADIR}
post-install:
@${MKDIR} ${STAGEDIR}${FONTSDIR}
cd ${STAGEDIR}${FONTSDIR} && \
${LN} -s ../../../${DATADIR_REL}/*.ttf .
.include <bsd.port.mk>
|