blob: bdd4aae92cf309e8175a70559e5930ec9bfc3afa (
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
|
# $FreeBSD$
PORTNAME= spleen
DISTVERSION= 1.0.5
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
# vtfontcvt is broken with large fonts, so use Dmitry Wagin's
# improved version from https://bugs.freebsd.org/205707 that
# doesn't have this problem.
VT_BUILD_DEPENDS= vtfontcvt-ng:x11-fonts/vtfontcvt-ng
X11_USES= fonts
X11_USES_OFF= fonts:none
do-build:
@${DO_NADA}
do-build-VT-on:
.for sz in 5x8 8x16 12x24 16x32 32x64
vtfontcvt-ng ${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}/*.pcf.gz ${STAGEDIR}${FONTSDIR}
.include <bsd.port.mk>
|