blob: 58a5b9f7c01eba295d800fee286a013c646ba5dc (
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
|
PORTNAME= intlfonts
PORTVERSION= 1.4.2
CATEGORIES= x11-fonts
MASTER_SITES= GNU
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= International X11 fixed fonts
WWW= https://directory.fsf.org/wiki/Intlfonts
LICENSE= GPLv3+
BUILD_DEPENDS= bdftopcf:x11-fonts/bdftopcf
USES= fonts
NO_ARCH= yes
# Don't move to pkg-plist, must appear before @fcfontsdir from USES=fonts.
PLIST_FILES= "@fontsdir ${FONTSDIR}/TrueType" \
"@fontsdir ${FONTSDIR}/Type1"
FONTS= Asian Chinese Chinese.X Ethiopic European European.BIG Japanese Japanese.BIG Japanese.X Misc
FONTS_ALIAS= Asian Chinese European Japanese Japanese.X
do-build:
.for f in ${FONTS}
for bdf in ${WRKSRC}/${f}/*.bdf ; do \
${ECHO_CMD} $${bdf}; \
${LOCALBASE}/bin/bdftopcf $${bdf} | ${GZIP_CMD} > $${bdf%.bdf}.pcf.gz; \
done
.endfor
do-install:
${MKDIR} ${STAGEDIR}${FONTSDIR}/TrueType ${STAGEDIR}${FONTSDIR}/Type1
.for f in ${FONTS}
${INSTALL_DATA} ${WRKSRC}/${f}/*.pcf.gz ${STAGEDIR}${FONTSDIR}
.endfor
.for f in ${FONTS_ALIAS}
${CAT} ${WRKSRC}/${f}/fonts.alias >> ${STAGEDIR}${FONTSDIR}/fonts.alias
.endfor
${INSTALL_DATA} ${WRKSRC}/TrueType/*.* ${STAGEDIR}${FONTSDIR}/TrueType
${INSTALL_DATA} ${WRKSRC}/Type1/*.* ${STAGEDIR}${FONTSDIR}/Type1
.include <bsd.port.mk>
|