blob: 12adc178a555078c913054e24692a4f33e64458d (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
PORTNAME= spleen
DISTVERSION= 1.9.0
CATEGORIES= x11-fonts
MASTER_SITES= https://github.com/fcambus/spleen/releases/download/${DISTVERSION}/
PKGNAMESUFFIX= -font
MAINTAINER= tobik@FreeBSD.org
COMMENT= Monospaced bitmap fonts for Xorg and vt(4)
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
NO_ARCH= yes
OPTIONS_DEFINE= DOCS
OPTIONS_DEFAULT= VT X11
OPTIONS_MULTI= TYPE
OPTIONS_MULTI_TYPE= VT X11
.if !exists(/usr/bin/vtfontcvt)
OPTIONS_EXCLUDE= VT
.endif
OPTIONS_SUB= yes
TYPE_DESC= Font type
VT_DESC= Install vt(4) fonts
X11_DESC= Install Xorg bitmap fonts
X11_USES= fonts
X11_USES_OFF= fonts:none
do-build:
@${DO_NADA}
do-build-VT-on:
.for sz in 5x8 6x12 8x16 12x24 16x32 32x64
vtfontcvt ${WRKSRC}/spleen-${sz}.bdf ${WRKSRC}/spleen-${sz}.fnt
.endfor
do-build-X11-on:
${GZIP_CMD} ${WRKSRC}/*.pcf
do-install:
@${MKDIR} ${STAGEDIR}${FONTSDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
do-install-VT-on:
${INSTALL_DATA} ${WRKSRC}/*.fnt ${STAGEDIR}${FONTSDIR}
do-install-X11-on:
${INSTALL_DATA} ${WRKSRC}/fonts.alias-spleen \
${STAGEDIR}${FONTSDIR}/fonts.alias
${INSTALL_DATA} ${WRKSRC}/*.otf ${WRKSRC}/*.pcf.gz \
${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>
|