blob: f6932eebb812e0f6b36ccfbb5aec4a20559bf905 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
PORTNAME= ricty
PORTVERSION= 4.1.1
PORTREVISION= 1
CATEGORIES= japanese x11-fonts
MASTER_SITES= https://rictyfonts.github.io/files/
PKGNAMEPREFIX= ja-font-
DISTNAME= ricty_generator-${PORTVERSION}.sh
EXTRACT_SUFX= # empty
DIST_SUBDIR= ${PORTNAME}
MAINTAINER?= meta@FreeBSD.org
COMMENT?= Programming fonts with Japanese support
LICENSE= OFL11 IPAFONTLICv1.0
LICENSE_COMB= multi
LICENSE_NAME_IPAFONTLICv1.0= IPA Font License Agreement v1.0
LICENSE_TEXT_IPAFONTLICv1.0= https://opensource.org/licenses/IPA
# No package redistribution due to OFL11
LICENSE_PERMS_IPAFONTLICv1.0= dist-mirror dist-sell no-pkg-mirror \
no-pkg-sell auto-accept
BUILD_DEPENDS= inconsolata-ttf>=2.000:x11-fonts/inconsolata-ttf \
${LOCALBASE}/share/fonts/migu/migu-1m-regular.ttf:japanese/font-migu \
${LOCALBASE}/share/fonts/migu/migu-1m-bold.ttf:japanese/font-migu \
fontforge:print/fontforge
USES= fonts:fc
FONTNAME= ${PORTNAME}${PKGNAMESUFFIX}
FONTPATHSPEC= ${FONTNAME}:pri=60
NO_ARCH= yes
SUB_FILES= genfontsdir.sh
.if !defined(MASTERDIR)
OPTIONS_DEFINE= DISCORD
OPTIONS_DEFAULT=DISCORD
DISCORD_DESC= Install Ricty-Discord
DISCORD_RUN_DEPENDS= ${LOCALBASE}/share/fonts/ricty-discord/RictyDiscord-Regular.ttf:japanese/font-ricty-discord
.endif
.include <bsd.port.options.mk>
.if ${SLAVE_PORT} == no
SUB_LIST+= DISCORD="" RICTY=\#
.else
SUB_LIST+= DISCORD=\# RICTY=""
.endif
do-extract:
@${MKDIR} ${WRKSRC}
do-build:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${SH} ${DISTDIR}/${DIST_SUBDIR}/ricty_generator-${PORTVERSION}.sh \
${LOCALBASE}/share/fonts/inconsolata/Inconsolata-Regular.ttf \
${LOCALBASE}/share/fonts/inconsolata/Inconsolata-Bold.ttf \
${LOCALBASE}/share/fonts/migu/migu-1m-regular.ttf \
${LOCALBASE}/share/fonts/migu/migu-1m-bold.ttf
pre-install:
cd ${WRKDIR} && ${SH} ./genfontsdir.sh
do-install:
@${MKDIR} \
${STAGEDIR}${FONTSDIR} \
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d
.if ${SLAVE_PORT} == no
${INSTALL_DATA} ${WRKDIR}/fonts.dir ${WRKSRC}/Ricty-*.ttf \
${STAGEDIR}${FONTSDIR}
.else
${INSTALL_DATA} ${WRKDIR}/fonts.dir ${WRKSRC}/RictyDiscord-*.ttf \
${STAGEDIR}${FONTSDIR}
.endif
${INSTALL_DATA} ${FILESDIR}/20-unhint-${FONTNAME}.conf \
${FILESDIR}/62-fonts-${FONTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.avail
${RLN} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail/20-unhint-${FONTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/20-unhint-${FONTNAME}.conf
${RLN} ${STAGEDIR}${PREFIX}/etc/fonts/conf.avail/62-fonts-${FONTNAME}.conf \
${STAGEDIR}${PREFIX}/etc/fonts/conf.d/62-fonts-${FONTNAME}.conf
.include <bsd.port.mk>
|